/**
 * wukplace.sg Component Specifications & Interactive Micro-States
 * Singapore Commercial & Industrial Real Estate Marketplace
 * Specification Sections 4, 5, 6
 */

/* =========================================================
   4.1 MAIN NAVIGATION BAR & HEADER
   ========================================================= */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  height: 72px;
  background: var(--dark-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  z-index: var(--z-navbar);
  transition: var(--transition-standard);
}

body.light-theme .navbar {
  background: #8DC3E9;
  border-bottom: 1.5px solid #5A9EC9;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo-img {
  height: 34px;
  max-height: 38px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: var(--transition-fast);
}

.logo-dark {
  display: block;
}

.logo-light {
  display: none;
}

body.light-theme .logo-dark {
  display: none;
}

body.light-theme .logo-light {
  display: block;
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0B2238 0%, #034E74 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F5D061;
  font-weight: 900;
  font-size: 1.1rem;
}

.logo-text {
  font-size: 1.35rem;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

body.light-theme .logo-text {
  color: #000000;
}

.logo-dot {
  color: #D97706;
}

.nav-menu-desktop {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: #FFFFFF;
}

body.light-theme .nav-link:hover,
body.light-theme .nav-link.active {
  color: #020617;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.navbar-actions .lang-selector {
  margin-right: 4px;
}

#guestNavControls,
#agentNavControls {
  gap: 6px !important;
}

.burger-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy-input);
  border: 1px solid var(--border);
  color: var(--text-main);
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .navbar {
    height: 64px;
  }
}

/* =========================================================
   4.2 DEEPL LANGUAGE SELECTOR DROPDOWN
   ========================================================= */
.lang-selector {
  position: relative;
  display: inline-block;
}

.lang-trigger {
  box-sizing: border-box;
  height: 36px;
  min-height: 36px;
  max-height: 36px;
  padding: 0 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(180deg, #023854 0%, #011E2D 100%);
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.25);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lang-trigger i,
.lang-trigger span {
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.lang-trigger:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.lang-flag {
  width: 18px;
  height: 13px;
  border-radius: 2px;
  object-fit: cover;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  background: linear-gradient(180deg, rgba(2, 45, 70, 0.97) 0%, rgba(1, 24, 38, 0.98) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-top: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 16px;
  box-shadow: 
    0 24px 60px -8px rgba(0, 0, 0, 0.8), 
    0 10px 24px -4px rgba(0, 0, 0, 0.5), 
    inset 0 1px 1px rgba(255, 255, 255, 0.35);
  padding: 8px;
  display: none;
  z-index: var(--z-deepl);
  animation: classyDropdownFade 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.lang-dropdown.open {
  display: block;
}

.lang-item {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 2px;
}

.lang-item:hover {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateX(2px);
}

.lang-item.active {
  background: rgba(245, 208, 97, 0.12);
  border-color: rgba(245, 208, 97, 0.35);
  color: #F5D061;
  font-weight: 800;
}

/* Light Theme Language Bar & Dropdown Visibility */
body.light-theme .lang-trigger {
  box-sizing: border-box !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  padding: 0 14px !important;
  border-radius: 20px !important;
  border: 1px solid #6DAED8 !important;
  background: linear-gradient(180deg, #FFFFFF 0%, #EDF8FD 100%);
  color: #012B40 !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  gap: 6px !important;
  box-shadow: 0 3px 8px rgba(11, 34, 56, 0.12), inset 0 1px 1px #FFFFFF;
}

body.light-theme .lang-trigger:hover {
  border-color: #D97706 !important;
  box-shadow: 0 5px 12px rgba(11, 34, 56, 0.18), inset 0 1px 1px #FFFFFF;
}

body.light-theme .lang-trigger i.fa-id-badge {
  color: #D97706 !important;
  font-size: 1rem !important;
  line-height: 1 !important;
}

body.light-theme .lang-trigger #currentLangText {
  color: #012B40 !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

body.light-theme .lang-trigger i.fa-chevron-down {
  color: #012B40 !important;
  font-size: 0.65rem !important;
  line-height: 1 !important;
}

body.light-theme .lang-dropdown {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 251, 254, 0.98) 100%);
  border: 1px solid #6DAED8;
  border-top: 1.5px solid #FFFFFF;
  box-shadow: 0 20px 50px -8px rgba(11, 34, 56, 0.2), 0 8px 18px -4px rgba(11, 34, 56, 0.1), inset 0 1px 1px #FFFFFF;
}

body.light-theme .lang-item {
  color: #012B40;
}

body.light-theme .lang-item:hover {
  background: linear-gradient(90deg, #EDF8FD 0%, #F5FBFE 100%);
  border-color: #B5D7ED;
  color: #012B40;
}

body.light-theme .lang-item.active {
  background: #FEF3C7;
  border-color: #F59E0B;
  color: #D97706;
  font-weight: 800;
}

body.light-theme .lang-item.active i {
  color: #D97706 !important;
}

/* =========================================================
   4.3 THEME SWITCHER CONTROL (LIGHT / DARK PILL SWITCH)
   ========================================================= */
.btn-theme-toggle {
  height: 36px;
  padding: 0 14px;
  border-radius: 20px;
  background: linear-gradient(180deg, #023854 0%, #011E2D 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.25);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-theme-toggle .icon-theme {
  font-size: 0.95rem;
  color: #F5D061;
}

body.light-theme .btn-theme-toggle {
  background: linear-gradient(180deg, #FFFFFF 0%, #EDF8FD 100%);
  border-color: #6DAED8;
  color: #020617;
  box-shadow: 0 3px 8px rgba(11, 34, 56, 0.12), inset 0 1px 1px #FFFFFF;
}

body.light-theme .btn-theme-toggle .icon-theme {
  color: #0284C7;
}

.btn-theme-toggle:hover {
  transform: translateY(-1px);
  border-color: #D97706;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

/* =========================================================
   HERO BANNER & CITYSCAPE BACKDROP
   ========================================================= */
.hero-banner {
  position: relative;
  width: 100%;
  min-height: 540px;
  background-image: 
    linear-gradient(180deg, rgba(1, 43, 64, 0.40) 0%, rgba(1, 30, 45, 0.88) 100%),
    url('../assets/images/hero-cityscape.jpg');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 42px 0 48px 0;
  overflow: hidden;
}

body.light-theme .hero-banner {
  background-image: 
    linear-gradient(180deg, rgba(141, 195, 233, 0.70) 0%, rgba(237, 248, 253, 0.92) 100%),
    url('../assets/images/hero-cityscape.jpg');
}

.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 25%, rgba(245, 208, 97, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 95vw;
  max-width: 95vw;
  margin: 0 auto;
  text-align: center;
  padding: 0 12px;
}

.hero-banner .hero-content {
  width: 95vw;
  max-width: 95vw;
  padding-left: clamp(8px, 2.5vw, 24px);
  padding-right: clamp(8px, 2.5vw, 24px);
}

.hero-title {
  font-size: clamp(1.30rem, 2.25vw, 1.92rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
  color: #FFFFFF;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.65);
}

body.light-theme .hero-title {
  color: #012B40;
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.7);
}

body.light-theme .hero-subtitle {
  color: #0F172A;
  font-weight: 600;
  text-shadow: none;
}

.hero-subtitle {
  font-size: clamp(0.68rem, 1.0vw, 0.80rem);
  font-weight: 500;
  color: #E2E8F0;
  max-width: 720px;
  margin: 0 auto 16px auto;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.hero-search-card {
  background: rgba(2, 61, 91, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
  text-align: left;
  position: relative;
}

body.light-theme .hero-search-card {
  background: rgba(237, 248, 253, 0.94);
  box-shadow: 0 16px 36px rgba(11, 34, 56, 0.18);
}

/* =========================================================
   4.4 HERO SEARCH & PREDICTIVE FILTER BAR
   ========================================================= */
.hero-search-container {
  background: var(--navy-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  margin-bottom: 32px;
  position: relative;
}

.search-input-wrap {
  position: relative;
  width: 100%;
  margin-bottom: 16px;
}

.search-input {
  width: 100%;
  height: 52px;
  padding: 0 20px 0 48px;
  border-radius: 12px;
  background: var(--navy-input);
  border: 1px solid var(--border);
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 500;
  outline: none;
  transition: var(--transition-fast);
}

.search-input:focus {
  border-color: var(--border-hover);
  box-shadow: 0 0 0 2px rgba(245, 208, 97, 0.3);
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  color: var(--text-muted);
  pointer-events: none;
}

.filter-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chip {
  height: 34px;
  padding: 0 14px;
  border-radius: 18px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--navy-input);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: var(--transition-standard);
  user-select: none;
}

.filter-chip:hover {
  color: var(--text-main);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.filter-chip.active {
  background: var(--gold-gradient);
  color: #080E21;
  border: none;
  font-weight: 800;
}

.predictive-dropdown {
  position: absolute;
  top: 86px;
  left: 24px;
  right: 24px;
  max-height: 320px;
  overflow-y: auto;
  background: linear-gradient(180deg, #023854 0%, #011E2D 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-top: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), inset 0 1px 1px rgba(255, 255, 255, 0.25);
  z-index: var(--z-autocomplete);
  display: none;
}

body.light-theme .predictive-dropdown {
  background: linear-gradient(180deg, #FFFFFF 0%, #EDF8FD 100%);
  border: 1px solid #6DAED8;
  border-top: 1.5px solid #FFFFFF;
  box-shadow: 0 16px 40px rgba(11, 34, 56, 0.18), inset 0 1px 1px #FFFFFF;
}

.predictive-dropdown.open {
  display: block;
}

.predictive-item {
  padding: 12px 18px;
  font-size: 0.88rem;
  color: var(--text-main);
  cursor: pointer;
  border-bottom: 1px solid rgba(248, 250, 252, 0.06);
  display: flex;
  align-items: center;
  gap: 10px;
}

.predictive-item:hover {
  background: rgba(248, 250, 252, 0.08);
}

/* =========================================================
   1.4 SINGAPORE URA OFFICIAL ZONING BADGES
   ========================================================= */
.zoning-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.70rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #FFFFFF !important;
  padding: 4px 10px;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  white-space: nowrap;
}

.zoning-pill-lg {
  font-size: 0.85rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 8px;
}

/* Official Singapore URA Master Plan Category Colors */
.zoning-b1, .zoning-dot.zoning-b1, .color-dot.b1 { background-color: var(--ura-b1, #D966A5) !important; }
.zoning-b2, .zoning-dot.zoning-b2, .color-dot.b2 { background-color: var(--ura-b2, #8B3F97) !important; }
.zoning-bp, .zoning-dot.zoning-bp, .color-dot.bp, .zoning-business-park, .zoning-business_park { background-color: var(--ura-bp, #00A896) !important; }
.zoning-comm, .zoning-dot.zoning-comm, .color-dot.comm, .color-dot.office, .zoning-office, .zoning-commercial { background-color: var(--ura-comm, #0091EA) !important; }
.zoning-shophouse, .zoning-dot.zoning-shophouse, .color-dot.shophouse, .color-dot.shop, .zoning-shop { background-color: var(--ura-shophouse, #E67E22) !important; }
.zoning-food, .zoning-dot.zoning-food, .color-dot.food, .zoning-food_factory, .zoning-food-factory { background-color: var(--ura-food, #27AE60) !important; }
.zoning-retail, .zoning-dot.zoning-retail, .color-dot.retail, .color-dot.mall, .zoning-mall { background-color: var(--ura-retail, #E74C3C) !important; }
.zoning-land, .zoning-dot.zoning-land, .color-dot.land { background-color: var(--ura-land, #8D6E63) !important; }

/* Category Round Circle Dot (filled circle without text) */
.zoning-dot,
.category-circle-dot,
.color-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  min-width: 14px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  vertical-align: middle;
  flex-shrink: 0;
  box-sizing: border-box;
}

body.light-theme .zoning-dot,
body.light-theme .category-circle-dot,
body.light-theme .color-dot {
  border: 1.5px solid rgba(0, 0, 0, 0.2);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

/* =========================================================
   4.5 PROPERTY LISTINGS CARDS & GRID VIEW
   ========================================================= */
.property-card {
  background: linear-gradient(180deg, #023D5B 0%, #012437 100%);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 14px 34px -4px rgba(0, 0, 0, 0.65), 0 6px 16px -2px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}

body.light-theme .property-card {
  background: linear-gradient(180deg, #FFFFFF 0%, #F0F8FC 100%);
  border: 1.5px solid #0284C7 !important;
  box-shadow: 0 12px 28px rgba(11, 34, 56, 0.12), 0 0 0 1px rgba(2, 132, 199, 0.18), inset 0 1px 1px #FFFFFF !important;
}

.property-card:hover {
  transform: translateY(-6px) scale(1.008);
  box-shadow: 0 28px 65px -8px rgba(0, 0, 0, 0.85), 0 12px 28px -4px rgba(0, 0, 0, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.32);
  border-color: rgba(245, 208, 97, 0.7);
}

.property-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #001B29;
  overflow: hidden;
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.55);
}

.property-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.property-zoning-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
}

.property-body {
  padding: 14px 16px 16px 16px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.property-price-row {
  display: flex;
  align-items: baseline;
  margin-bottom: 6px;
  flex-wrap: wrap;
  gap: 4px;
}

.property-price {
  font-size: clamp(1.18rem, 1.25vw, 1.35rem);
  font-weight: 800;
  color: #F5D061;
}

body.light-theme .property-price {
  color: #92400E;
}

.property-psf {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
}

.property-title {
  font-size: clamp(0.92rem, 1.0vw, 1.02rem);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.property-specs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(248, 250, 252, 0.08);
}

.property-spec-item {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.property-footer {
  border-top: 1px solid rgba(248, 250, 252, 0.1);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(1, 30, 45, 0.4);
}

body.light-theme .property-footer {
  background: linear-gradient(180deg, rgba(240, 249, 254, 0.96) 0%, rgba(226, 239, 247, 0.96) 100%) !important;
  border-top: 1.5px solid #0284C7 !important;
}

body.light-theme .property-list-card > div:last-child {
  background: linear-gradient(180deg, rgba(240, 249, 254, 0.96) 0%, rgba(226, 239, 247, 0.96) 100%) !important;
  border-left: 1.5px solid #0284C7 !important;
}

/* =========================================================
   4.6 INTERACTIVE LEAFLET / ONEMAP GEOSPATIAL MAP
   ========================================================= */
.map-container {
  width: 100%;
  height: 550px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-top: 1.5px solid rgba(255, 255, 255, 0.45);
  box-shadow: 
    0 24px 60px -8px rgba(0, 0, 0, 0.8), 
    0 10px 24px -4px rgba(0, 0, 0, 0.5), 
    inset 0 1px 1px rgba(255, 255, 255, 0.3), 
    inset 0 -2px 1px rgba(0, 0, 0, 0.3);
  margin-bottom: 32px;
  position: relative;
}

body.light-theme .map-container {
  border: 1px solid #6DAED8;
  border-top: 1.5px solid #AEE0FA;
  box-shadow: 
    0 20px 50px -8px rgba(11, 34, 56, 0.2), 
    0 8px 20px -4px rgba(11, 34, 56, 0.12), 
    inset 0 1px 1px #FFFFFF, 
    inset 0 -2px 1px rgba(109, 174, 216, 0.2);
}

@media (max-width: 768px) {
  .map-container {
    height: 380px;
  }
}

.ura-pin-marker {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.75rem;
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.ura-location-marker-pin {
  background: transparent !important;
  border: none !important;
}

.ura-marker-wrapper {
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: 16px 43px;
}

.ura-marker-wrapper:hover {
  transform: scale(1.18) translateY(-4px);
  z-index: 99999 !important;
}

.map-popup-card {
  max-width: 290px;
  background: linear-gradient(180deg, #023854 0%, #011E2D 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-top: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 14px;
  padding: 14px;
  color: var(--text-main);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

body.light-theme .map-popup-card {
  background: linear-gradient(180deg, #FFFFFF 0%, #EDF8FD 100%);
  border: 1px solid #6DAED8;
  border-top: 1.5px solid #FFFFFF;
  color: #012B40;
  box-shadow: 0 12px 30px rgba(11, 34, 56, 0.18), inset 0 1px 1px #FFFFFF;
}

.map-popup-title {
  font-size: 0.88rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.map-popup-price {
  font-size: 0.95rem;
  font-weight: 900;
  color: #F5D061;
}

/* =========================================================
   STANDARD BUTTONS & FRONTEND CONTROLS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.0;
  cursor: pointer;
  border: none;
  transition: var(--transition-standard);
  text-decoration: none;
  box-sizing: border-box;
}

.btn-primary {
  background: var(--gold-gradient);
  color: #080E21;
  border: 1px solid #92400E;
  box-shadow: var(--shadow-gold);
  height: 44px;
  padding: 0 20px;
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.btn-secondary {
  background: var(--navy-input);
  border: 1px solid var(--border);
  color: var(--text-main);
  height: 44px;
  padding: 0 20px;
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: var(--surface);
  transform: translateY(-1px);
}

.btn-whatsapp {
  background: #25D366;
  color: #FFFFFF;
  font-weight: 800;
  height: 44px;
  padding: 0 18px;
  border-radius: 10px;
}

.btn-whatsapp:hover {
  background: #20BA5A;
  transform: translateY(-1px);
}

/* =========================================================
   5.3 STANDARDISED ADMIN BUTTON SYSTEM (6-COLOUR JEWEL PALETTE)
   Height: 29.5px, Font-weight: 800, Radius: 8px
   ========================================================= */
.btn-backend-add,
.btn-backend-danger,
.btn-backend-delete,
.btn-backend-success,
.btn-backend-export,
.btn-backend-action,
.btn-backend-primary,
.btn-backend-reset,
.btn-backend-secondary,
.btn-backend-view,
.btn-backend-purple {
  height: 29.5px !important;
  min-height: 29.5px !important;
  max-height: 29.5px !important;
  padding: 0 16px !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  line-height: 1.0 !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
  transition: var(--transition-standard) !important;
  text-decoration: none !important;
}

/* 1. Gold Add (Create/New) */
.btn-backend-add {
  background: linear-gradient(135deg, #F5D061, #D97706) !important;
  border: 2px solid #92400E !important;
  color: #080E21 !important;
}
.btn-backend-add:hover {
  background: linear-gradient(135deg, #FCE082, #DFB943) !important;
  border-color: #78350F !important;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.45) !important;
}

/* 2. Crimson Ruby (Delete/Danger) */
.btn-backend-danger,
.btn-backend-delete {
  background: linear-gradient(135deg, #EF4444, #DC2626) !important;
  border: 2px solid #991B1B !important;
  color: #FFFFFF !important;
}
.btn-backend-danger:hover,
.btn-backend-delete:hover {
  background: linear-gradient(135deg, #F87171, #EF4444) !important;
  border-color: #7F1D1D !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4) !important;
}

/* 3. Emerald Jade (Success/Export) */
.btn-backend-success,
.btn-backend-export {
  background: linear-gradient(135deg, #10B981, #059669) !important;
  border: 2px solid #065F46 !important;
  color: #FFFFFF !important;
}
.btn-backend-success:hover,
.btn-backend-export:hover {
  background: linear-gradient(135deg, #34D399, #10B981) !important;
  border-color: #064E3B !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4) !important;
}

/* 4. Sapphire Azure (Action/Primary) */
.btn-backend-action,
.btn-backend-primary {
  background: linear-gradient(135deg, #38BDF8, #2563EB) !important;
  border: 2px solid #1E40AF !important;
  color: #FFFFFF !important;
}
.btn-backend-action:hover,
.btn-backend-primary:hover {
  background: linear-gradient(135deg, #60A5FA, #2563EB) !important;
  border-color: #1E3A8A !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4) !important;
}

/* 5. Platinum Slate (Reset/Secondary) */
.btn-backend-reset,
.btn-backend-secondary {
  background: linear-gradient(135deg, #64748B, #475569) !important;
  border: 2px solid #1E293B !important;
  color: #FFFFFF !important;
}
.btn-backend-reset:hover,
.btn-backend-secondary:hover {
  background: linear-gradient(135deg, #94A3B8, #64748B) !important;
  border-color: #0F172A !important;
  box-shadow: 0 4px 12px rgba(100, 116, 139, 0.4) !important;
}

/* 6. Amethyst Violet (View/Purple) */
.btn-backend-view,
.btn-backend-purple {
  background: linear-gradient(135deg, #A855F7, #7E22CE) !important;
  border: 2px solid #581C87 !important;
  color: #FFFFFF !important;
}
.btn-backend-view:hover,
.btn-backend-purple:hover {
  background: linear-gradient(135deg, #C084FC, #9333EA) !important;
  border-color: #3B0764 !important;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4) !important;
}

/* Button Size Modifiers */
.btn-backend-sm,
.btn-backend-xs {
  padding: 0 12px !important;
}

.icon-only-btn {
  padding: 0 !important;
  width: 29.5px !important;
  min-width: 29.5px !important;
}

/* =========================================================
   6.1 FORM CONTROLS & INTERACTIVE MICRO-STATES
   ========================================================= */
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--navy-input);
  border: 1px solid var(--border);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  font-family: inherit;
  transition: var(--transition-fast);
  outline: none;
}

.form-input {
  height: 44px;
  padding: 0 14px;
  font-size: 0.85rem;
  font-weight: 500;
}

.form-input-sm {
  height: 32px;
  padding: 0 10px;
  font-size: 0.78rem;
}

.form-select {
  height: 44px;
  padding: 0 14px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.form-textarea {
  min-height: 90px;
  padding: 12px 14px;
  font-size: 0.85rem;
  font-weight: 400;
  resize: vertical;
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.form-input:focus-visible,
.form-select:focus-visible,
.form-textarea:focus-visible {
  outline: 2px solid #F5D061;
  outline-offset: 2px;
  box-shadow: 0 0 12px rgba(245, 208, 97, 0.3);
}

.form-input:disabled,
.form-select:disabled,
.form-textarea:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
}

/* 6.2 Custom Toggles, Switches & Checkboxes */
.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

input:checked + .slider {
  background: linear-gradient(135deg, #10B981, #059669);
}

input:checked + .slider:before {
  transform: translateX(22px);
}

.custom-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid var(--border);
  background: var(--navy-input);
  cursor: pointer;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.custom-checkbox:checked {
  background-color: #D97706;
  border-color: #92400E;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3E%3C/svg%3E");
  background-size: 14px 14px;
  background-position: center;
  background-repeat: no-repeat;
}

/* =========================================================
   MODAL ARCHITECTURE & BACKDROPS
   ========================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(1, 43, 64, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: var(--z-modal, 10000);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

body.light-theme .modal-backdrop {
  background: rgba(109, 174, 216, 0.45) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

#detailModal,
#propertyModal {
  z-index: 135000 !important;
}

/* Master Modal Card Surface (Dark Theme - Deep Ocean Blue & Pearl Highlight) */
.modal-card,
.admin-credit-modal-card,
.directory-modal-card,
.admin-promo-modal-card,
.admin-social-modal-card {
  background: linear-gradient(180deg, #023D5B 0%, #012235 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-top: 1.5px solid rgba(255, 255, 255, 0.45) !important;
  border-radius: var(--radius-lg, 20px) !important;
  box-shadow: 
    0 32px 80px -12px rgba(0, 0, 0, 0.85), 
    0 16px 36px -6px rgba(0, 0, 0, 0.6), 
    inset 0 1px 1px rgba(255, 255, 255, 0.35), 
    inset 0 -2px 1px rgba(0, 0, 0, 0.4) !important;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  color: var(--text-main, #FFFFFF) !important;
}

/* Master Modal Card Surface (Light Theme - Luxury Sky & Alabaster Gradient) */
body.light-theme .modal-card,
body.light-theme .admin-credit-modal-card,
body.light-theme .directory-modal-card,
body.light-theme .admin-promo-modal-card,
body.light-theme .admin-social-modal-card {
  background: linear-gradient(180deg, #FFFFFF 0%, #EDF8FD 100%) !important;
  border: 1.5px solid #0284C7 !important;
  border-top: 1.5px solid #FFFFFF !important;
  box-shadow: 
    0 24px 60px -10px rgba(11, 34, 56, 0.25), 
    0 12px 28px -4px rgba(11, 34, 56, 0.14), 
    0 0 0 1px rgba(2, 132, 199, 0.2),
    inset 0 1px 1px #FFFFFF, 
    inset 0 -2px 1px rgba(2, 132, 199, 0.2) !important;
  color: var(--text-main, #020617) !important;
}

.modal-md { max-width: 580px; }
.modal-lg { max-width: 780px; }
.modal-xl { max-width: 960px; }
.modal-details { max-width: 1080px; max-height: 92vh; }

/* RES Agent Security Inactivity Lockout Overlay */
#resInactivityLockModal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 2147483647 !important;
  background: rgba(3, 7, 18, 0.96) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}
#resInactivityLockModal .modal-card,
#resInactivityLockModal .res-inactivity-card {
  width: 440px !important;
  max-width: 94vw !important;
  border: 1.5px solid #F5D061 !important;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.95), 0 0 45px rgba(245, 208, 97, 0.25) !important;
  background: linear-gradient(180deg, #0B132B 0%, #030712 100%) !important;
  border-radius: 16px !important;
  padding: 30px 26px !important;
  text-align: center;
  box-sizing: border-box;
  position: relative;
}

/* Full-Page Deep Gaussian Blur when session is locked */
body.res-session-blurred > *:not(#resInactivityLockModal) {
  filter: blur(10px) brightness(0.65) !important;
  pointer-events: none !important;
  user-select: none !important;
  transition: filter 0.25s ease;
}

/* Hardware Shake Animation on Incorrect Credentials */
@keyframes resShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}
.res-shake {
  animation: resShake 0.4s ease-in-out !important;
}



/* 3D Depth & Specular Highlights for Inner Modal Panels & Tiles */
.modal-body [style*="background:var(--navy-input)"] {
  background: linear-gradient(180deg, rgba(2, 56, 84, 0.75) 0%, rgba(1, 30, 45, 0.9) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.18);
}

body.light-theme .modal-body [style*="background:var(--navy-input)"] {
  background: linear-gradient(180deg, #FFFFFF 0%, #EDF8FD 100%) !important;
  border-color: #6DAED8 !important;
  border-top-color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(11, 34, 56, 0.08), inset 0 1px 1px #FFFFFF;
}

.modal-details [style*="border-radius:14px; overflow:hidden;"] {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), inset 0 1px 1px rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-top: 1.5px solid rgba(255, 255, 255, 0.45);
}

.modal-header,
.admin-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(0, 0, 0, 0.08) 100%);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

body.light-theme .modal-header,
body.light-theme .admin-modal-header {
  border-bottom: 1px solid #D6EBF8 !important;
  background: linear-gradient(180deg, #FFFFFF 0%, #F5FBFE 100%) !important;
  box-shadow: 0 2px 8px rgba(11, 34, 56, 0.06) !important;
}

.modal-title,
.admin-modal-title,
.modal-card h3,
.admin-credit-modal-card h3,
.directory-modal-card h3,
.admin-promo-modal-card h3,
.modal-card h4,
.admin-promo-modal-card h4 {
  font-size: 1.30rem;
  font-weight: 800;
  color: var(--text-main, #FFFFFF);
  letter-spacing: -0.2px;
}

body.light-theme .modal-title,
body.light-theme .admin-modal-title,
body.light-theme .modal-card h3,
body.light-theme .admin-credit-modal-card h3,
body.light-theme .directory-modal-card h3,
body.light-theme .admin-promo-modal-card h3,
body.light-theme .modal-card h4,
body.light-theme .admin-promo-modal-card h4 {
  color: var(--text-main, #020617) !important;
}

.modal-close-btn,
.modal-card .modal-close-btn,
.admin-credit-modal-card .modal-close-btn,
.directory-modal-card .modal-close-btn,
.admin-promo-modal-card .modal-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 1.05rem;
  color: var(--text-muted, #CBD5E1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.25);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}

.modal-close-btn:hover,
.modal-card .modal-close-btn:hover,
.admin-credit-modal-card .modal-close-btn:hover,
.directory-modal-card .modal-close-btn:hover,
.admin-promo-modal-card .modal-close-btn:hover {
  transform: translateY(-1px) scale(1.05);
  border-color: #F5D061 !important;
  color: #F5D061 !important;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.modal-close-btn:active {
  transform: translateY(1px) scale(0.96);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

body.light-theme .modal-close-btn,
body.light-theme .modal-card .modal-close-btn,
body.light-theme .admin-credit-modal-card .modal-close-btn,
body.light-theme .directory-modal-card .modal-close-btn,
body.light-theme .admin-promo-modal-card .modal-close-btn {
  background: #F0F7FC !important;
  border-color: #6DAED8 !important;
  color: #0F172A !important;
  box-shadow: 0 2px 6px rgba(11, 34, 56, 0.1) !important;
}

body.light-theme .modal-close-btn:hover {
  border-color: #D97706 !important;
  color: #D97706 !important;
  background: #FFFFFF !important;
}

/* Dedicated Pop-up Window Close Button (Spacious, Fits Text Comfortably) */
.btn-close-modal,
.btn-close-popup-window {
  width: auto !important;
  min-width: 200px !important;
  height: 44px !important;
  padding: 0 24px !important;
  border-radius: 8px !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: #1E293B !important;
  color: #F8FAFC !important;
  border: 1px solid #334155 !important;
  cursor: pointer !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
  transition: all 0.2s ease !important;
}

.btn-close-modal:hover,
.btn-close-popup-window:hover {
  background: #334155 !important;
  border-color: #F5D061 !important;
  color: #F5D061 !important;
  transform: translateY(-1px) !important;
}

.btn-close-modal:active,
.btn-close-popup-window:active {
  transform: translateY(1px) !important;
}

body.light-theme .btn-close-modal,
body.light-theme .btn-close-popup-window {
  background: #E2E8F0 !important;
  color: #0F172A !important;
  border: 1px solid #CBD5E1 !important;
}

body.light-theme .btn-close-modal:hover,
body.light-theme .btn-close-popup-window:hover {
  background: #CBD5E1 !important;
  border-color: #D97706 !important;
  color: #D97706 !important;
}

/* Modal Inner Form Controls: Inputs, Selects, and Textareas */
.modal-card .form-input,
.modal-card .form-select,
.modal-card select,
.admin-credit-modal-card .admin-form-input,
.admin-credit-modal-card .admin-form-textarea,
.directory-modal-card .directory-dark-textarea,
.directory-modal-card .directory-model-select,
.admin-promo-modal-card .form-control-admin {
  background: var(--navy-input, #011E2D) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #FFFFFF !important;
  border-radius: var(--radius-sm, 8px);
}

.modal-card .form-input:focus,
.modal-card .form-select:focus,
.admin-credit-modal-card .admin-form-input:focus,
.admin-credit-modal-card .admin-form-textarea:focus,
.directory-modal-card .directory-dark-textarea:focus,
.admin-promo-modal-card .form-control-admin:focus {
  border-color: #38BDF8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25) !important;
}

body.light-theme .modal-card .form-input,
body.light-theme .modal-card .form-select,
body.light-theme .modal-card select,
body.light-theme .admin-credit-modal-card .admin-form-input,
body.light-theme .admin-credit-modal-card .admin-form-textarea,
body.light-theme .directory-modal-card .directory-dark-textarea,
body.light-theme .directory-modal-card .directory-model-select,
body.light-theme .admin-promo-modal-card .form-control-admin {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  border: 1.5px solid #CBD5E1 !important;
  color: #020617 !important;
}

body.light-theme .modal-card .form-input:focus,
body.light-theme .modal-card .form-select:focus,
body.light-theme .admin-credit-modal-card .admin-form-input:focus,
body.light-theme .admin-promo-modal-card .form-control-admin:focus {
  border-color: #0284C7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2) !important;
}

/* Modal Form Labels & Subtitles */
.modal-card label,
.modal-card .subtitle-text,
.admin-credit-modal-card .admin-form-label,
.admin-promo-modal-card .form-label-admin,
.directory-modal-card label {
  color: var(--text-muted, #CBD5E1);
}

body.light-theme .modal-card label,
body.light-theme .modal-card .subtitle-text,
body.light-theme .admin-credit-modal-card .admin-form-label,
body.light-theme .admin-promo-modal-card .form-label-admin,
body.light-theme .directory-modal-card label {
  color: var(--text-light, #1E293B) !important;
}

/* Modal Inner Panels, Rule Boxes, and Info Cards */
.modal-card .credit-rules-banner,
.modal-card .directory-prompt-box,
.modal-card .cea-box,
.modal-card .guideline-box,
.modal-card .inner-card,
.modal-card [style*="background:#0F172A"],
.modal-card [style*="background: #0F172A"],
.modal-card [style*="background:#080E21"],
.modal-card [style*="background: #080E21"] {
  background: linear-gradient(180deg, rgba(2, 56, 84, 0.75) 0%, rgba(1, 30, 45, 0.9) 100%) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  border-top-color: rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.18) !important;
}

body.light-theme .modal-card .credit-rules-banner,
body.light-theme .modal-card .directory-prompt-box,
body.light-theme .modal-card .cea-box,
body.light-theme .modal-card .guideline-box,
body.light-theme .modal-card .inner-card,
body.light-theme .modal-card [style*="background:#0F172A"],
body.light-theme .modal-card [style*="background: #0F172A"],
body.light-theme .modal-card [style*="background:#080E21"],
body.light-theme .modal-card [style*="background: #080E21"] {
  background: linear-gradient(180deg, #FFFFFF 0%, #EDF8FD 100%) !important;
  border-color: #6DAED8 !important;
  border-top-color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(11, 34, 56, 0.08), inset 0 1px 1px #FFFFFF !important;
  color: #020617 !important;
}

body.light-theme .modal-card .credit-rules-banner strong,
body.light-theme .modal-card .cea-box span,
body.light-theme .modal-card [style*="color:#F8FAFC"],
body.light-theme .modal-card [style*="color: #F8FAFC"],
body.light-theme .modal-card [style*="color:#FFF"],
body.light-theme .modal-card [style*="color: #FFF"],
body.light-theme .modal-card [style*="color:#E2E8F0"],
body.light-theme .modal-card [style*="color: #E2E8F0"] {
  color: #020617 !important;
}

body.light-theme .modal-card [style*="color:#CBD5E1"],
body.light-theme .modal-card [style*="color: #CBD5E1"],
body.light-theme .modal-card [style*="color:#94A3B8"],
body.light-theme .modal-card [style*="color: #94A3B8"] {
  color: #334155 !important;
}

body.light-theme .modal-card .modal-footer,
body.light-theme .modal-card [style*="border-top:1px solid #1E293B"],
body.light-theme .modal-card [style*="border-bottom:1px solid #1E293B"],
body.light-theme .modal-card [style*="border-top:1px solid #334155"],
body.light-theme .modal-card [style*="border-bottom:1px solid #334155"] {
  border-color: #D6EBF8 !important;
}


/* ==========================================================================
   MY PERFORMANCE MODAL (#myPerformanceModal)
   ========================================================================== */
#myPerformanceModal {
  z-index: 130000 !important;
}

#myPerformanceModal th.sortable {
  cursor: pointer;
  user-select: none;
  transition: color 0.15s ease;
}

#myPerformanceModal th.sortable:hover {
  color: #F5D061 !important;
}

#perfListingsTableWrap {
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

#myPerformanceModal .perf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

#myPerformanceModal .perf-table th {
  background: rgba(15, 23, 42, 0.85);
  color: var(--text-muted, #94A3B8);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border, #1E293B);
  white-space: nowrap;
}

#myPerformanceModal .perf-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-main, #F8FAFC);
  vertical-align: middle;
}

#myPerformanceModal .perf-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

#myPerformanceModal .perf-table .district-badge,
.district-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  font-family: var(--font-mono, monospace);
  background: rgba(56, 189, 248, 0.12);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 4px;
  padding: 2px 7px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

#myPerformanceModal .modal-card {
  max-width: 960px !important;
  width: 94% !important;
  max-height: 92vh !important;
  display: flex;
  flex-direction: column;
  padding: 24px !important;
  background: var(--navy-card, #0B192C) !important;
  border: 1px solid var(--border, #1E293B) !important;
  border-radius: 16px !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7) !important;
  overflow-x: hidden !important;
  overflow-y: hidden !important;
}

#myPerformanceModal .modal-body {
  flex: 1;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  min-width: 0 !important;
}

#myPerformanceModal .perf-tab-content {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

/* Horizontal 5-Tab Bar */
.perf-tab-bar {
  background: rgba(15, 23, 42, 0.5);
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border, #1E293B);
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.perf-channel-callout {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(99, 102, 241, 0.08));
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.perf-timeframe-toolbar {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.perf-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2.5px solid transparent;
  color: var(--text-muted, #94A3B8);
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.perf-tab-btn:hover {
  color: #F8FAFC;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px 6px 0 0;
}

.perf-tab-btn.active {
  color: #F5D061;
  border-bottom-color: #F5D061;
  font-weight: 700;
}

/* 8-Scorecard Grid */
.perf-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

@media (max-width: 960px) {
  .perf-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .perf-kpi-grid {
    grid-template-columns: 1fr;
  }
}

.perf-kpi-card {
  position: relative;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.perf-kpi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 208, 97, 0.35);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.perf-kpi-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.perf-kpi-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted, #94A3B8);
}

.perf-kpi-info-trigger {
  color: var(--text-muted, #64748B);
  font-size: 0.78rem;
  cursor: help;
  position: relative;
}

.perf-kpi-info-trigger:hover {
  color: #F5D061;
}

.perf-kpi-val {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 4px;
  font-family: var(--font-mono, monospace);
}

.perf-kpi-sub {
  font-size: 0.74rem;
  color: var(--text-muted, #94A3B8);
}

/* Tooltip on Hover */
.perf-kpi-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #020817;
  border: 1px solid rgba(245, 208, 97, 0.35);
  color: #F8FAFC;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.74rem;
  width: 230px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 1000;
  line-height: 1.35;
  text-align: left;
}

.perf-kpi-card:hover .perf-kpi-tooltip,
.perf-kpi-info-trigger:hover .perf-kpi-tooltip {
  opacity: 1;
  visibility: visible;
}

/* Optimisation Recommendation Cards */
.perf-opt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}

@media (max-width: 768px) {
  .perf-opt-grid {
    grid-template-columns: 1fr;
  }
}

.perf-opt-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.perf-opt-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

/* 8-Platform Social Cards */
.perf-social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}

@media (max-width: 900px) {
  .perf-social-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .perf-social-grid {
    grid-template-columns: 1fr;
  }
}

.perf-social-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* SVG Chart Tooltips & Wrappers */
.perf-svg-wrap {
  width: 100%;
  background: rgba(8, 14, 33, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  box-sizing: border-box;
}

body.light-theme .modal-close-btn {
  background: linear-gradient(180deg, #FFFFFF 0%, #EDF8FD 100%);
  border-color: #6DAED8;
  color: #012B40;
  box-shadow: 0 2px 6px rgba(11, 34, 56, 0.1), inset 0 1px 1px #FFFFFF;
}

body.light-theme .modal-close-btn:hover {
  border-color: #D97706;
  color: #D97706;
  box-shadow: 0 4px 10px rgba(11, 34, 56, 0.16), inset 0 1px 1px #FFFFFF;
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.25) 100%);
  box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

body.light-theme .modal-footer {
  border-top: 1px solid #D6EBF8;
  background: linear-gradient(180deg, #F5FBFE 0%, #EDF8FD 100%);
  box-shadow: 0 -2px 6px rgba(11, 34, 56, 0.05);
}

/* 4.10 Expiry Blinking Indicator */
.expiry-blinking-box {
  background: rgba(239, 68, 68, 0.12);
  border-radius: 8px;
  padding: 12px;
  animation: blinkBorder 2s infinite ease-in-out;
  margin-bottom: 14px;
}

/* =========================================================
   5.5 ADMIN KPI CARDS & DATA TABLES
   ========================================================= */
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.admin-kpi-card {
  background: linear-gradient(180deg, #023D5B 0%, #012437 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.18), inset 0 -2px 1px rgba(0, 0, 0, 0.15);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.admin-kpi-card:hover {
  transform: translateY(-3px);
  border-color: #F5D061;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

body.light-theme .admin-kpi-card {
  background: linear-gradient(180deg, #FFFFFF 0%, #EDF8FD 100%);
  border: 1px solid #6DAED8;
  border-top: 1px solid #FFFFFF;
  box-shadow: 0 4px 12px rgba(11, 34, 56, 0.08), inset 0 1px 1px #FFFFFF;
}

body.light-theme .admin-kpi-card:hover {
  border-color: #D97706;
  box-shadow: 0 8px 18px rgba(11, 34, 56, 0.15), inset 0 1px 1px #FFFFFF;
}

.admin-kpi-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.admin-kpi-value {
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1.2;
  color: var(--text-main);
}

.admin-kpi-sub {
  font-size: 0.70rem;
  font-weight: 600;
  color: var(--text-muted);
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--navy-card);
  width: 100%;
}

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

.admin-table thead tr {
  background: var(--navy-input);
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.71rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.admin-table th {
  padding: 8px 6px;
  font-weight: 800;
  vertical-align: middle;
  line-height: 1.25;
}

.admin-table td {
  padding: 7px 6px;
  font-size: 0.74rem;
  border-bottom: 1px solid rgba(248, 250, 252, 0.08);
  line-height: 1.3;
  vertical-align: middle;
}

.admin-table tbody tr:hover {
  background: rgba(248, 250, 252, 0.03);
}

body.light-theme .admin-table tbody tr:hover {
  background: rgba(0, 0, 0, 0.03);
}

/* =========================================================
   5.8 STATUS BADGES, SYSTEM PILLS & COMPLIANCE TAGS
   ========================================================= */
.admin-pill-badge {
  background: #EF4444 !important;
  color: #FFFFFF !important;
  font-size: 0.70rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.badge-active {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10B981;
  color: #10B981;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.badge-inactive {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #EF4444;
  color: #EF4444;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.badge-blocked {
  background: rgba(239, 68, 68, 0.20);
  border: 1.5px solid #DC2626;
  color: #FCA5A5;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.threat-critical {
  background: #EF4444;
  color: #FFFFFF;
  font-size: 0.70rem;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 6px;
}

.threat-high {
  background: #F59E0B;
  color: #080E21;
  font-size: 0.70rem;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 6px;
}

.threat-info {
  background: #3B82F6;
  color: #FFFFFF;
  font-size: 0.70rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
}

.badge-csa-compliance {
  background: rgba(16, 185, 129, 0.20);
  border: 1px solid #059669;
  color: #34D399;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

/* =========================================================
   4.13 FOOTER STYLES
   ========================================================= */
.site-footer {
  background: var(--dark-bg);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px 0;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-main);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-col a:hover {
  color: #FFFFFF;
}

body.light-theme .footer-col a:hover {
  color: #020617;
}

.footer-bottom {
  border-top: 1px solid rgba(248, 250, 252, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-light);
  width: 100%;
  margin: 0 auto;
}

/* =========================================================
   HOMEPAGE SPECIFIC COMPONENTS
   ========================================================= */

/* 2. Top System Maintenance & Announcement Banner */
.announcement-banner {
  background: linear-gradient(90deg, #1E293B 0%, #0F172A 100%);
  border-bottom: 1px solid rgba(245, 158, 11, 0.4);
  color: #F8FAFC;
  padding: 10px 16px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  position: relative;
  z-index: 1001;
  transition: all 0.3s ease;
}

body.light-theme .announcement-banner {
  background: linear-gradient(90deg, #EFF6FF 0%, #DBEAFE 100%);
  border-bottom: 1px solid rgba(217, 119, 6, 0.4);
  color: #0F172A;
}

.announcement-banner.hidden {
  display: none !important;
}

.announcement-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.announcement-icon {
  color: #F59E0B;
  font-size: 1rem;
}

.announcement-text {
  font-size: 0.82rem;
  line-height: 1.4;
}

.announcement-text strong {
  font-weight: 700;
  color: #F5D061;
  margin-right: 6px;
}

body.light-theme .announcement-text strong {
  color: #92400E;
}

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

.announcement-badge {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #FCD34D;
  font-size: 0.70rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.4px;
}

body.light-theme .announcement-badge {
  background: rgba(217, 119, 6, 0.15);
  border-color: #D97706;
  color: #92400E;
}

.announcement-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.announcement-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

/* User Profile Pill Menu (Desktop) */
.user-profile-menu {
  position: relative;
}

.nav-profile-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-radius: 24px;
  background: var(--navy-input);
  border: 1px solid var(--border);
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-standard);
}

.nav-profile-pill:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.user-avatar-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F5D061 0%, #D97706 100%);
  color: #080E21;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
}

/* =========================================================
   LUXURY CONCIERGE MENU DROPDOWN SYSTEM
   ========================================================= */
.nav-profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 325px;
  background: linear-gradient(180deg, rgba(2, 45, 70, 0.97) 0%, rgba(1, 24, 38, 0.98) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-top: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 18px;
  box-shadow: 
    0 28px 70px -10px rgba(0, 0, 0, 0.85), 
    0 12px 28px -4px rgba(0, 0, 0, 0.5), 
    inset 0 1px 1px rgba(255, 255, 255, 0.35);
  display: none;
  z-index: var(--z-dropdown);
  overflow: hidden;
  padding: 0;
}

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

.nav-profile-dropdown.open {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  animation: classyDropdownFade 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Luxury Concierge Header */
.dropdown-header-role {
  padding: 16px 18px 14px 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(0, 0, 0, 0.12) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
}

.role-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.role-badge-pill {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #F5D061;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.role-status-dot {
  font-size: 0.68rem;
  font-weight: 700;
  color: #34D399;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.role-status-dot:hover {
  opacity: 0.85;
}

.role-status-dot:active {
  transform: scale(0.92);
}

.status-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  display: inline-block;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.role-header-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.2px;
}

.role-header-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 1px;
}

/* Featured VIP Card (Sign-in Agent) */
.dropdown-featured-wrap {
  padding: 12px 14px 6px 14px;
}

.dropdown-vip-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(245, 208, 97, 0.16) 0%, rgba(217, 119, 6, 0.10) 100%);
  border: 1px solid rgba(245, 208, 97, 0.45);
  border-top: 1.5px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  cursor: pointer;
  text-align: left;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-vip-card:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(245, 208, 97, 0.25) 0%, rgba(217, 119, 6, 0.18) 100%);
  border-color: #F5D061;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45), 0 0 16px rgba(245, 208, 97, 0.25);
}

.vip-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #F5D061 0%, #D97706 100%);
  color: #080E21;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35), inset 0 1px 1px #FFFFFF;
  flex-shrink: 0;
}

.vip-text-stack {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.vip-badge-mini {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #F5D061;
}

.vip-title {
  font-size: 0.86rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.25;
}

.vip-sub {
  font-size: 0.70rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 1px;
}

.vip-arrow {
  color: #F5D061;
  font-size: 0.85rem;
  transition: transform 0.2s ease;
}

.dropdown-vip-card:hover .vip-arrow {
  transform: translateX(4px);
}

/* Section Divider / Label */
.dropdown-section-label {
  padding: 10px 18px 4px 18px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

/* Menu Items List */
.dropdown-menu-list {
  padding: 4px 8px 8px 8px;
}

.dropdown-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 12px;
  color: var(--text-main);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  width: 100%;
  text-align: left;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 2px;
}

.dropdown-menu-item:hover {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateX(3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.menu-icon-tile {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.2s ease;
}

.dropdown-menu-item:hover .menu-icon-tile {
  transform: scale(1.08);
}

.menu-icon-tile.icon-sky {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22) 0%, rgba(14, 165, 233, 0.12) 100%);
  color: #38BDF8;
}

.menu-icon-tile.icon-emerald {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22) 0%, rgba(5, 150, 105, 0.12) 100%);
  color: #10B981;
}

.menu-icon-tile.icon-amber {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22) 0%, rgba(217, 119, 6, 0.12) 100%);
  color: #F59E0B;
}

.menu-icon-tile.icon-purple {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.22) 0%, rgba(126, 34, 206, 0.12) 100%);
  color: #C084FC;
}

.menu-icon-tile.icon-rose {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.22) 0%, rgba(225, 29, 72, 0.12) 100%);
  color: #FB7185;
}

.menu-text-stack {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.menu-item-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
}

.dropdown-menu-item:hover .menu-item-name {
  color: #F5D061;
}

.menu-item-desc {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-chevron {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
}

.dropdown-menu-item:hover .menu-chevron {
  color: #F5D061;
  transform: translateX(3px);
}

/* Menu Footer Bar */
.dropdown-menu-footer {
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
}

/* Light Theme Overrides */
body.light-theme .nav-profile-pill {
  background: linear-gradient(180deg, #FFFFFF 0%, #EDF8FD 100%);
  border-color: #6DAED8;
  color: #012B40;
  box-shadow: 0 3px 8px rgba(11, 34, 56, 0.12), inset 0 1px 1px #FFFFFF;
}

body.light-theme .nav-profile-pill:hover {
  border-color: #D97706;
  box-shadow: 0 5px 12px rgba(11, 34, 56, 0.18), inset 0 1px 1px #FFFFFF;
}

body.light-theme .nav-profile-pill i.fa-bars {
  color: #012B40 !important;
}

body.light-theme .nav-profile-pill .user-avatar-circle {
  background: #012B40 !important;
  color: #FFFFFF !important;
}

body.light-theme .nav-profile-dropdown {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 251, 254, 0.98) 100%);
  border: 1px solid #6DAED8;
  border-top: 1.5px solid #FFFFFF;
  box-shadow: 0 24px 60px -10px rgba(11, 34, 56, 0.22), 0 10px 24px -4px rgba(11, 34, 56, 0.12), inset 0 1px 1px #FFFFFF;
}

body.light-theme .dropdown-header-role {
  background: linear-gradient(180deg, #FFFFFF 0%, #EDF8FD 100%);
  border-bottom: 1px solid #D6EBF8;
}

body.light-theme .role-badge-pill {
  color: #D97706;
}

body.light-theme .role-status-dot {
  color: #059669;
}

body.light-theme .role-header-title {
  color: #012B40;
}

body.light-theme .role-header-sub {
  color: #64748B;
}

body.light-theme .dropdown-vip-card {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  border: 1px solid #F59E0B;
  border-top: 1.5px solid #FFFFFF;
  box-shadow: 0 4px 12px rgba(11, 34, 56, 0.08), inset 0 1px 1px #FFFFFF;
}

body.light-theme .dropdown-vip-card:hover {
  background: linear-gradient(135deg, #FDE68A 0%, #FCD34D 100%);
  border-color: #D97706;
  box-shadow: 0 6px 16px rgba(11, 34, 56, 0.15), 0 0 14px rgba(217, 119, 6, 0.2);
}

body.light-theme .vip-badge-mini {
  color: #92400E;
}

body.light-theme .vip-title {
  color: #78350F;
}

body.light-theme .vip-sub {
  color: #92400E;
}

body.light-theme .vip-arrow {
  color: #92400E;
}

body.light-theme .dropdown-section-label {
  color: #64748B;
}

body.light-theme .dropdown-menu-item {
  color: #012B40;
}

body.light-theme .dropdown-menu-item:hover {
  background: linear-gradient(90deg, #EDF8FD 0%, #F5FBFE 100%);
  border-color: #B5D7ED;
  box-shadow: 0 2px 8px rgba(11, 34, 56, 0.06);
}

body.light-theme .dropdown-menu-item:hover .menu-item-name {
  color: #D97706;
}

body.light-theme .menu-item-name {
  color: #012B40;
}

body.light-theme .menu-item-desc {
  color: #64748B;
}

body.light-theme .menu-chevron {
  color: #94A3B8;
}

body.light-theme .dropdown-menu-item:hover .menu-chevron {
  color: #D97706;
}

body.light-theme .menu-icon-tile {
  border-color: #B5D7ED;
  box-shadow: 0 2px 4px rgba(11, 34, 56, 0.06), inset 0 1px 1px #FFFFFF;
}

body.light-theme .dropdown-menu-footer {
  background: #EDF8FD;
  border-top: 1px solid #D6EBF8;
  color: #64748B;
}

/* 4. Airbnb-Style Category Pills Bar */
.category-pills-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  overflow-x: visible;
  padding: 4px 0 16px 0;
  margin: 0 auto 20px auto;
  width: 100%;
  max-width: 100%;
  text-align: center;
}

.category-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: 9999px;
  background: linear-gradient(180deg, rgba(2, 53, 80, 0.88) 0%, rgba(1, 30, 45, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.category-pill-btn:hover {
  background: linear-gradient(180deg, rgba(3, 70, 104, 0.95) 0%, rgba(2, 45, 68, 0.95) 100%);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.45);
}

.category-pill-btn.active {
  background: linear-gradient(180deg, #FFFFFF 0%, #F1F5F9 100%) !important;
  color: #012B40 !important;
  border-color: #FFFFFF !important;
  font-weight: 800 !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.3), inset 0 -2px 0 rgba(0, 0, 0, 0.12), inset 0 1px 2px #FFFFFF !important;
  transform: translateY(-1px);
}

.category-pill-btn.active i {
  color: #012B40 !important;
}

/* Category Pills Bar in Light Theme: Crisp White Inactive Pills, Warm Golden Amber Active Pill */
body.light-theme .category-pill-btn {
  background: #FFFFFF !important;
  color: #0F172A !important;
  border: 1.5px solid #0284C7 !important;
  box-shadow: 0 2px 8px rgba(11, 34, 56, 0.12), 0 0 0 1px rgba(2, 132, 199, 0.15), inset 0 1px 0 #FFFFFF !important;
}

body.light-theme .category-pill-btn:hover {
  background: #F8FAFC !important;
  color: #0284C7 !important;
  border-color: #0369A1 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(11, 34, 56, 0.16), 0 0 0 1px rgba(2, 132, 199, 0.3) !important;
}

body.light-theme .category-pill-btn.active {
  background: linear-gradient(180deg, #F5D061 0%, #E5A93C 100%) !important;
  color: #080E21 !important;
  border: 1.5px solid #B45309 !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35), 0 0 0 1px rgba(180, 83, 9, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
  transform: translateY(-1px);
}

body.light-theme .category-pill-btn.active i {
  color: #080E21 !important;
}

/* 5. Main Dynamic Search & Filter Panel (Pixel Matched with 3D Depth) */
.filter-panel-card {
  background: linear-gradient(180deg, rgba(2, 45, 70, 0.92) 0%, rgba(1, 28, 44, 0.96) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 18px;
  padding: 24px 28px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 
    0 24px 60px -8px rgba(0, 0, 0, 0.8),
    0 10px 24px -4px rgba(0, 0, 0, 0.5),
    inset 0 1px 1px rgba(255, 255, 255, 0.35),
    inset 0 -1px 2px rgba(0, 0, 0, 0.4);
  margin-top: 20px;
  margin-bottom: 10px;
  text-align: left;
  width: 100%;
}

body.light-theme .filter-panel-card {
  background: linear-gradient(180deg, rgba(240, 249, 254, 0.96) 0%, rgba(226, 239, 247, 0.96) 100%);
  border: 2px solid #0284C7 !important;
  box-shadow: 0 20px 45px rgba(11, 34, 56, 0.18), 0 0 0 1px rgba(2, 132, 199, 0.25), inset 0 1px 2px #FFFFFF !important;
}

/* Row 1: Intent Toggle & Quick Selects */
.filter-row-1 {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 16px;
}

@media (max-width: 991px) {
  .filter-row-1 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .filter-row-1 {
    grid-template-columns: 1fr;
  }
}

.filter-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #FFFFFF;
  margin-bottom: 8px;
  display: block;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

body.light-theme .filter-label {
  color: #0B2238;
  text-shadow: none;
}

.intent-toggle-group {
  display: flex;
  background: #011622;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  padding: 3px;
  height: 42px;
  width: 100%;
  align-items: center;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.65), 0 1px 1px rgba(255, 255, 255, 0.12);
}

body.light-theme .intent-toggle-group {
  background: #E2EFF7;
  border: 1.5px solid #0284C7 !important;
  box-shadow: inset 0 2px 4px rgba(11, 34, 56, 0.12), 0 0 0 1px rgba(2, 132, 199, 0.15) !important;
}

.intent-toggle-btn {
  flex: 1;
  border: none;
  background: transparent;
  color: #E2E8F0;
  font-size: 0.76rem;
  font-weight: 700;
  border-radius: 9999px;
  height: 36px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  padding: 0 8px;
}

.intent-toggle-btn:hover {
  color: #FFFFFF;
}

body.light-theme .intent-toggle-btn {
  color: #0B2238;
}

.intent-toggle-btn.active {
  background: linear-gradient(180deg, #FFFFFF 0%, #F1F5F9 100%) !important;
  color: #012B40 !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.25), inset 0 1px 1px #FFFFFF, inset 0 -2px 1px rgba(0, 0, 0, 0.1) !important;
  transform: translateY(-1px);
}

body.light-theme .intent-toggle-btn.active {
  background: linear-gradient(180deg, #F5D061 0%, #E5A93C 100%) !important;
  color: #080E21 !important;
  border: 1px solid #D97706 !important;
  font-weight: 800 !important;
  box-shadow: 0 3px 10px rgba(217, 119, 6, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
}

.form-select {
  background: #011E2D url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") no-repeat right 14px center / 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  height: 42px;
  padding: 0 32px 0 14px;
  color: #FFFFFF;
  font-size: 0.84rem;
  font-weight: 600;
  appearance: none;
  width: 100%;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: all 0.2s ease;
}

.form-select:hover {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.form-select:focus {
  border-color: #38BDF8;
  outline: none;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25), 0 6px 16px rgba(0, 0, 0, 0.5);
}

body.light-theme .form-select {
  background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23012B40'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") no-repeat right 14px center / 14px;
  border: 1.5px solid #0284C7 !important;
  color: #0B2238;
  box-shadow: 0 2px 6px rgba(11, 34, 56, 0.08), 0 0 0 1px rgba(2, 132, 199, 0.15), inset 0 1px 0 #FFFFFF !important;
}

/* Row 2: Goods Access Row */
.goods-access-row {
  margin-bottom: 16px;
}

.goods-access-box {
  background: rgba(1, 20, 32, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px 10px;
  overflow-x: visible;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6), 0 1px 1px rgba(255, 255, 255, 0.12);
}

body.light-theme .goods-access-box {
  background: #EFF8FC !important;
  border: 1.5px solid #0284C7 !important;
  box-shadow: inset 0 2px 4px rgba(11, 34, 56, 0.08), 0 0 0 1px rgba(2, 132, 199, 0.15) !important;
}

.goods-access-item {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  gap: 5px;
  font-size: 0.70rem;
  color: #E2E8F0;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  transition: color 0.15s ease;
}

.goods-access-item:hover {
  color: #FFFFFF;
}

body.light-theme .goods-access-item {
  color: #0B2238;
}

.goods-access-item input[type="checkbox"] {
  width: 13px;
  height: 13px;
  border-radius: 3px;
  accent-color: #0284C7;
  cursor: pointer;
  margin: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Row 3: Natural Language Query Row */
.nl-query-container {
  position: relative;
}

.nl-query-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

@media (max-width: 640px) {
  .nl-query-row {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-nl-search-white {
    width: 100% !important;
    justify-content: center !important;
  }
}

.nl-query-input-wrap {
  position: relative;
  flex: 1;
}

.nl-query-input {
  width: 100%;
  height: 44px;
  border-radius: 10px;
  background: #011E2D;
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 0 44px 0 16px;
  color: #FFFFFF;
  font-size: 0.88rem;
  outline: none;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6), 0 1px 1px rgba(255, 255, 255, 0.12);
  transition: all 0.2s ease;
}

body.light-theme .nl-query-input {
  background: #FFFFFF;
  border: 1.5px solid #0284C7 !important;
  color: #0B2238;
  box-shadow: inset 0 2px 4px rgba(11, 34, 56, 0.08), 0 0 0 1px rgba(2, 132, 199, 0.15) !important;
}

.nl-query-input:focus {
  border-color: #38BDF8;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4), 0 0 0 3px rgba(56, 189, 248, 0.25), 0 6px 16px rgba(0, 0, 0, 0.45);
}

.nl-query-input::placeholder {
  color: #94A3B8;
}

.btn-mic {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #CBD5E1;
  font-size: 1.05rem;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}

.btn-mic:hover {
  color: #F5D061;
  transform: translateY(-50%) scale(1.1);
}

.btn-nl-search-white {
  background: linear-gradient(180deg, #FFFFFF 0%, #F1F5F9 100%) !important;
  color: #012B40 !important;
  border-radius: 10px !important;
  height: 44px !important;
  padding: 0 26px !important;
  font-size: 0.88rem !important;
  font-weight: 800 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  border: none !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), 0 2px 4px rgba(0, 0, 0, 0.25), inset 0 1px 2px #FFFFFF, inset 0 -2px 1px rgba(0, 0, 0, 0.12) !important;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease !important;
}

.btn-nl-search-white:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.55), 0 3px 8px rgba(0, 0, 0, 0.3), inset 0 1px 2px #FFFFFF !important;
}

.btn-nl-search-white:active {
  transform: translateY(1px) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4), inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

body.light-theme .btn-nl-search-white {
  background: linear-gradient(180deg, #F5D061 0%, #E5A93C 100%) !important;
  color: #080E21 !important;
  border: 1.5px solid #B45309 !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35), 0 0 0 1px rgba(180, 83, 9, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.5) !important;
}

body.light-theme .btn-nl-search-white i {
  color: #080E21 !important;
}

/* White Pill CTA Button for Navbar */
.btn-add-property-white {
  background: linear-gradient(180deg, #FFFFFF 0%, #F1F5F9 100%) !important;
  color: #012B40 !important;
  border-radius: 9999px !important;
  height: 38px !important;
  padding: 0 18px !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  border: none !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), inset 0 1px 1px #FFFFFF, inset 0 -2px 1px rgba(0, 0, 0, 0.12) !important;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease !important;
}

.btn-add-property-white:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5), inset 0 1px 1px #FFFFFF !important;
}

.btn-add-property-white:active {
  transform: translateY(1px) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35), inset 0 2px 3px rgba(0, 0, 0, 0.2) !important;
}

body.light-theme .btn-add-property-white {
  background: linear-gradient(180deg, #F5D061 0%, #E5A93C 100%) !important;
  color: #080E21 !important;
  border: 1.5px solid #B45309 !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35), 0 0 0 1px rgba(180, 83, 9, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.5) !important;
}

body.light-theme .btn-add-property-white i {
  color: #080E21 !important;
}

/* 6. Results Header & Controls Toolbar (Pixel Matched with 3D Depth) */
.results-header-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 14px;
  padding: 8px 0;
}

.results-count-title {
  font-size: 0.95rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  color: #FFFFFF !important;
  margin: 0 !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

body.light-theme .results-count-title {
  color: #012B40 !important;
  text-shadow: none;
}

.results-toolbar-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.toolbar-control-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.toolbar-control-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #FFFFFF;
  letter-spacing: 0.4px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

body.light-theme .toolbar-control-label {
  color: #012B40;
  text-shadow: none;
}

.toolbar-pill-select {
  height: 34px;
  padding: 0 28px 0 14px;
  border-radius: 9999px;
  background: #011E2D url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") no-repeat right 12px center / 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  appearance: none;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  transition: all 0.2s ease;
}

.toolbar-pill-select:hover {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.22);
}

body.light-theme .toolbar-pill-select {
  background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23012B40'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") no-repeat right 12px center / 12px;
  border-color: #B5D7ED;
  color: #0B2238;
  box-shadow: 0 2px 6px rgba(11, 34, 56, 0.08), inset 0 1px 0 #FFFFFF;
}

.view-pill-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.view-pill-btn {
  height: 34px;
  padding: 0 16px;
  border-radius: 9999px;
  background: linear-gradient(180deg, rgba(2, 53, 80, 0.85) 0%, rgba(1, 30, 45, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.view-pill-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

body.light-theme .view-pill-btn {
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  color: #0F172A !important;
  box-shadow: 0 2px 6px rgba(11, 34, 56, 0.06), inset 0 1px 0 #FFFFFF !important;
}

body.light-theme .view-pill-btn:hover {
  background: #F8FAFC !important;
  border-color: #6DAED8 !important;
  color: #0284C7 !important;
}

body.light-theme .view-pill-btn.active,
body.light-theme .view-toggle-btn.active {
  background: linear-gradient(180deg, #F5D061 0%, #E5A93C 100%) !important;
  color: #080E21 !important;
  border: 1px solid #D97706 !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
}

body.light-theme .view-pill-btn.active i,
body.light-theme .view-toggle-btn.active i {
  color: #080E21 !important;
}

/* List View Variant */
.property-list-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.property-list-card {
  display: grid;
  grid-template-columns: 320px 1fr 220px;
  background: linear-gradient(180deg, #023D5B 0%, #012437 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 34px -4px rgba(0, 0, 0, 0.65), 0 6px 16px -2px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body.light-theme .property-list-card {
  background: linear-gradient(180deg, #FFFFFF 0%, #F0F8FC 100%);
  border: 1.5px solid #0284C7 !important;
  box-shadow: 0 12px 28px rgba(11, 34, 56, 0.12), 0 0 0 1px rgba(2, 132, 199, 0.18), inset 0 1px 1px #FFFFFF !important;
}

@media (max-width: 991px) {
  .property-list-card {
    grid-template-columns: 1fr;
  }
}

.property-list-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 208, 97, 0.7);
  box-shadow: 0 28px 65px -8px rgba(0, 0, 0, 0.85), 0 12px 28px -4px rgba(0, 0, 0, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.32);
}

/* Map View Container */
.map-view-wrapper {
  display: none;
  margin-bottom: 36px;
}

.map-view-wrapper.open {
  display: block;
}

/* Pagination Bar */
.pagination-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.page-btn {
  height: 38px;
  min-width: 38px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--navy-input);
  border: 1px solid var(--border);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.page-btn:hover {
  border-color: var(--border-hover);
  color: #F5D061;
}

.page-btn.active {
  background: var(--gold-gradient);
  color: #080E21;
  border-color: #92400E;
  font-weight: 800;
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* District Directory Grid (Footer) */
.district-directory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 8px;
}

@media (max-width: 768px) {
  .district-directory-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.district-pill-link {
  font-size: 0.74rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 6px;
  border-radius: 4px;
  transition: var(--transition-fast);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.district-pill-link:hover {
  color: #F5D061;
  background: rgba(248, 250, 252, 0.06);
}

/* =========================================================
   SIGNED-IN RES AGENT PORTAL STYLES
   ========================================================= */

/* Top Navigation Morphing & Identity (RES Agent Portal Badge Hidden per User Request) */
.agent-portal-badge {
  display: none !important;
}

.btn-post-nav {
  height: 38px;
  padding: 0 16px;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* Agent Dropdown 'Add Property' Option: Hidden on desktop / laptop / tablet */
.agent-menu-add-property,
#agentDropdownAddProperty {
  display: none !important;
}

/* Guest Dropdown 'Language Translator' Option: Hidden on desktop / laptop / tablet */
.guest-menu-lang-wrapper,
#guestDropdownLangWrapper {
  display: none !important;
}

@media (max-width: 991px) {
  .agent-portal-badge {
    display: none !important;
  }
  .navbar-actions {
    gap: 6px !important;
  }
  #guestNavControls,
  #agentNavControls {
    gap: 6px !important;
  }
  #agentNavControls .agent-identity-cluster {
    height: 38px !important;
    padding: 0 10px 0 6px !important;
    gap: 6px !important;
    border-radius: 24px !important;
    background: var(--navy-input) !important;
    border: 1px solid var(--border) !important;
  }
  #agentNavControls .agent-meta-stack {
    display: flex !important;
    flex-direction: column !important;
  }
  #agentNavControls .agent-meta-name {
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    color: var(--text-main) !important;
    line-height: 1.1 !important;
  }
  #agentNavControls .agent-meta-sub {
    font-size: 0.65rem !important;
    color: var(--text-muted) !important;
    line-height: 1 !important;
  }
  .agent-avatar-ring {
    width: 28px !important;
    height: 28px !important;
    border: 2px solid #E11D48 !important;
  }
  .btn-post-nav {
    height: 36px !important;
    padding: 0 12px !important;
    font-size: 0.78rem !important;
    border-radius: 20px !important;
  }
}

/* Smart phones with smaller screens (<= 767px):
   1. Agent Mode: Move 'Add Property' button out of the top navbar and into the agent menu above 'My Profile & Contact'
   2. Guest Mode: Move 'Language Translator' out of the top navbar and into the guest menu above 'Sign-in Agent' */
@media (max-width: 767px) {
  .btn-post-nav,
  #btnPostListingNav {
    display: none !important;
  }
  .agent-menu-add-property,
  #agentDropdownAddProperty {
    display: flex !important;
  }
  .lang-selector {
    display: none !important;
  }
  .guest-menu-lang-wrapper,
  #guestDropdownLangWrapper {
    display: block !important;
  }
}

@media (max-width: 640px) {
  .navbar-actions {
    gap: 5px !important;
  }
  #guestNavControls,
  #agentNavControls {
    gap: 5px !important;
  }
  .lang-selector {
    display: none !important;
  }
  .btn-theme-toggle #themeLabel {
    display: none !important;
  }
  .btn-theme-toggle {
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    justify-content: center !important;
    border-radius: 50% !important;
  }
  #agentNavControls .agent-identity-cluster i.fa-chevron-down {
    display: inline-block !important;
    font-size: 0.60rem !important;
    color: var(--text-muted) !important;
  }
}

@media (max-width: 460px) {
  #agentNavControls .agent-meta-sub {
    display: none !important;
  }
  #agentNavControls .agent-identity-cluster {
    height: 36px !important;
    padding: 0 8px 0 4px !important;
    gap: 6px !important;
  }
  .brand-logo-img {
    height: 26px !important;
  }
}

/* Agent Credit Pill (Hidden from top navbar / hero banner per user request) */
.agent-credit-pill,
#creditPill {
  display: none !important;
}

.agent-identity-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 12px;
  border-radius: 24px;
  background: var(--navy-input);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition-standard);
}

body.light-theme .agent-identity-cluster {
  background: #EDF8FD;
  border-color: #6DAED8;
}

.agent-identity-cluster:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

/* Agent Profile Pill - Matches Guest Mode Pill exactly */
.agent-profile-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-radius: 24px;
  background: var(--navy-input);
  border: 1px solid var(--border);
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-standard);
}

.agent-profile-pill:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.agent-profile-pill .agent-avatar-ring {
  width: 24px !important;
  height: 24px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  flex-shrink: 0 !important;
  display: block !important;
  border: 1.5px solid #E11D48 !important;
}

body.light-theme .agent-profile-pill {
  background: #FFFFFF !important;
  border-color: #CBD5E1 !important;
  color: #0F172A !important;
  box-shadow: 0 3px 8px rgba(11, 34, 56, 0.12), inset 0 1px 1px #FFFFFF !important;
}

body.light-theme .agent-profile-pill:hover {
  border-color: #D97706 !important;
  box-shadow: 0 5px 12px rgba(11, 34, 56, 0.18), inset 0 1px 1px #FFFFFF !important;
}

body.light-theme .agent-profile-pill i.fa-bars {
  color: #012B40 !important;
}

.agent-avatar-ring {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #F5D061;
}

.agent-meta-stack {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.agent-meta-name {
  font-size: 0.80rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.agent-meta-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-family: 'SF Mono', monospace;
}

.agent-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 300px;
  background: linear-gradient(180deg, rgba(2, 45, 70, 0.97) 0%, rgba(1, 24, 38, 0.98) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-top: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 18px;
  box-shadow: 
    0 28px 70px -10px rgba(0, 0, 0, 0.85), 
    0 12px 28px -4px rgba(0, 0, 0, 0.5), 
    inset 0 1px 1px rgba(255, 255, 255, 0.35);
  display: none;
  z-index: var(--z-dropdown);
  overflow: hidden;
}

.agent-dropdown-menu.open {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  animation: classyDropdownFade 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.agent-dropdown-header {
  padding: 16px 18px 14px 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(0, 0, 0, 0.12) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

body.light-theme .agent-dropdown-menu {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 251, 254, 0.98) 100%);
  border: 1px solid #6DAED8;
  border-top: 1.5px solid #FFFFFF;
  box-shadow: 0 24px 60px -10px rgba(11, 34, 56, 0.22), 0 10px 24px -4px rgba(11, 34, 56, 0.12), inset 0 1px 1px #FFFFFF;
}

body.light-theme .agent-dropdown-header {
  background: linear-gradient(180deg, #FFFFFF 0%, #EDF8FD 100%);
  border-bottom: 1px solid #D6EBF8;
}

.dropdown-menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 4px 10px;
}

body.light-theme .dropdown-menu-divider {
  background: rgba(11, 34, 56, 0.12) !important;
}

.dropdown-menu-item.agent-menu-danger {
  color: #EF4444 !important;
}

.dropdown-menu-item.agent-menu-danger i {
  color: #EF4444 !important;
}

.dropdown-menu-item.agent-menu-danger:hover {
  background: rgba(239, 68, 68, 0.12) !important;
  border-color: rgba(239, 68, 68, 0.28) !important;
}

body.light-theme .dropdown-menu-item.agent-menu-danger {
  color: #DC2626 !important;
}

body.light-theme .dropdown-menu-item.agent-menu-danger i {
  color: #DC2626 !important;
}

body.light-theme .dropdown-menu-item.agent-menu-danger:hover {
  background: rgba(220, 38, 38, 0.08) !important;
  border-color: rgba(220, 38, 38, 0.22) !important;
}

/* Agent Auth Modal (Sign-in / Register) */
.agent-auth-tab {
  background: transparent;
  color: #94A3B8;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.agent-auth-tab.active {
  background: linear-gradient(135deg, #F5D061 0%, #D97706 100%) !important;
  color: #080E21 !important;
  border: 1px solid #F5D061 !important;
  box-shadow: 0 4px 14px rgba(245, 208, 97, 0.35) !important;
}

body.light-theme .agent-auth-tab {
  color: #64748B;
}

body.light-theme .agent-auth-tab.active {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%) !important;
  color: #FFFFFF !important;
  border: 1px solid #0284C7 !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25) !important;
}

.btn-pwd-eye {
  transition: color 0.15s ease;
}
.btn-pwd-eye:hover {
  color: #F8FAFC !important;
}
body.light-theme .btn-pwd-eye:hover {
  color: #0F172A !important;
}

/* 6-Color Semantic Jewel Action Buttons (RES Agent & Admin Standard) */
.btn-jewel-emerald {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
  border: 2px solid #065F46 !important;
  color: #FFFFFF !important;
}
.btn-jewel-emerald:hover {
  background: linear-gradient(135deg, #34D399 0%, #10B981 100%) !important;
  border-color: #064E3B !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4) !important;
}

.btn-jewel-blue {
  background: linear-gradient(135deg, #38BDF8 0%, #2563EB 100%) !important;
  border: 2px solid #1E40AF !important;
  color: #FFFFFF !important;
}
.btn-jewel-blue:hover {
  background: linear-gradient(135deg, #60A5FA 0%, #2563EB 100%) !important;
  border-color: #1E3A8A !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4) !important;
}

.btn-jewel-gold {
  background: linear-gradient(135deg, #F5D061 0%, #D97706 100%) !important;
  border: 2px solid #92400E !important;
  color: #080E21 !important;
}
.btn-jewel-gold:hover {
  background: linear-gradient(135deg, #FCE082 0%, #DFB943 100%) !important;
  border-color: #78350F !important;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.45) !important;
}

.btn-jewel-crimson {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%) !important;
  border: 2px solid #991B1B !important;
  color: #FFFFFF !important;
}
.btn-jewel-crimson:hover {
  background: linear-gradient(135deg, #F87171 0%, #EF4444 100%) !important;
  border-color: #7F1D1D !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4) !important;
}

.btn-jewel-purple {
  background: linear-gradient(135deg, #A855F7 0%, #7E22CE 100%) !important;
  border: 2px solid #581C87 !important;
  color: #FFFFFF !important;
}
.btn-jewel-purple:hover {
  background: linear-gradient(135deg, #C084FC 0%, #9333EA 100%) !important;
  border-color: #3B0764 !important;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4) !important;
}

.btn-jewel-slate {
  background: linear-gradient(135deg, #64748B 0%, #475569 100%) !important;
  border: 2px solid #1E293B !important;
  color: #FFFFFF !important;
}
.btn-jewel-slate:hover {
  background: linear-gradient(135deg, #94A3B8 0%, #64748B 100%) !important;
  border-color: #0F172A !important;
  box-shadow: 0 4px 12px rgba(100, 116, 139, 0.4) !important;
}

/* Exact 29.5px Action Buttons */
.btn-action-29 {
  height: 29.5px !important;
  min-height: 29.5px !important;
  max-height: 29.5px !important;
  padding: 0 14px !important;
  font-size: 0.80rem !important;
  font-weight: 800 !important;
  line-height: 1.0 !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  transition: var(--transition-standard) !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

/* =========================================================
   #postModal (Add / Edit Listing)
   ========================================================= */
.credit-rule-notice {
  background: linear-gradient(180deg, rgba(245, 208, 97, 0.16) 0%, rgba(217, 119, 6, 0.08) 100%);
  border-left: 4px solid #F5D061;
  border-top: 1px solid rgba(245, 208, 97, 0.3);
  border-right: 1px solid rgba(245, 208, 97, 0.15);
  border-bottom: 1px solid rgba(245, 208, 97, 0.15);
  padding: 14px 18px;
  border-radius: 0 10px 10px 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-main);
  margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

body.light-theme .credit-rule-notice {
  background: linear-gradient(180deg, #FEF3C7 0%, #FDE68A 100%);
  border-left-color: #D97706;
  border-top-color: #FCD34D;
  border-right-color: #FDE68A;
  border-bottom-color: #FDE68A;
  color: #92400E;
  box-shadow: 0 3px 10px rgba(11, 34, 56, 0.08), inset 0 1px 1px #FFFFFF;
}

.template-pills-row {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.template-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  background: linear-gradient(180deg, #023854 0%, #011E2D 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--text-muted);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  transition: var(--transition-fast);
}

.template-pill:hover {
  transform: translateY(-1px);
  border-color: #F5D061;
  color: #F5D061;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.clean-photo-dropzone {
  min-height: 140px;
  border: 2px dashed rgba(248, 250, 252, 0.35);
  border-radius: 14px;
  background: linear-gradient(180deg, #011E2D 0%, #011622 100%);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.55), 0 1px 1px rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 16px;
}

.clean-photo-dropzone:hover {
  border-color: #F5D061;
  background: linear-gradient(180deg, rgba(245, 208, 97, 0.08) 0%, #011622 100%);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.35), 0 0 16px rgba(245, 208, 97, 0.25);
}

body.light-theme .clean-photo-dropzone {
  background: #F0F7FC;
  border-color: #6DAED8;
  box-shadow: inset 0 2px 4px rgba(11, 34, 56, 0.06);
}

.photo-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.photo-card-item {
  background: linear-gradient(180deg, #023854 0%, #011E2D 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  padding: 8px;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.photo-thumb-preview {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 6px;
}

.photo-delete-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #EF4444;
  color: #FFFFFF;
  border: none;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* =========================================================
   Add & Edit Property Modal Controls (#postModal)
   ========================================================= */
/* Dropdown Boxes in Dark & Light Modes */
#postModal select,
#postModal .form-select,
.post-dropdown-select,
.modal-card select,
.modal-card .form-select {
  color-scheme: dark !important;
  background-color: #011E2D !important;
  background: #011E2D !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 6px !important;
  padding: 0 32px 0 12px !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394A3B8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 14px !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5) !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

#postModal select:focus,
#postModal .form-select:focus,
.post-dropdown-select:focus {
  border-color: #38BDF8 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25), inset 0 1px 3px rgba(0, 0, 0, 0.5) !important;
}

/* Dropdown Menu Options (Options Popup) */
#postModal select option,
#postModal .form-select option,
.post-dropdown-select option,
.modal-card select option,
.modal-card .form-select option,
select option,
.form-select option {
  color-scheme: dark !important;
  background-color: #0B192C !important;
  color: #FFFFFF !important;
  padding: 10px 14px !important;
}

/* Light Mode Dropdown Boxes & Options */
body.light-theme #postModal select,
body.light-theme #postModal .form-select,
body.light-theme .post-dropdown-select,
body.light-theme .modal-card select,
body.light-theme .modal-card .form-select {
  color-scheme: light !important;
  background-color: #FFFFFF !important;
  color: #0F172A !important;
  border: 1px solid #CBD5E1 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230284C7'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 14px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), inset 0 1px 1px #FFFFFF !important;
}

body.light-theme #postModal select:focus,
body.light-theme #postModal .form-select:focus,
body.light-theme .post-dropdown-select:focus {
  border-color: #0284C7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2) !important;
}

body.light-theme #postModal select option,
body.light-theme #postModal .form-select option,
body.light-theme .post-dropdown-select option,
body.light-theme .modal-card select option,
body.light-theme .modal-card .form-select option,
body.light-theme select option {
  color-scheme: light !important;
  background-color: #FFFFFF !important;
  color: #0F172A !important;
}

/* AI Title Search Button (Harmonized with Main Page Search Button) */
.btn-ai-title-search {
  background: linear-gradient(180deg, #FFFFFF 0%, #F1F5F9 100%) !important;
  color: #012B40 !important;
  border-radius: 8px !important;
  height: 42px !important;
  padding: 0 18px !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  border: none !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), 0 2px 4px rgba(0, 0, 0, 0.25), inset 0 1px 2px #FFFFFF, inset 0 -2px 1px rgba(0, 0, 0, 0.12) !important;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease !important;
}

.btn-ai-title-search i {
  color: #012B40 !important;
  font-size: 0.86rem !important;
}

.btn-ai-title-search:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.55), 0 3px 6px rgba(0, 0, 0, 0.3), inset 0 1px 2px #FFFFFF !important;
}

.btn-ai-title-search:active {
  transform: translateY(1px) !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4), inset 0 2px 3px rgba(0, 0, 0, 0.2) !important;
}

body.light-theme .btn-ai-title-search {
  background: linear-gradient(180deg, #012B40 0%, #011E2D 100%) !important;
  color: #FFFFFF !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(1, 43, 64, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.25) !important;
}

body.light-theme .btn-ai-title-search i {
  color: #FFFFFF !important;
}

body.light-theme .btn-ai-title-search:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 8px 20px rgba(1, 43, 64, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.35) !important;
}

/* Dynamic PSF Rate input background & border (harmonized with other form inputs) */
#postPsfDisplay {
  background: var(--navy-input, #011E2D) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #FFFFFF !important;
}

body.light-theme #postPsfDisplay {
  background: #F0F7FC !important;
  border: 1px solid #6DAED8 !important;
  color: #020617 !important;
}

/* ==============================================================================
   ADD & EDIT PROPERTY MODAL (#postModal) - LIGHT MODE SPECIFICATION
   Faithfully matching the exact colour scheme of media_1789304243517.png:
   - Sky blue modal card background (linear-gradient(180deg, #B7DEF6 0%, #ABD3F0 50%, #99C3E5 100%))
   - White / pale ice inner containers, credit rules, and input boxes (#EFF8FC / #FFFFFF)
   - Bold slate / black typography (#0F172A)
   - Warm golden amber accents for AI Title & Publish buttons (#F5D061 / #E5A93C / #D97706)
   - White cancel button pill with slate border
   ============================================================================== */

/* Modal Backdrop */
body.light-theme #postModal.modal-backdrop {
  background: rgba(109, 174, 216, 0.45) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

/* Modal Card Surface */
body.light-theme #postModal .modal-card {
  background: linear-gradient(180deg, #B7DEF6 0%, #ABD3F0 50%, #99C3E5 100%) !important;
  border: 1.5px solid #6DAED8 !important;
  border-top: 1.5px solid #D6EBF8 !important;
  box-shadow: 
    0 24px 60px -10px rgba(11, 34, 56, 0.25), 
    0 12px 28px -4px rgba(11, 34, 56, 0.14), 
    inset 0 1px 1px #FFFFFF, 
    inset 0 -2px 1px rgba(109, 174, 216, 0.25) !important;
  color: #0F172A !important;
}

/* Modal Header */
body.light-theme #postModal .modal-title,
body.light-theme #postModal #postModalTitle {
  color: #0F172A !important;
  font-weight: 800 !important;
}

body.light-theme #postModal .modal-card i.fa-circle-plus {
  color: #0F172A !important;
}

body.light-theme #postModal .modal-card .modal-close-btn {
  color: #0F172A !important;
}

body.light-theme #postModal .modal-card .modal-close-btn:hover {
  color: #000000 !important;
}

body.light-theme #postModal [style*="border-bottom:1px solid #1E293B"],
body.light-theme #postModal [style*="border-bottom: 1px solid #1E293B"] {
  border-bottom-color: #7BBCE6 !important;
}

body.light-theme #postModal #postModalCreditBalance {
  color: #0F172A !important;
}

/* Credit Deduction Rules Banner */
body.light-theme #postModal .credit-rules-banner,
body.light-theme #postModal #postModalSub {
  background: #EFF8FC !important;
  border: 1.5px solid #6DAED8 !important;
  border-radius: 8px !important;
  color: #0F172A !important;
  box-shadow: 0 2px 6px rgba(11, 34, 56, 0.05), inset 0 1px 1px #FFFFFF !important;
}

body.light-theme #postModal .credit-rules-banner strong {
  color: #0F172A !important;
}

body.light-theme #postModal .credit-rules-banner span {
  color: #334155 !important;
}

body.light-theme #postModal #liveCreditDeductionTag {
  background: #10B981 !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
}

/* Form Labels & Subtitles */
body.light-theme #postModal label,
body.light-theme #postModal .subtitle-text {
  color: #0F172A !important;
  font-weight: 800 !important;
}

/* Utility Link: Auto-Find Postal Code */
body.light-theme #postModal a[onclick*="autoFindPostalCode"],
body.light-theme #postModal a[onclick*="lookupAndAddPostalCode"] {
  color: #92400E !important;
  text-decoration: underline !important;
  font-weight: 700 !important;
}

/* Form Inputs, Select Dropdowns, Textareas */
body.light-theme #postModal .form-input,
body.light-theme #postModal .form-select,
body.light-theme #postModal select,
body.light-theme #postModal textarea,
body.light-theme #postModal #postAddress,
body.light-theme #postModal #postArea,
body.light-theme #postModal #postPrice,
body.light-theme #postModal #postCeiling,
body.light-theme #postModal #postPower,
body.light-theme #postModal #postLoading,
body.light-theme #postModal #postPsfDisplay,
body.light-theme #postModal #postTitle,
body.light-theme #postModal #postYoutube,
body.light-theme #postModal #postPhoto360,
body.light-theme #postModal #postLinkFavourite,
body.light-theme #postModal #postDescription {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  border: 1.5px solid #CBD5E1 !important;
  border-radius: 8px !important;
  color: #020617 !important;
  font-weight: 600 !important;
}

body.light-theme #postModal .form-input:focus,
body.light-theme #postModal .form-select:focus,
body.light-theme #postModal select:focus,
body.light-theme #postModal textarea:focus {
  border-color: #0284C7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.25) !important;
  outline: none !important;
}

/* District Detect Chip */
body.light-theme #postModal #districtDetectBadge,
body.light-theme #postModal .district-detect-chip {
  background: #EFF8FC !important;
  border: 1px solid #6DAED8 !important;
  color: #0284C7 !important;
}

/* Goods Access Container & Checkboxes */
body.light-theme #postModal #postGoodsAccessBox,
body.light-theme #postModal .goods-access-container-box {
  background: #EFF8FC !important;
  border: 1.5px solid #6DAED8 !important;
  border-radius: 8px !important;
}

body.light-theme #postModal .goods-access-header {
  color: #0F172A !important;
  font-weight: 800 !important;
}

body.light-theme #postModal .goods-check-label {
  background: #FFFFFF !important;
  border: 1px solid #6DAED8 !important;
  color: #0F172A !important;
  font-weight: 700 !important;
}

body.light-theme #postModal .goods-check-label.is-checked {
  background: #EFF8FC !important;
  border: 1.5px solid #0284C7 !important;
  color: #0284C7 !important;
}

/* AI Title Search Button (Golden Amber Pill Matching Reference) */
body.light-theme #postModal #btnAiSeoTitle,
body.light-theme #postModal .btn-ai-title-search {
  background: linear-gradient(180deg, #F5D061 0%, #E5A93C 100%) !important;
  color: #080E21 !important;
  border: 1.5px solid #D97706 !important;
  border-radius: 8px !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.25) !important;
}

body.light-theme #postModal #btnAiSeoTitle i,
body.light-theme #postModal .btn-ai-title-search i {
  color: #080E21 !important;
}

body.light-theme #postModal #btnAiSeoTitle:hover,
body.light-theme #postModal .btn-ai-title-search:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.4) !important;
}

/* Media Radio Labels & Tip Box */
body.light-theme #postModal label[style*="postMediaType"],
body.light-theme #postModal input[name="postMediaType"] + *,
body.light-theme #postModal [style*="color:#E2E8F0"],
body.light-theme #postModal [style*="color: #E2E8F0"] {
  color: #0F172A !important;
}

body.light-theme #postModal [style*="color:#F5D061"],
body.light-theme #postModal [style*="color: #F5D061"] {
  color: #92400E !important;
}

/* Clean Photo Form Tip Box */
body.light-theme #postModal .form-tip {
  background: #EFF8FC !important;
  border: 1.5px solid #6DAED8 !important;
  color: #0F172A !important;
}

body.light-theme #postModal .form-tip strong {
  color: #0F172A !important;
}

/* Guidelines Link */
body.light-theme #postModal button[onclick*="photoGuidelinesModal"] {
  color: #92400E !important;
}

/* Drag & Drop Photo Suite */
body.light-theme #postModal #dropZone,
body.light-theme #postModal .clean-photo-suite-dropzone {
  background: #EFF8FC !important;
  border: 2px dashed #92400E !important;
  border-radius: 8px !important;
}

body.light-theme #postModal #dropZone div,
body.light-theme #postModal .clean-photo-suite-dropzone div {
  color: #0F172A !important;
}

body.light-theme #postModal #dropZone span,
body.light-theme #postModal .clean-photo-suite-dropzone span {
  color: #334155 !important;
}

body.light-theme #postModal #dropZone svg,
body.light-theme #postModal .clean-photo-suite-dropzone svg {
  stroke: #D97706 !important;
}

/* Photo Freshness Radio Labels */
body.light-theme #postModal input[name="postPhotoTag"] + span {
  color: #0F172A !important;
  font-weight: 700 !important;
}

/* CEA Compliance Declaration Box */
body.light-theme #postModal .cea-box {
  background: #EFF8FC !important;
  border: 1.5px solid #6DAED8 !important;
  border-radius: 8px !important;
}

body.light-theme #postModal #ceaCheckLabelText {
  color: #0F172A !important;
  font-weight: 800 !important;
}

/* Modal Footer & Buttons */
body.light-theme #postModal .modal-footer,
body.light-theme #postModal [style*="border-top:1px solid #1E293B"],
body.light-theme #postModal [style*="border-top: 1px solid #1E293B"] {
  border-top: 1.5px solid #7BBCE6 !important;
}

body.light-theme #postModal .modal-footer div[style*="color:#CBD5E1"],
body.light-theme #postModal .modal-footer div[style*="color: #CBD5E1"] {
  color: #0F172A !important;
}

body.light-theme #postModal #postDeductionNotice {
  color: #92400E !important;
}

body.light-theme #postModal #postModalRemainingCredits {
  color: #10B981 !important;
}

/* Cancel Button: White Pill with Slate Border */
body.light-theme #postModal button[onclick*="closeModal('postModal')"],
body.light-theme #postModal .btn-secondary {
  background: #FFFFFF !important;
  color: #0F172A !important;
  border: 1.5px solid #6DAED8 !important;
  border-radius: 20px !important;
  height: 38px !important;
  padding: 0 22px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  box-shadow: 0 1px 3px rgba(11, 34, 56, 0.08) !important;
  transition: transform 0.15s ease, background 0.15s ease !important;
}

body.light-theme #postModal button[onclick*="closeModal('postModal')"]:hover,
body.light-theme #postModal .btn-secondary:hover {
  background: #F0F7FC !important;
  border-color: #0284C7 !important;
  transform: translateY(-1px) !important;
}

/* Publish Listing Button: Warm Golden Amber Pill */
body.light-theme #postModal #btnPublishListing,
body.light-theme #postModal .btn-primary-post {
  background: linear-gradient(180deg, #F5D061 0%, #E5A93C 100%) !important;
  color: #080E21 !important;
  border: 1.5px solid #D97706 !important;
  border-radius: 20px !important;
  height: 38px !important;
  padding: 0 24px !important;
  font-size: 0.88rem !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

body.light-theme #postModal #btnPublishListing i,
body.light-theme #postModal #btnPublishListing span {
  color: #080E21 !important;
}

body.light-theme #postModal #btnPublishListing:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.45) !important;
}


/* =========================================================
   Unified Single-Page Modals Architecture
   (My Listings, My Performance, My Templates, My Clients)
   Matches My Credits & Subscription modal-card single page
   ========================================================= */
#myListingsModal .modal-card,
.my-listings-modal-card,
#myPerformanceModal .modal-card,
#favouritesModal .modal-card,
#savedClientsModal .modal-card {
  width: 94% !important;
  max-width: 960px !important;
  max-height: 92vh !important;
  background: var(--modal-card-bg, linear-gradient(180deg, #023D5B 0%, #012235 100%)) !important;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.22)) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.45) !important;
  border-radius: 16px !important;
  box-shadow: 0 24px 60px -8px rgba(0, 0, 0, 0.8), 0 0 35px rgba(2, 61, 91, 0.45) !important;
  padding: 24px !important;
  display: block !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

#favouritesModal .modal-card,
#savedClientsModal .modal-card {
  max-width: 840px !important;
}

/* Eliminate nested scrollable containers across all 4 modals */
.my-listings-scrollable-body,
#myPerformanceModal .modal-body,
#favouritesListContainer,
#clientSlotsContainer {
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
  flex: none !important;
  width: 100%;
}

/* My Performance seamless sections (no nested boxed containers) */
#myPerformanceModal .admin-section-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-bottom: 24px !important;
}

body.light-theme #myPerformanceModal .admin-section-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.my-listings-filter-pill {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #94A3B8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.my-listings-filter-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #F8FAFC;
}

.my-listings-filter-pill.active {
  background: #1E293B;
  color: #FFFFFF;
  border-color: #475569;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.my-listings-filter-pill.pill-active-tier:hover,
.my-listings-filter-pill.pill-active-tier.active {
  background: rgba(16, 185, 129, 0.16);
  border-color: #10B981;
  color: #10B981;
}

.my-listings-filter-pill.pill-expiring-tier:hover,
.my-listings-filter-pill.pill-expiring-tier.active {
  background: rgba(245, 158, 11, 0.16);
  border-color: #F59E0B;
  color: #F59E0B;
}

.my-listings-filter-pill.pill-archived-tier:hover,
.my-listings-filter-pill.pill-archived-tier.active {
  background: rgba(100, 116, 139, 0.2);
  border-color: #64748B;
  color: #CBD5E1;
}

.pill-count-badge {
  font-size: 0.74rem;
  font-weight: 800;
}

/* My Listings Controls Toolbar (Main Page Style Dropdowns & View Toggles) */
.my-listings-controls-toolbar {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.18)) !important;
  border-radius: 0 !important;
  padding: 8px 0 16px 0 !important;
  margin-bottom: 18px !important;
}

body.light-theme .my-listings-controls-toolbar {
  background: transparent !important;
  border: none !important;
  border-bottom: 1.5px solid #CBD5E1 !important;
}

body.light-theme .my-listings-controls-toolbar .toolbar-control-label {
  color: #012B40 !important;
}

/* List View (with photos) - Mini version of main page property-list-card */
.my-listings-list-photos {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.my-listings-list-card {
  display: grid;
  grid-template-columns: 260px 1fr 200px;
  background: linear-gradient(180deg, #023D5B 0%, #012437 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.55);
  transition: all 0.25s ease;
}

@media (max-width: 900px) {
  .my-listings-list-card {
    grid-template-columns: 1fr;
  }
}

.my-listings-list-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 208, 97, 0.6);
  box-shadow: 0 14px 34px -4px rgba(0, 0, 0, 0.75);
}

.my-listings-list-card.is-expiring {
  border-color: rgba(245, 158, 11, 0.65);
}

.my-listings-list-card.is-archived {
  opacity: 0.75;
  border-style: dashed;
}

body.light-theme .my-listings-list-card {
  background: linear-gradient(180deg, #FFFFFF 0%, #F0F8FC 100%) !important;
  border: 1.5px solid #0284C7 !important;
  box-shadow: 0 8px 20px rgba(11, 34, 56, 0.1) !important;
  color: #0F172A !important;
}

body.light-theme .my-listings-list-card > div:last-child {
  background: #F1F5F9 !important;
  border-left: 1px solid #CBD5E1 !important;
}

body.light-theme .my-listings-list-card .btn-action-edit {
  background: rgba(2, 132, 199, 0.12) !important;
  border: 1px solid #0284C7 !important;
  color: #0284C7 !important;
}

body.light-theme .my-listings-list-card .btn-action-renew {
  background: rgba(16, 185, 129, 0.12) !important;
  border: 1px solid #059669 !important;
  color: #047857 !important;
}

body.light-theme .my-listings-list-card .btn-action-archive {
  background: rgba(217, 119, 6, 0.12) !important;
  border: 1px solid #D97706 !important;
  color: #B45309 !important;
}

body.light-theme .my-listings-list-card .btn-action-delete {
  background: rgba(239, 68, 68, 0.12) !important;
  border: 1px solid #EF4444 !important;
  color: #DC2626 !important;
}

body.light-theme .my-listings-list-card .my-listing-social-details {
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
}

body.light-theme .my-listings-list-card .my-listing-social-details summary {
  color: #0284C7 !important;
}

/* List View (without photos) - Dense High-Efficiency Table */
.my-listings-table-container {
  width: 100%;
  border-radius: 10px;
  overflow-x: auto;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.15));
}

.my-listings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  background: rgba(11, 25, 44, 0.7);
}

.my-listings-table th {
  background: rgba(15, 23, 42, 0.95);
  color: var(--text-muted, #94A3B8);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border, #1E293B);
  white-space: nowrap;
}

.my-listings-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-main, #F8FAFC);
  vertical-align: middle;
}

.my-listings-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

body.light-theme .my-listings-table {
  background: #FFFFFF !important;
}

body.light-theme .my-listings-table th {
  background: #E2EFF7 !important;
  color: #012B40 !important;
  border-bottom: 1.5px solid #CBD5E1 !important;
}

body.light-theme .my-listings-table td {
  color: #0F172A !important;
  border-bottom: 1px solid #E2E8F0 !important;
}

body.light-theme .my-listings-table tbody tr:hover {
  background: #F1F5F9 !important;
}

.my-listings-table .listing-lifecycle-pill {
  position: static !important;
  display: inline-flex !important;
  top: auto !important;
  right: auto !important;
  box-shadow: none !important;
}

.btn-list-property-gold {
  background: linear-gradient(135deg, #D4AF37, #AA7C11);
  color: #080E21;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-list-property-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

/* Repost Later Button (formerly Schedule Reposting) */
.btn-schedule-repost {
  background: linear-gradient(135deg, #10B981, #059669) !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
  letter-spacing: 0.3px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-schedule-repost span,
.btn-schedule-repost i {
  color: #FFFFFF !important;
}

.btn-schedule-repost:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.45) !important;
  color: #FFFFFF !important;
}

body.light-theme .btn-schedule-repost {
  background: linear-gradient(135deg, #059669, #047857) !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3) !important;
}

body.light-theme .btn-schedule-repost span,
body.light-theme .btn-schedule-repost i {
  color: #FFFFFF !important;
}

.schedule-repost-modal-card {
  background: var(--modal-card-bg, linear-gradient(180deg, #023D5B 0%, #012235 100%));
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
}

.schedule-repost-header {
  background: var(--modal-header-bg, linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(0, 0, 0, 0.08) 100%));
}

.btn-schedule-preset {
  background: rgba(1, 30, 45, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #CBD5E1;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-schedule-preset:hover {
  background: rgba(2, 61, 91, 0.9);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-schedule-preset.active {
  background: rgba(16, 185, 129, 0.22);
  border-color: #10B981;
  color: #34D399;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

.schedule-listings-table th.sortable-col-header,
.scheduled-queue-table th.sortable-col-header {
  transition: color 0.15s ease, background-color 0.15s ease;
}

.schedule-listings-table th.sortable-col-header:hover,
.scheduled-queue-table th.sortable-col-header:hover {
  color: #38BDF8 !important;
  background-color: rgba(56, 189, 248, 0.08) !important;
}

.schedule-listings-table tr,
.scheduled-queue-table tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  transition: background-color 0.1s ease;
}

.schedule-listings-table tbody tr:hover,
.scheduled-queue-table tbody tr:hover {
  background-color: rgba(2, 61, 91, 0.45);
}

.schedule-listings-table td {
  padding: 12px 14px;
  vertical-align: middle;
}

/* Ensure Listing Title column is strictly aligned to the left in both tables */
.schedule-listings-table th.col-listing-title,
.schedule-listings-table td.col-listing-title,
.scheduled-queue-table th.col-listing-title,
.scheduled-queue-table td.col-listing-title,
#scheduleRepostModal th.col-listing-title,
#scheduleRepostModal td.col-listing-title {
  text-align: left !important;
}

.schedule-listings-table td.col-listing-title *,
.scheduled-queue-table td.col-listing-title * {
  text-align: left;
}

.schedule-row-check {
  width: 17px;
  height: 17px;
  cursor: pointer;
  accent-color: #10B981;
}

#scheduleMasterCheckbox {
  width: 17px;
  height: 17px;
  cursor: pointer;
  accent-color: #10B981;
}

#scheduleRepostDate {
  cursor: pointer !important;
  color-scheme: dark !important;
}

#scheduleRepostDate::-webkit-calendar-picker-indicator {
  cursor: pointer !important;
  filter: invert(0.85);
  padding: 4px;
}

body.light-theme #scheduleRepostDate {
  color-scheme: light !important;
}

body.light-theme #scheduleRepostDate::-webkit-calendar-picker-indicator {
  filter: invert(0.2);
}

.schedule-insufficient-credits-alert {
  background: rgba(239, 68, 68, 0.15);
  border-color: #EF4444;
  color: #FCA5A5;
}

.schedule-insufficient-credits-alert strong {
  color: #FFFFFF;
}

/* Multi-day Selection Pills (#scheduleWeekdayGroup) */
.weekday-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-day-pill {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid #334155;
  color: #94A3B8;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  user-select: none;
}

.btn-day-pill:hover {
  background: #1E293B;
  color: #F8FAFC;
  border-color: #475569;
}

.btn-day-pill.active {
  background: rgba(16, 185, 129, 0.2) !important;
  border-color: #10B981 !important;
  color: #34D399 !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.btn-day-pill .day-check-icon {
  display: none;
  font-size: 0.75rem;
}

.btn-day-pill.active .day-check-icon {
  display: inline-block;
  color: #10B981;
}

/* Scheduled Listings Queue Table (#scheduledQueueSection) */
.scheduled-queue-table tr {
  border-bottom: 1px solid #1E293B;
  transition: background-color 0.1s ease;
}

.scheduled-queue-table tbody tr:hover {
  background-color: rgba(30, 41, 59, 0.35);
}

.scheduled-queue-table td {
  padding: 12px 14px;
  vertical-align: middle;
}

.scheduled-queue-row-check {
  width: 17px;
  height: 17px;
  cursor: pointer;
  accent-color: #EF4444;
}

#scheduledQueueMasterCheckbox {
  width: 17px;
  height: 17px;
  cursor: pointer;
  accent-color: #EF4444;
}

.btn-bin-single {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #F87171;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-bin-single:hover {
  background: #EF4444;
  color: #FFFFFF;
  border-color: #DC2626;
  transform: scale(1.05);
}

.my-listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

@media (min-width: 1560px) {
  .my-listings-grid {
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 18px;
  }
}

@media (max-width: 640px) {
  .my-listings-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px !important;
  }
}

.my-listing-card {
  background: var(--navy-card, #023D5B) !important;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.18)) !important;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  position: relative;
}

.my-listing-card:hover {
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.my-listing-card.is-expiring {
  border-color: rgba(245, 158, 11, 0.55);
}

.my-listing-card.is-archived {
  opacity: 0.75;
  border-style: dashed;
}

.listing-card-media-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #020617;
}

.listing-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.my-listing-card:hover .listing-card-img {
  transform: scale(1.04);
}

.listing-media-badges-left {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  z-index: 2;
}

.zoning-pill {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #FFFFFF;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.02em;
}

.feature-pill {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.88);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Card Photo Thumbnail Strips (Listings & My Listings) */
.property-card-thumb-strip,
.my-listing-thumb-strip {
  display: flex;
  gap: 4px;
  padding: 6px 8px;
  background: rgba(8, 14, 33, 0.96);
  border-bottom: 1px solid rgba(51, 65, 85, 0.55);
  width: 100%;
  box-sizing: border-box;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  z-index: 3;
}

.card-photo-thumb {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  height: 36px;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  margin: 0;
  background: #0F172A;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  display: inline-block;
}

.card-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.card-photo-thumb:hover {
  border-color: #38BDF8;
  transform: translateY(-2px);
}

.card-photo-thumb.active {
  border: 2px solid #F5D061 !important;
  box-shadow: 0 0 8px rgba(245, 208, 97, 0.7) !important;
  transform: scale(1.05);
  z-index: 2;
}

body.light-theme .property-card-thumb-strip,
body.light-theme .my-listing-thumb-strip {
  background: rgba(240, 247, 252, 0.96);
  border-bottom: 1px solid #B5D7ED;
}

body.light-theme .card-photo-thumb {
  background: #E2E8F0;
}


.listing-lifecycle-pill {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.listing-lifecycle-pill.status-active {
  background: rgba(16, 185, 129, 0.95);
  color: #FFFFFF;
  border: 1px solid #10B981;
}

.listing-lifecycle-pill.status-expiring {
  background: rgba(245, 158, 11, 0.95);
  color: #080E21;
  border: 1px solid #F59E0B;
  animation: pulseExpiring 2s infinite ease-in-out;
}

.listing-lifecycle-pill.status-archived {
  background: rgba(100, 116, 139, 0.9);
  color: #FFFFFF;
  border: 1px solid #475569;
}

@keyframes pulseExpiring {
  0% { transform: scale(1); }
  50% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

.listing-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.listing-building-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #F8FAFC;
  margin: 0;
  line-height: 1.35;
  cursor: pointer;
  transition: color 0.15s ease;
}

.listing-building-title:hover {
  color: #F5D061;
}

.listing-street-address {
  font-size: 0.78rem;
  color: #94A3B8;
  display: flex;
  align-items: center;
  gap: 5px;
}

.listing-pricing-area {
  font-size: 1.18rem;
  font-weight: 900;
  color: #F5D061;
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.listing-price-psf-area {
  font-size: 0.78rem;
  font-weight: 600;
  color: #94A3B8;
}

.listing-specs-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  font-size: 0.72rem;
  color: #CBD5E1;
}

.spec-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.spec-item:not(:last-child)::after {
  content: "•";
  margin-left: 6px;
  color: #475569;
}

.listing-ledger-meta {
  font-size: 0.72rem;
  color: #64748B;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 4px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.listing-action-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

.btn-action-edit {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid #38BDF8;
  color: #38BDF8;
  padding: 7px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.2);
  transition: all 0.15s ease;
}

.btn-action-edit:hover {
  background: rgba(56, 189, 248, 0.28);
  border-color: #38BDF8;
  color: #FFFFFF;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.45);
}

.btn-action-renew {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10B981;
  color: #34D399;
  padding: 7px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.2);
  transition: all 0.15s ease;
}

.btn-action-renew:hover {
  background: rgba(16, 185, 129, 0.28);
  border-color: #10B981;
  color: #FFFFFF;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.45);
}

.btn-action-renew.urgent {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid #F59E0B;
  color: #FBBF24;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.25);
}

.btn-action-renew.urgent:hover {
  background: rgba(245, 158, 11, 0.3);
  border-color: #F59E0B;
  color: #FFFFFF;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
}

.btn-action-archive {
  background: rgba(245, 208, 97, 0.15);
  border: 1px solid #F5D061;
  color: #F5D061;
  padding: 7px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: 0 0 8px rgba(245, 208, 97, 0.2);
  transition: all 0.15s ease;
}

.btn-action-archive:hover {
  background: rgba(245, 208, 97, 0.28);
  border-color: #F5D061;
  color: #FFFFFF;
  box-shadow: 0 0 12px rgba(245, 208, 97, 0.45);
}

.btn-action-delete {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #EF4444;
  color: #F87171;
  padding: 7px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.2);
  transition: all 0.15s ease;
}

.btn-action-delete:hover {
  background: rgba(239, 68, 68, 0.28);
  border-color: #EF4444;
  color: #FFFFFF;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.45);
}

/* Standardised Admin Table Buttons (Matching Human Resource Jewel Palette) */
.btn-table-add,
.btn-action-add {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid #10B981;
  color: #10B981;
  padding: 6px 12px;
  height: 32px;
  min-width: 32px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.2);
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.btn-table-add:hover,
.btn-action-add:hover {
  background: rgba(16, 185, 129, 0.28);
  border-color: #10B981;
  color: #FFFFFF;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.45);
}

.btn-table-delete {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #EF4444;
  color: #F87171;
  padding: 6px 12px;
  height: 32px;
  min-width: 32px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.2);
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.btn-table-delete:hover {
  background: rgba(239, 68, 68, 0.28);
  border-color: #EF4444;
  color: #FFFFFF;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.45);
}

.btn-table-edit {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid #38BDF8;
  color: #38BDF8;
  padding: 6px 12px;
  height: 32px;
  min-width: 32px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.2);
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.btn-table-edit:hover {
  background: rgba(56, 189, 248, 0.28);
  border-color: #38BDF8;
  color: #FFFFFF;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.45);
}

.table-action-btn-sm {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  padding: 0 !important;
  font-size: 0.82rem !important;
  border-radius: 5px !important;
}

.table-top-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
}

.table-bottom-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 6px;
}

/* Social Share Flyer Accordion */
.social-flyer-accordion {
  border-top: 1px solid #1E293B;
  background: rgba(15, 23, 42, 0.6);
}

.social-flyer-toggle-btn {
  width: 100%;
  padding: 9px 14px;
  background: transparent;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #F5D061;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.social-flyer-toggle-btn:hover {
  background: rgba(245, 208, 97, 0.08);
}

.social-flyer-tray {
  padding: 10px 14px 14px 14px;
  display: none;
  flex-direction: column;
  gap: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}

.social-flyer-accordion.open .social-flyer-tray {
  display: flex;
}

.btn-social-action-flyer {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(170, 124, 17, 0.2));
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #F5D061;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-social-action-flyer:hover {
  background: linear-gradient(135deg, #D4AF37, #AA7C11);
  color: #080E21;
}

.btn-social-action-wa {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34D399;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-social-action-wa:hover {
  background: #10B981;
  color: #FFFFFF;
}

/* Light Mode Overrides for #myListingsModal */
body.light-theme .my-listings-modal-card,
body.light-theme #myListingsModal .my-listings-modal-card {
  background: var(--modal-card-bg, linear-gradient(180deg, #FFFFFF 0%, #EDF8FD 100%)) !important;
  border: 1.5px solid #6DAED8 !important;
  border-top: 2px solid #FFFFFF !important;
  box-shadow: 0 20px 50px -10px rgba(11, 34, 56, 0.25), 0 0 25px rgba(141, 195, 233, 0.35) !important;
  color: #020617 !important;
}

body.light-theme #myListingsModal .my-listings-modal-header,
body.light-theme .my-listings-modal-header {
  background: linear-gradient(180deg, #FFFFFF 0%, #F5FBFE 100%) !important;
  border-bottom: 1.5px solid #D6EBF8 !important;
  box-shadow: 0 2px 8px rgba(11, 34, 56, 0.06) !important;
}

body.light-theme #myListingsModalHeaderTitle {
  color: #0F172A !important;
}

body.light-theme #myListingsModalSubtitle {
  color: #334155 !important;
}

body.light-theme #myListingsModal .my-listings-filter-bar,
body.light-theme .my-listings-filter-bar {
  background: #F0F7FC !important;
  border-bottom: 1.5px solid #D6EBF8 !important;
}

body.light-theme #myListingsModal .my-listings-modal-footer,
body.light-theme .my-listings-modal-footer {
  background: linear-gradient(180deg, #F5FBFE 0%, #EDF8FD 100%) !important;
  border-top: 1.5px solid #D6EBF8 !important;
}

body.light-theme .my-listings-filter-pill {
  background: #FFFFFF !important;
  border: 1px solid #94A3B8 !important;
  color: #334155 !important;
  box-shadow: 0 1px 3px rgba(11, 34, 56, 0.08);
}

body.light-theme .my-listings-filter-pill:hover {
  background: #F8FAFC !important;
  border-color: #0284C7 !important;
  color: #0F172A !important;
}

body.light-theme .my-listings-filter-pill.active {
  background: #0F172A !important;
  color: #FFFFFF !important;
  border-color: #0F172A !important;
}

/* Active Tier Overrides for Light Mode */
body.light-theme .my-listings-filter-pill.pill-active-tier:hover,
body.light-theme .my-listings-filter-pill.pill-active-tier.active {
  background: rgba(16, 185, 129, 0.16) !important;
  border-color: #059669 !important;
  color: #047857 !important;
}
body.light-theme .my-listings-filter-pill.pill-active-tier.active span,
body.light-theme .my-listings-filter-pill.pill-active-tier.active .pill-count-badge {
  color: #047857 !important;
}

body.light-theme .my-listings-filter-pill.pill-expiring-tier:hover,
body.light-theme .my-listings-filter-pill.pill-expiring-tier.active {
  background: rgba(245, 158, 11, 0.16) !important;
  border-color: #D97706 !important;
  color: #B45309 !important;
}
body.light-theme .my-listings-filter-pill.pill-expiring-tier.active span,
body.light-theme .my-listings-filter-pill.pill-expiring-tier.active .pill-count-badge {
  color: #B45309 !important;
}

/* Archived Filter Pill in Light Mode - Selected text in lighter grey */
body.light-theme .my-listings-filter-pill.pill-archived-tier {
  border-color: #94A3B8 !important;
  color: #475569 !important;
}
body.light-theme .my-listings-filter-pill.pill-archived-tier span,
body.light-theme .my-listings-filter-pill.pill-archived-tier .pill-count-badge {
  color: #475569 !important;
}

body.light-theme .my-listings-filter-pill.pill-archived-tier:hover {
  background: #F1F5F9 !important;
  border-color: #64748B !important;
  color: #1E293B !important;
}
body.light-theme .my-listings-filter-pill.pill-archived-tier:hover span,
body.light-theme .my-listings-filter-pill.pill-archived-tier:hover .pill-count-badge {
  color: #1E293B !important;
}

body.light-theme .my-listings-filter-pill.pill-archived-tier.active {
  background: #1E293B !important;
  border-color: #334155 !important;
  color: #E2E8F0 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.25) !important;
}

body.light-theme .my-listings-filter-pill.pill-archived-tier.active span,
body.light-theme .my-listings-filter-pill.pill-archived-tier.active .pill-count-badge,
body.light-theme .my-listings-filter-pill.pill-archived-tier.active .pill-text-archived {
  color: #E2E8F0 !important; /* Lighter grey for light mode */
}

body.light-theme .my-listings-scrollable-body {
  background: transparent !important;
}

body.light-theme .my-listing-card {
  background: #FFFFFF !important;
  border: 1.5px solid #CBD5E1 !important;
  box-shadow: 0 4px 14px rgba(11, 34, 56, 0.08) !important;
}

body.light-theme .my-listing-card:hover {
  border-color: #D4AF37;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

body.light-theme .listing-building-title {
  color: #0F172A;
}

body.light-theme .listing-street-address {
  color: #64748B;
}

body.light-theme .listing-pricing-area {
  color: #B45309;
}

body.light-theme .listing-specs-strip {
  background: #F8FAFC;
  border-color: #E2E8F0;
  color: #334155;
}

body.light-theme .listing-ledger-meta {
  color: #64748B;
  border-top-color: #E2E8F0;
}

body.light-theme .social-flyer-accordion {
  border-top-color: #E2E8F0;
  background: #F8FAFC;
}

body.light-theme .social-flyer-tray {
  background: #F1F5F9;
  border-top-color: #E2E8F0;
}

body.light-theme .my-listings-modal-footer {
  background: #F1F5F9 !important;
  border-top-color: #E2E8F0 !important;
}

body.light-theme .btn-modal-close-footer {
  background: #FFFFFF !important;
  color: #0F172A !important;
  border-color: #CBD5E1 !important;
}

body.light-theme .owner-controls-grid .btn-action-edit,
body.light-theme .my-listing-card .btn-action-edit {
  background: #F0F9FF !important;
  border: 1px solid #0284C7 !important;
  color: #0284C7 !important;
}

body.light-theme .owner-controls-grid .btn-action-renew,
body.light-theme .my-listing-card .btn-action-renew {
  background: #ECFDF5 !important;
  border: 1px solid #10B981 !important;
  color: #059669 !important;
}

body.light-theme .owner-controls-grid .btn-action-archive,
body.light-theme .my-listing-card .btn-action-archive {
  background: #FFFBEB !important;
  border: 1px solid #D97706 !important;
  color: #D97706 !important;
}

body.light-theme .owner-controls-grid .btn-action-delete,
body.light-theme .my-listing-card .btn-action-delete {
  background: #FEF2F2 !important;
  border: 1px solid #EF4444 !important;
  color: #DC2626 !important;
}

/* Schedule Reposting Light Theme Rules */
body.light-theme .schedule-repost-modal-card {
  background: #FFFFFF !important;
  border-color: #CBD5E1 !important;
  color: #020617 !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15) !important;
}

body.light-theme .schedule-repost-header {
  background: #F8FAFC !important;
  border-bottom-color: #E2E8F0 !important;
}

body.light-theme #scheduleRepostBalanceStrip {
  background: #EDF8FD !important;
  border-bottom-color: #CBD5E1 !important;
}

body.light-theme .schedule-controls-panel {
  background: #F8FAFC !important;
  border-color: #E2E8F0 !important;
}

body.light-theme .btn-schedule-preset {
  background: #FFFFFF !important;
  border-color: #CBD5E1 !important;
  color: #475569 !important;
}

body.light-theme .btn-schedule-preset:hover {
  background: #F1F5F9 !important;
  color: #0F172A !important;
}

body.light-theme .btn-schedule-preset.active {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: #10B981 !important;
  color: #047857 !important;
}

body.light-theme .schedule-calculation-card {
  background: #F1F5F9 !important;
  border-color: #CBD5E1 !important;
}

body.light-theme .btn-cancel-schedule {
  background: #E2E8F0 !important;
  border-color: #CBD5E1 !important;
  color: #475569 !important;
}

body.light-theme .btn-cancel-schedule:hover {
  background: #CBD5E1 !important;
  color: #0F172A !important;
}

body.light-theme .schedule-listings-table thead tr {
  background: #F1F5F9 !important;
  border-bottom-color: #CBD5E1 !important;
}

body.light-theme .schedule-listings-table th {
  color: #1E293B !important;
}

body.light-theme .schedule-listings-table th.sortable-col-header:hover,
body.light-theme .scheduled-queue-table th.sortable-col-header:hover {
  color: #0284C7 !important;
  background-color: #E0F2FE !important;
}

body.light-theme .schedule-listings-table tr {
  border-bottom-color: #E2E8F0 !important;
}

body.light-theme .schedule-listings-table tbody tr:hover {
  background-color: #F8FAFC !important;
}

body.light-theme .schedule-listings-table td {
  color: #0F172A !important;
}

body.light-theme #scheduleInsufficientCreditsAlert {
  background: #FEF2F2 !important;
  border-color: #EF4444 !important;
  color: #991B1B !important;
}

body.light-theme #scheduleInsufficientCreditsAlert strong {
  color: #7F1D1D !important;
}

body.light-theme #insufficientCreditsDetailMsg {
  color: #B91C1C !important;
}

body.light-theme #insufficientCreditsDetailMsg strong {
  color: #7F1D1D !important;
}

body.light-theme #scheduleExecutionPreviewText {
  background: #ECFDF5 !important;
  border-color: #A7F3D0 !important;
  color: #065F46 !important;
}

body.light-theme #previewScheduleTimeFormatted {
  color: #064E3B !important;
}

body.light-theme .btn-day-pill {
  background: #FFFFFF !important;
  border-color: #CBD5E1 !important;
  color: #475569 !important;
}

body.light-theme .btn-day-pill:hover {
  background: #F1F5F9 !important;
  color: #0F172A !important;
}

body.light-theme .btn-day-pill.active {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: #10B981 !important;
  color: #047857 !important;
}

body.light-theme .scheduled-queue-table thead tr {
  background: #F1F5F9 !important;
  border-bottom-color: #CBD5E1 !important;
}

body.light-theme .scheduled-queue-table th {
  color: #1E293B !important;
}

body.light-theme .scheduled-queue-table tr {
  border-bottom-color: #E2E8F0 !important;
}

body.light-theme .scheduled-queue-table tbody tr:hover {
  background-color: #F8FAFC !important;
}

body.light-theme .scheduled-queue-table td {
  color: #0F172A !important;
}

body.light-theme .scheduled-queue-section {
  border-top-color: #E2E8F0 !important;
}

body.light-theme #scheduleTimeValidationError {
  background: #FEF2F2 !important;
  border-color: #EF4444 !important;
  color: #991B1B !important;
}

body.light-theme .btn-bin-single {
  background: #FEE2E2 !important;
  border-color: #FCA5A5 !important;
  color: #DC2626 !important;
}

body.light-theme .btn-bin-single:hover {
  background: #DC2626 !important;
  color: #FFFFFF !important;
}

body.light-theme .btn-table-add,
body.light-theme .btn-action-add {
  background: #ECFDF5 !important;
  border: 1px solid #10B981 !important;
  color: #059669 !important;
}
body.light-theme .btn-table-add:hover,
body.light-theme .btn-action-add:hover {
  background: #10B981 !important;
  color: #FFFFFF !important;
}

body.light-theme .btn-table-delete {
  background: #FEF2F2 !important;
  border: 1px solid #EF4444 !important;
  color: #DC2626 !important;
}
body.light-theme .btn-table-delete:hover {
  background: #FEE2E2 !important;
  color: #B91C1C !important;
}

body.light-theme .btn-table-edit {
  background: #F0F9FF !important;
  border: 1px solid #0284C7 !important;
  color: #0284C7 !important;
}
body.light-theme .btn-table-edit:hover {
  background: #E0F2FE !important;
  color: #0369A1 !important;
}

body.light-theme .my-listing-social-details,
body.light-theme .detail-agent-box details {
  background: #F0F7FC !important;
  border: 1px solid #BAE6FD !important;
}

body.light-theme .my-listing-social-details summary,
body.light-theme .detail-agent-box details summary {
  color: #0284C7 !important;
}

/* =========================================================
   #subscriptionModal (Credits & Singapore PayNow/Stripe)
   ========================================================= */
.pricing-pack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.pricing-pack-card {
  background: linear-gradient(180deg, #023D5B 0%, #012235 100%);
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-top: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  position: relative;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pricing-pack-card:hover,
.pricing-pack-card.selected {
  border-color: #F5D061;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 25px rgba(245, 208, 97, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.4);
  transform: translateY(-4px);
}

body.light-theme .pricing-pack-card {
  background: linear-gradient(180deg, #FFFFFF 0%, #EDF8FD 100%);
  border: 2px solid #6DAED8;
  border-top: 2px solid #FFFFFF;
  box-shadow: 0 6px 16px rgba(11, 34, 56, 0.1), inset 0 1px 1px #FFFFFF;
}

body.light-theme .pricing-pack-card:hover,
body.light-theme .pricing-pack-card.selected {
  border-color: #D97706;
  box-shadow: 0 14px 30px rgba(11, 34, 56, 0.18), 0 0 18px rgba(217, 119, 6, 0.2);
}

.pricing-popular-tag {
  position: absolute;
  top: -10px;
  right: 14px;
  background: var(--gold-gradient);
  color: #080E21;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.gst-itemized-box {
  background: linear-gradient(180deg, #011E2D 0%, #011723 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6), 0 1px 1px rgba(255, 255, 255, 0.1);
}

body.light-theme .gst-itemized-box {
  background: #F0F7FC;
  border: 1px solid #D6EBF8;
  box-shadow: inset 0 2px 4px rgba(11, 34, 56, 0.05);
}

.gst-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.gst-row.total-row {
  border-top: 1px solid var(--border);
  padding-top: 8px;
  margin-top: 8px;
  font-size: 1.05rem;
  font-weight: 900;
  color: #F5D061;
}

body.light-theme .gst-row.total-row {
  color: #92400E;
}

.paynow-qr-box {
  width: 240px;
  height: 240px;
  background: #FFFFFF;
  border-radius: 14px;
  padding: 14px;
  margin: 0 auto 16px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

/* My Credits & Subscription 3-Tab Suite */
.subscription-tab-bar {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.subtab-nav-btn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.6);
  color: var(--text-muted);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.subtab-nav-btn:hover {
  background: rgba(30, 41, 59, 0.8);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
}

.subtab-nav-btn.active {
  background: linear-gradient(135deg, rgba(245, 208, 97, 0.18), rgba(212, 175, 55, 0.08));
  border-color: #F5D061;
  color: #F5D061;
  box-shadow: 0 2px 10px rgba(245, 208, 97, 0.15);
}

body.light-theme .subtab-nav-btn {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: #475569;
}

body.light-theme .subtab-nav-btn:hover {
  background: #E2E8F0;
  color: #0F172A;
}

body.light-theme .subtab-nav-btn.active {
  background: #FEF3C7;
  border-color: #D97706;
  color: #92400E;
}

.active-plans-card-banner {
  background: linear-gradient(180deg, rgba(2, 61, 91, 0.45) 0%, rgba(1, 34, 53, 0.65) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

body.light-theme .active-plans-card-banner {
  background: linear-gradient(180deg, #F0F7FC 0%, #E2EFF9 100%);
  border-color: #B9DCF2;
}

.active-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.active-plan-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 14px;
  position: relative;
  transition: all 0.2s;
}

.active-plan-card.plan-first {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.1);
}

.active-plan-card.plan-queued {
  border-color: rgba(245, 208, 97, 0.45);
  box-shadow: 0 4px 14px rgba(245, 208, 97, 0.08);
}

.active-plan-card.plan-exhausted {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.06);
  opacity: 0.92;
}

body.light-theme .active-plan-card {
  background: #FFFFFF;
  border-color: #CBD5E1;
}

body.light-theme .active-plan-card.plan-first {
  border-color: #38BDF8;
}

body.light-theme .active-plan-card.plan-queued {
  border-color: #D97706;
}

body.light-theme .active-plan-card.plan-exhausted {
  border-color: #EF4444;
  background: #FEF2F2;
}

.fifo-badge-first {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(56, 189, 248, 0.2);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.4);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.fifo-badge-queued {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(245, 208, 97, 0.2);
  color: #F5D061;
  border: 1px solid rgba(245, 208, 97, 0.4);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.fifo-badge-exhausted {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(239, 68, 68, 0.2);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.days-remaining-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(148, 163, 184, 0.15);
  color: #E2E8F0;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

body.light-theme .days-remaining-pill {
  background: #E2E8F0;
  color: #334155;
  border-color: #CBD5E1;
}

.bonus-credits-container {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

body.light-theme .bonus-credits-container {
  border-top-color: #CBD5E1;
}

.credit-rules-banner {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-left: 4px solid #38BDF8;
  border-radius: 8px;
  padding: 14px 18px;
}

body.light-theme .credit-rules-banner {
  background: #F0F9FF;
  border-color: #BAE6FD;
  border-left-color: #0284C7;
}

.credit-rules-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

body.light-theme .credit-rules-title {
  color: #0369A1;
}

.credit-rules-list {
  margin: 0;
  padding-left: 18px;
  font-size: 0.78rem;
  color: #CBD5E1;
  line-height: 1.6;
}

body.light-theme .credit-rules-list {
  color: #334155;
}

.credit-rules-list li {
  margin-bottom: 4px;
}

.purchase-lock-alert {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid #F59E0B;
  border-radius: 8px;
  padding: 12px 16px;
  color: #FCD34D;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

body.light-theme .purchase-lock-alert {
  background: #FFFBEB;
  border-color: #F59E0B;
  color: #B45309;
}

.checkout-progress-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.checkout-step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.checkout-step.active {
  color: #F5D061;
}

body.light-theme .checkout-step.active {
  color: #D97706;
}

.checkout-step.done {
  color: #10B981;
}

.checkout-step .step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
}

.checkout-step.active .step-num {
  background: #F5D061;
  color: #080E21;
  font-weight: 900;
}

.checkout-step.done .step-num {
  background: #10B981;
  color: #FFFFFF;
}

.step-connector {
  width: 28px;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
}

.step-connector.done {
  background: #10B981;
}

.checkout-order-summary-box {
  background: linear-gradient(180deg, #011E2D 0%, #011723 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 18px;
}

body.light-theme .checkout-order-summary-box {
  background: #F0F7FC;
  border-color: #D6EBF8;
}

.gateway-tab-btn {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.gateway-tab-btn:hover {
  background: rgba(30, 41, 59, 0.7);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
}

.gateway-tab-btn.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38BDF8;
  color: #38BDF8;
}

body.light-theme .gateway-tab-btn {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: #475569;
}

body.light-theme .gateway-tab-btn.active {
  background: #E0F2FE;
  border-color: #0284C7;
  color: #0369A1;
}

.credit-change-plus {
  color: #10B981;
  font-weight: 800;
}

.credit-change-minus {
  color: #EF4444;
  font-weight: 800;
}


/* =========================================================
   #socialShareModal (Social Studio 4:5 / 9:16)
   ========================================================= */
.studio-dual-pane {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 860px) {
  .studio-dual-pane {
    grid-template-columns: 1fr;
  }
}

.flyer-canvas-preview {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  background: #0B1120;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), inset 0 1px 1px rgba(255, 255, 255, 0.25);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-top: 2px solid rgba(255, 255, 255, 0.5);
  position: relative;
}

.flyer-canvas-preview.ratio-4-5 {
  aspect-ratio: 4 / 5;
}

.flyer-canvas-preview.ratio-9-16 {
  aspect-ratio: 9 / 16;
}

/* =========================================================
   SOCIAL MEDIA STUDIO MODAL (#socialShareModal)
   Strict adherence to Master Stylesheet Pop-up Architecture
   ========================================================= */
#socialShareModal .modal-card {
  border-radius: var(--radius-lg, 20px) !important;
}

.social-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(2, 56, 84, 0.75);
  border: 1px solid rgba(245, 208, 97, 0.4);
  padding: 3px 9px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.80rem;
  color: #F5D061;
}

.social-aspect-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(2, 56, 84, 0.6);
  color: #94A3B8;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

#socialCanvasPreviewContainer {
  background: linear-gradient(180deg, rgba(2, 56, 84, 0.75) 0%, rgba(1, 30, 45, 0.9) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.35) !important;
  border-radius: 12px !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.18);
  padding: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 430px;
  max-height: 490px;
  overflow: hidden;
}

#socialShareCaptionText {
  width: 100%;
  background: #011E2D !important;
  background-color: #011E2D !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 8px;
  color: #F8FAFC !important;
  padding: 12px;
  font-size: 0.82rem;
  line-height: 1.5;
  font-family: inherit;
  resize: vertical;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
  cursor: text !important;
}

#socialShareCaptionText:focus {
  border-color: #38BDF8 !important;
  outline: none;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25);
  background: #022538 !important;
}

#socialSharePlatformGuide {
  background: linear-gradient(180deg, rgba(2, 56, 84, 0.5) 0%, rgba(1, 30, 45, 0.7) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 10px;
  font-size: 0.75rem;
  color: #CBD5E1 !important;
  line-height: 1.45;
}

#btnResetSocialCaption {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #94A3B8;
  padding: 5px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

#btnResetSocialCaption:hover {
  background: rgba(245, 208, 97, 0.15);
  border-color: #F5D061;
  color: #F5D061;
}

#btnCopySocialCaption {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #F8FAFC;
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

#btnCopySocialCaption:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38BDF8;
  color: #38BDF8;
}

#btnDownloadFlyerGraphic {
  width: 100%;
  height: 40px;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-top: 1.5px solid rgba(255, 255, 255, 0.45) !important;
  color: #FFFFFF !important;
  font-weight: 800;
  font-size: 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
  transition: all 0.2s ease;
}

#btnDownloadFlyerGraphic:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.45);
}

/* Light mode adaptations for Social Studio Modal (Harmonized with Master Stylesheet) */
body.light-theme .social-brand-pill {
  background: #FFFFFF;
  border: 1px solid #D97706;
  color: #B45309;
}

body.light-theme .social-aspect-pill {
  background: #FFFFFF;
  border: 1px solid #6DAED8;
  color: #0284C7;
}

body.light-theme #socialCanvasPreviewContainer {
  background: linear-gradient(180deg, #FFFFFF 0%, #EDF8FD 100%) !important;
  border: 1px solid #6DAED8 !important;
  border-top: 1.5px solid #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(11, 34, 56, 0.08), inset 0 1px 1px #FFFFFF !important;
}

body.light-theme #socialShareCaptionText {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  border: 1.5px solid #CBD5E1 !important;
  color: #0F172A !important;
  box-shadow: inset 0 1px 3px rgba(11, 34, 56, 0.06);
  cursor: text !important;
}

body.light-theme #socialShareCaptionText:focus {
  border-color: #0284C7 !important;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
  background: #F8FAFC !important;
}

body.light-theme #socialSharePlatformGuide {
  background: #EDF8FD !important;
  border: 1px solid #6DAED8 !important;
  color: #1E293B !important;
}

body.light-theme #btnResetSocialCaption {
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  color: #64748B !important;
}

body.light-theme #btnResetSocialCaption:hover {
  background: #F1F5F9 !important;
  border-color: #D97706 !important;
  color: #D97706 !important;
}

body.light-theme #btnCopySocialCaption {
  background: #FFFFFF !important;
  border: 1px solid #6DAED8 !important;
  color: #0284C7 !important;
  box-shadow: 0 2px 4px rgba(11, 34, 56, 0.06);
}

body.light-theme #btnCopySocialCaption:hover {
  background: #F0F9FF !important;
  border-color: #0284C7 !important;
}

/* ==========================================================================
   LIGHT MODE: HIGH-CONTRAST GREEN & YELLOW TEXT ENHANCEMENT (FLYER STUDIO)
   ========================================================================== */

/* 1. Header Share Icon Box (Yellow Accent) */
body.light-theme #socialShareModal .social-header-icon-box,
body.light-theme #socialShareModal .modal-header > div > div:first-child {
  background: #FEF9C3 !important;
  border: 1.5px solid #EAB308 !important;
  color: #92400E !important;
}

body.light-theme #socialShareModal .social-header-icon-box i,
body.light-theme #socialShareModal .modal-header > div > div:first-child i {
  color: #92400E !important;
}

/* 2. Green Text: Credit Deduction Pill */
body.light-theme #socialShareModal .social-credit-pill,
body.light-theme #socialShareModal #socialShareCreditPill,
body.light-theme #socialShareModal span[style*="color:#34D399"],
body.light-theme #socialShareModal span[style*="color: #34D399"],
body.light-theme #socialShareModal [style*="color:#34D399"],
body.light-theme #socialShareModal [style*="color: #34D399"] {
  background: #ECFDF5 !important;
  border: 1.5px solid #059669 !important;
  color: #065F46 !important;
  font-weight: 800 !important;
}

body.light-theme #socialShareModal .social-credit-pill i,
body.light-theme #socialShareModal #socialShareCreditPill i,
body.light-theme #socialShareModal span[style*="color:#34D399"] i,
body.light-theme #socialShareModal span[style*="color: #34D399"] i {
  color: #047857 !important;
}

/* 3. Yellow/Amber Text: Screen Formatted Flyer Preview Title */
body.light-theme #socialShareModal .social-preview-title,
body.light-theme #socialShareModal #socialSharePreviewTitle,
body.light-theme #socialShareModal div[style*="color:#F5D061"],
body.light-theme #socialShareModal div[style*="color: #F5D061"],
body.light-theme #socialShareModal [style*="color:#F5D061"],
body.light-theme #socialShareModal [style*="color: #F5D061"] {
  color: #92400E !important; /* Deep, crisp amber-brown for high contrast against white backgrounds */
  font-weight: 800 !important;
}

body.light-theme #socialShareModal .social-preview-title i,
body.light-theme #socialShareModal #socialSharePreviewTitle i,
body.light-theme #socialShareModal div[style*="color:#F5D061"] i,
body.light-theme #socialShareModal div[style*="color: #F5D061"] i,
body.light-theme #socialShareModal [style*="color:#F5D061"] i,
body.light-theme #socialShareModal [style*="color: #F5D061"] i {
  color: #B45309 !important;
}

/* 4. Right Column Header: Platform Caption & Hashtags */
body.light-theme #socialShareModal div[style*="color:#38BDF8"],
body.light-theme #socialShareModal div[style*="color: #38BDF8"],
body.light-theme #socialShareModal [style*="color:#38BDF8"],
body.light-theme #socialShareModal [style*="color: #38BDF8"] {
  color: #0369A1 !important;
  font-weight: 800 !important;
}

/* 5. Footer Verified Shield & Text */
body.light-theme #socialShareModal .modal-footer i.fa-shield-halved,
body.light-theme #socialShareModal .modal-footer [style*="color:#10B981"],
body.light-theme #socialShareModal .modal-footer [style*="color: #10B981"] {
  color: #059669 !important;
}

body.light-theme #socialShareModal .modal-footer div[style*="color:var(--text-muted"] {
  color: #334155 !important;
  font-weight: 600 !important;
}


/* Social Platform Buttons & Badges: Strict Visual Parity Across Dark and Light Themes */
.btn-social-platform,
body.light-theme .btn-social-platform {
  color: #FFFFFF !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.btn-social-platform i,
body.light-theme .btn-social-platform i {
  color: #FFFFFF !important;
}

.btn-social-platform:hover,
body.light-theme .btn-social-platform:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

#socialShareBrandBadge,
body.light-theme #socialShareBrandBadge {
  color: #FFFFFF !important;
}

#socialShareBrandBadge i,
body.light-theme #socialShareBrandBadge i {
  color: #FFFFFF !important;
}

#socialLaunchPlatformBtn,
body.light-theme #socialLaunchPlatformBtn {
  color: #FFFFFF !important;
}

#socialLaunchPlatformBtn i,
body.light-theme #socialLaunchPlatformBtn i {
  color: #FFFFFF !important;
}

/* =========================================================
   ADMIN BACKEND SUITE (#adminModal, z-index: 100000)
   ========================================================= */
#adminModal {
  z-index: 100000 !important;
}

#adminModal .modal-card {
  width: 96vw !important;
  max-width: 1480px !important;
  max-height: 94vh !important;
  padding: 18px 24px 24px 24px !important;
  border-radius: 20px !important;
  overflow-x: hidden !important;
}

.admin-main-tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  overflow-x: hidden;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
  margin-bottom: 6px;
  padding-right: 52px;
}

.admin-main-tab-btn {
  height: 31px;
  padding: 0 10px;
  border-radius: 7px;
  background: var(--navy-input);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.73rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: 1 1 auto;
  transition: var(--transition-fast);
}

.admin-main-tab-btn:hover {
  color: var(--text-main);
  border-color: var(--border-hover);
}

.admin-main-tab-btn.active {
  background: var(--gold-gradient);
  color: #080E21;
  border-color: #92400E;
  font-weight: 900;
}

.admin-main-tab-btn span,
.admin-subtab-btn span {
  color: inherit !important;
  font-size: inherit;
  font-weight: inherit;
}

body.light-theme .admin-main-tab-btn {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: #475569;
}

body.light-theme .admin-main-tab-btn:hover {
  background: #F1F5F9;
  color: #0F172A;
  border-color: #94A3B8;
}

body.light-theme .admin-main-tab-btn.active {
  background: var(--gold-gradient);
  color: #080E21;
  border-color: #92400E;
}

.admin-subtabs-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 0;
  margin-bottom: 12px;
  padding: 4px 8px;
  background: rgba(2, 45, 68, 0.45);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow-x: hidden;
}

body.light-theme .admin-subtabs-bar {
  background: #F1F5F9;
  border-color: #E2E8F0;
}

.admin-subtab-btn {
  height: 29px;
  padding: 0 11px;
  border-radius: 6px;
  background: var(--navy-input);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.73rem;
  font-weight: 700;
  cursor: grab;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
  flex: 0 1 auto;
}

@media (max-width: 1100px) {
  .admin-main-tab-btn {
    font-size: 0.70rem;
    padding: 0 7px;
    height: 29px;
    gap: 4px;
  }
}

@media (max-width: 768px) {
  .admin-main-tab-btn {
    flex: 1 1 calc(33.333% - 6px);
    font-size: 0.69rem;
    padding: 0 6px;
    height: 28px;
  }
  .admin-subtab-btn {
    font-size: 0.70rem;
    padding: 0 8px;
    height: 27px;
  }
}

.admin-subtab-btn:active {
  cursor: grabbing;
}

.admin-subtab-btn:hover {
  color: var(--text-main);
  border-color: var(--border-hover);
}

.admin-subtab-btn.active {
  background: var(--primary);
  color: #080E21;
  border-color: #0284C7;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0, 163, 224, 0.3);
}

body.light-theme .admin-subtab-btn {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: #475569;
}

body.light-theme .admin-subtab-btn.active {
  background: #0284C7;
  color: #FFFFFF;
  border-color: #0369A1;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
}

.admin-subtab-btn.dragging {
  opacity: 0.45;
  transform: scale(0.96);
  border: 1px dashed var(--primary);
}

.subtab-drag-handle {
  font-size: 0.72rem;
  opacity: 0.5;
  cursor: grab;
}

.admin-subtab-btn:hover .subtab-drag-handle {
  opacity: 0.9;
}

.admin-subtab-pane {
  display: none;
  animation: fadeIn 0.2s ease-in-out;
}

.admin-subtab-pane.active {
  display: block;
}

.admin-subtab-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 24px;
  background: linear-gradient(180deg, rgba(2, 45, 68, 0.5) 0%, rgba(1, 26, 40, 0.7) 100%);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  text-align: center;
  margin-top: 4px;
}

body.light-theme .admin-subtab-empty-state {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  border: 1px dashed #CBD5E1;
}

.admin-empty-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(0, 163, 224, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.admin-empty-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.admin-empty-text {
  font-size: 0.80rem;
  color: var(--text-muted);
  max-width: 320px;
  margin: 0;
}

/* =========================================================
   ADMIN CONTROL SUB-TAB & IDENTITY MANAGEMENT
   ========================================================= */
/* =========================================================
   ADMIN BACKEND UNIFIED DESIGN SYSTEM STYLESHEET (All 11 Modules Standardised)
   Specification Version: 2.0.27
   ========================================================= */

/* 1. STANDARDIZED SUB-TAB HEADERS & TOP ACTION TOOLBARS */
.admin-subtab-header,
.admin-control-header,
.dispatcher-header-row,
.metrics-header-toolbar,
.directories-header-row,
.security-header-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  margin-bottom: 18px !important;
  padding-bottom: 14px !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
}

body.light-theme .admin-subtab-header,
body.light-theme .admin-control-header,
body.light-theme .dispatcher-header-row,
body.light-theme .metrics-header-toolbar,
body.light-theme .directories-header-row,
body.light-theme .security-header-row {
  border-bottom-color: #E2E8F0 !important;
}

/* Unified Subtab Titles */
.admin-subtab-header h2,
.admin-subtab-header h3,
.admin-subtab-header h4,
.admin-control-header h2,
.admin-control-header h3,
.admin-control-header h4,
.dispatcher-header-row h2,
.dispatcher-header-row h3,
.dispatcher-header-row h4,
.metrics-header-toolbar h2,
.metrics-header-toolbar h3,
.metrics-header-toolbar h4,
.directories-master-header h2,
.directories-master-header h3,
.directories-master-header h4,
.security-header-row h2,
.security-header-row h3,
.security-header-row h4,
.admin-section-title,
.admin-control-title,
.admin-section-heading {
  font-size: 1.22rem !important;
  font-weight: 800 !important;
  color: var(--text-main) !important;
  letter-spacing: -0.2px !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  line-height: 1.3 !important;
}

body.light-theme .admin-subtab-header h2,
body.light-theme .admin-subtab-header h3,
body.light-theme .admin-subtab-header h4,
body.light-theme .admin-control-header h2,
body.light-theme .admin-control-header h3,
body.light-theme .admin-control-header h4,
body.light-theme .dispatcher-header-row h2,
body.light-theme .dispatcher-header-row h3,
body.light-theme .dispatcher-header-row h4,
body.light-theme .metrics-header-toolbar h2,
body.light-theme .metrics-header-toolbar h3,
body.light-theme .metrics-header-toolbar h4,
body.light-theme .directories-master-header h2,
body.light-theme .directories-master-header h3,
body.light-theme .directories-master-header h4,
body.light-theme .security-header-row h2,
body.light-theme .security-header-row h3,
body.light-theme .security-header-row h4,
body.light-theme .admin-section-title,
body.light-theme .admin-control-title,
body.light-theme .admin-section-heading {
  color: #020617 !important;
}

/* Unified Subtab Subtitles */
.admin-subtab-header p,
.admin-control-header p,
.dispatcher-header-row p,
.metrics-header-toolbar p,
.directories-master-header p,
.security-header-row p,
.admin-control-subtitle,
.admin-section-subtitle,
.admin-modal-subtitle {
  font-size: 0.82rem !important;
  color: var(--text-muted) !important;
  margin: 4px 0 0 0 !important;
  line-height: 1.45 !important;
  max-width: 880px !important;
}

body.light-theme .admin-subtab-header p,
body.light-theme .admin-control-header p,
body.light-theme .dispatcher-header-row p,
body.light-theme .metrics-header-toolbar p,
body.light-theme .directories-master-header p,
body.light-theme .security-header-row p,
body.light-theme .admin-control-subtitle,
body.light-theme .admin-section-subtitle,
body.light-theme .admin-modal-subtitle {
  color: #475569 !important;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 2. STANDARDIZED CARDS & PANELS */
.admin-section-card,
.admin-panel-card,
.admin-company-card,
.map-preview-card,
.admin-analytics-card,
.admin-comms-card,
.admin-gst-config-card,
.directory-dataset-card,
.security-audit-card,
.admin-benefits-section,
.admin-credits-section,
.metrics-chart-card,
.metrics-kpi-card,
.admin-statutory-report-card,
.cyber-kpi-card,
.admin-table-card,
.gateway-tier-card,
.webmail-config-card,
.wa-config-card,
.wa-trigger-card,
.deepl-config-card,
.weekly-report-box,
.gateway-cred-box,
.directory-prompt-box,
.map-provider-card,
.admin-bcast-gateway-card {
  background: linear-gradient(180deg, rgba(2, 45, 68, 0.85) 0%, rgba(1, 26, 40, 0.95) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.12) !important;
  color: var(--text-main) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

body.light-theme .admin-section-card,
body.light-theme .admin-panel-card,
body.light-theme .admin-company-card,
body.light-theme .map-preview-card,
body.light-theme .admin-analytics-card,
body.light-theme .admin-comms-card,
body.light-theme .admin-gst-config-card,
body.light-theme .directory-dataset-card,
body.light-theme .security-audit-card,
body.light-theme .admin-benefits-section,
body.light-theme .admin-credits-section,
body.light-theme .metrics-chart-card,
body.light-theme .metrics-kpi-card,
body.light-theme .admin-statutory-report-card,
body.light-theme .cyber-kpi-card,
body.light-theme .admin-table-card,
body.light-theme .gateway-tier-card,
body.light-theme .webmail-config-card,
body.light-theme .wa-config-card,
body.light-theme .wa-trigger-card,
body.light-theme .deepl-config-card,
body.light-theme .weekly-report-box,
body.light-theme .gateway-cred-box,
body.light-theme .directory-prompt-box,
body.light-theme .map-provider-card,
body.light-theme .admin-bcast-gateway-card {
  background: linear-gradient(180deg, #FFFFFF 0%, #F4F9FD 100%) !important;
  border: 1px solid #B5D7ED !important;
  border-top: 1.5px solid #FFFFFF !important;
  box-shadow: 0 4px 16px rgba(11, 34, 56, 0.08), inset 0 1px 1px #FFFFFF !important;
  color: #020617 !important;
}

/* Card Header Dividers */
.admin-card-header,
.admin-section-card > div:first-child[style*="border-bottom"],
.admin-comms-card > div:first-child[style*="border-bottom"],
.admin-gst-config-card > div:first-child[style*="border-bottom"],
.map-preview-card > div:first-child[style*="border-bottom"] {
  border-bottom: 1px solid var(--border-subtle) !important;
}

body.light-theme .admin-card-header,
body.light-theme .admin-section-card > div:first-child[style*="border-bottom"],
body.light-theme .admin-comms-card > div:first-child[style*="border-bottom"],
body.light-theme .admin-gst-config-card > div:first-child[style*="border-bottom"],
body.light-theme .map-preview-card > div:first-child[style*="border-bottom"] {
  border-bottom-color: #E2E8F0 !important;
}

/* 3. STANDARDIZED DATA TABLES */
.admin-table-wrap {
  border: 1px solid var(--border-subtle) !important;
  border-radius: 10px !important;
  overflow-x: auto !important;
  background: transparent !important;
}

body.light-theme .admin-table-wrap {
  border-color: #CBD5E1 !important;
}

.admin-table {
  width: 100% !important;
  border-collapse: collapse !important;
  text-align: left !important;
  font-size: 0.80rem !important;
}

.admin-table thead {
  background: rgba(2, 61, 91, 0.75) !important;
  border-bottom: 2px solid var(--border) !important;
}

body.light-theme .admin-table thead {
  background: #EDF8FD !important;
  border-bottom: 2px solid #6DAED8 !important;
}

.admin-table th {
  padding: 10px 14px !important;
  font-size: 0.74rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.4px !important;
  color: #F5D061 !important;
  white-space: nowrap !important;
  border-bottom: 2px solid var(--border) !important;
}

body.light-theme .admin-table th {
  color: #92400E !important;
  border-bottom-color: #6DAED8 !important;
}

.admin-table td {
  padding: 10px 14px !important;
  font-size: 0.80rem !important;
  color: var(--text-main) !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  vertical-align: middle !important;
}

body.light-theme .admin-table td {
  color: #0F172A !important;
  border-bottom-color: #E2E8F0 !important;
}

.admin-table tbody tr {
  transition: background 0.15s ease !important;
}

.admin-table tbody tr:hover {
  background: rgba(0, 163, 224, 0.08) !important;
}

body.light-theme .admin-table tbody tr:hover {
  background: rgba(2, 132, 199, 0.06) !important;
}

/* 4. STANDARDIZED ACTION BUTTONS */
.btn-backend-action,
.btn-backend-primary,
.btn-backend-secondary,
.btn-backend-reset,
.btn-backend-export,
.btn-backend-danger,
.btn-action-29 {
  height: 31px !important;
  padding: 0 13px !important;
  border-radius: 6px !important;
  font-size: 0.77rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
  border: 1px solid transparent !important;
}

.btn-backend-primary,
.btn-jewel-sky {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%) !important;
  color: #FFFFFF !important;
  border-color: #38BDF8 !important;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.35) !important;
}

.btn-backend-primary:hover,
.btn-jewel-sky:hover {
  background: linear-gradient(135deg, #0369A1 0%, #075985 100%) !important;
  border-color: #7DD3FC !important;
  transform: translateY(-1px) !important;
}

.btn-backend-secondary,
.btn-jewel-slate {
  background: rgba(30, 41, 59, 0.6) !important;
  color: #E2E8F0 !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}

body.light-theme .btn-backend-secondary,
body.light-theme .btn-jewel-slate {
  background: #F1F5F9 !important;
  color: #334155 !important;
  border-color: #CBD5E1 !important;
}

.btn-backend-reset {
  background: rgba(148, 163, 184, 0.15) !important;
  color: #E2E8F0 !important;
  border-color: rgba(148, 163, 184, 0.3) !important;
}

body.light-theme .btn-backend-reset {
  background: #F1F5F9 !important;
  color: #475569 !important;
  border-color: #CBD5E1 !important;
}

.btn-backend-export {
  background: linear-gradient(135deg, rgba(245, 208, 97, 0.15) 0%, rgba(217, 119, 6, 0.15) 100%) !important;
  color: #F5D061 !important;
  border-color: rgba(245, 208, 97, 0.4) !important;
}

body.light-theme .btn-backend-export {
  background: #FEF3C7 !important;
  color: #92400E !important;
  border-color: #FCD34D !important;
}

.btn-backend-danger,
.btn-jewel-crimson {
  background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%) !important;
  color: #FFFFFF !important;
  border-color: #EF4444 !important;
}

.btn-jewel-emerald {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  color: #FFFFFF !important;
  border-color: #10B981 !important;
}

.btn-jewel-gold {
  background: var(--gold-gradient) !important;
  color: #080E21 !important;
  border-color: #92400E !important;
  font-weight: 800 !important;
}

/* Standard Table Icon Action Buttons */
.btn-table-edit,
.btn-table-delete,
.btn-table-add,
.btn-table-view,
.btn-table-preview {
  width: 29px !important;
  height: 29px !important;
  min-width: 29px !important;
  padding: 0 !important;
  border-radius: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  font-size: 0.80rem !important;
  border: 1px solid transparent !important;
  box-sizing: border-box !important;
}

.btn-table-add {
  background: rgba(16, 185, 129, 0.16) !important;
  color: #10B981 !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
}

.btn-table-add:hover {
  background: #10B981 !important;
  color: #FFFFFF !important;
  transform: translateY(-1px) !important;
}

.btn-table-edit {
  background: rgba(0, 163, 224, 0.16) !important;
  color: #38BDF8 !important;
  border-color: rgba(0, 163, 224, 0.35) !important;
}

.btn-table-edit:hover {
  background: #0284C7 !important;
  color: #FFFFFF !important;
  transform: translateY(-1px) !important;
}

.btn-table-delete {
  background: rgba(239, 68, 68, 0.16) !important;
  color: #EF4444 !important;
  border-color: rgba(239, 68, 68, 0.35) !important;
}

.btn-table-delete:hover {
  background: #DC2626 !important;
  color: #FFFFFF !important;
  transform: translateY(-1px) !important;
}

.btn-table-preview {
  background: transparent !important;
  color: #38BDF8 !important;
  border-color: rgba(56, 189, 248, 0.45) !important;
  border-width: 1px !important;
  border-style: solid !important;
}

.btn-table-preview:hover {
  background: rgba(56, 189, 248, 0.12) !important;
  border-color: #38BDF8 !important;
  color: #FFFFFF !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.25) !important;
}

.btn-table-preview-text {
  width: auto !important;
  min-width: auto !important;
  padding: 0 10px !important;
  height: 29px !important;
  gap: 6px !important;
  font-size: 0.74rem !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}

body.light-theme .btn-table-preview {
  background: transparent !important;
  color: #0284C7 !important;
  border-color: rgba(2, 132, 199, 0.45) !important;
}

body.light-theme .btn-table-preview:hover {
  background: rgba(2, 132, 199, 0.08) !important;
  border-color: #0284C7 !important;
  color: #0369A1 !important;
}

/* 5. STANDARDIZED FORM CONTROLS & SELECTS */
.admin-form-input,
.admin-form-select,
.admin-form-textarea,
.metrics-timeframe-select,
.admin-select-sm,
#adminSubPageSelect,
#adminListingsPageSelect {
  background: var(--navy-input) !important;
  border: 1px solid var(--border) !important;
  border-radius: 6px !important;
  color: var(--text-main) !important;
  font-size: 0.80rem !important;
  padding: 6px 10px !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
  outline: none !important;
}

.admin-form-input:focus,
.admin-form-select:focus,
.admin-form-textarea:focus,
.metrics-timeframe-select:focus {
  border-color: var(--border-focus) !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.25) !important;
}

body.light-theme .admin-form-input,
body.light-theme .admin-form-select,
body.light-theme .admin-form-textarea,
body.light-theme .metrics-timeframe-select,
body.light-theme .admin-select-sm,
body.light-theme #adminSubPageSelect,
body.light-theme #adminListingsPageSelect {
  background: #FFFFFF !important;
  border-color: #CBD5E1 !important;
  color: #020617 !important;
}

/* 6. STANDARDIZED NOTICE / GUIDELINE BANNERS */
.admin-notice-banner,
.admin-control-notice,
.admin-guideline-box {
  border-radius: 8px !important;
  padding: 10px 14px !important;
  margin-bottom: 16px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: 0.82rem !important;
  line-height: 1.45 !important;
}

.notice-amber,
.admin-control-notice {
  background: rgba(245, 208, 97, 0.12) !important;
  border: 1px solid rgba(245, 208, 97, 0.35) !important;
  border-left: 4px solid #F5D061 !important;
  color: var(--text-main) !important;
}

body.light-theme .notice-amber,
body.light-theme .admin-control-notice {
  background: #FEF9C3 !important;
  border-color: #FDE047 !important;
  border-left-color: #EAB308 !important;
  color: #854D0E !important;
}

.notice-blue,
.admin-guideline-box {
  background: rgba(2, 132, 199, 0.12) !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  border-left: 4px solid #0284C7 !important;
  color: var(--text-main) !important;
}

body.light-theme .notice-blue,
body.light-theme .admin-guideline-box {
  background: #E0F2FE !important;
  border-color: #BAE6FD !important;
  border-left-color: #0284C7 !important;
  color: #0369A1 !important;
}

/* 7. STANDARDIZED STATUS PILLS & BADGES */
.admin-status-pill,
.agent-status-pill,
.company-gst-pill,
.renewal-pill,
.dispatcher-mode-badge,
.badge-retention-gold,
.directories-badge-amber,
.directories-badge-emerald,
.badge-all-packs {
  font-size: 0.73rem !important;
  font-weight: 800 !important;
  border-radius: 9999px !important;
  padding: 3px 11px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
  letter-spacing: 0.2px !important;
  border: 1px solid transparent !important;
}

.pill-emerald,
.renewal-pill.healthy,
.company-gst-pill.gst-registered,
.directories-badge-emerald {
  background: rgba(16, 185, 129, 0.16) !important;
  color: #10B981 !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
}

body.light-theme .pill-emerald,
body.light-theme .renewal-pill.healthy,
body.light-theme .company-gst-pill.gst-registered,
body.light-theme .directories-badge-emerald {
  background: #DCFCE7 !important;
  color: #15803D !important;
  border-color: #BBF7D0 !important;
}

.pill-amber,
.badge-retention-gold,
.directories-badge-amber,
.badge-all-packs {
  background: rgba(245, 208, 97, 0.16) !important;
  color: #F5D061 !important;
  border-color: rgba(245, 208, 97, 0.35) !important;
}

body.light-theme .pill-amber,
body.light-theme .badge-retention-gold,
body.light-theme .directories-badge-amber,
body.light-theme .badge-all-packs {
  background: #FEF3C7 !important;
  color: #92400E !important;
  border-color: #FCD34D !important;
}

.pill-sky,
.admin-module-pill {
  background: rgba(0, 163, 224, 0.14) !important;
  color: #38BDF8 !important;
  border-color: rgba(0, 163, 224, 0.3) !important;
}

body.light-theme .pill-sky,
body.light-theme .admin-module-pill {
  background: #E0F2FE !important;
  color: #0284C7 !important;
  border-color: #BAE6FD !important;
}

.pill-crimson,
.renewal-pill.danger {
  background: rgba(239, 68, 68, 0.16) !important;
  color: #EF4444 !important;
  border-color: rgba(239, 68, 68, 0.35) !important;
}

body.light-theme .pill-crimson,
body.light-theme .renewal-pill.danger {
  background: #FEE2E2 !important;
  color: #B91C1C !important;
  border-color: #FCA5A5 !important;
}

.pill-slate,
.dispatcher-mode-badge.readonly-state {
  background: rgba(148, 163, 184, 0.16) !important;
  color: #CBD5E1 !important;
  border-color: rgba(148, 163, 184, 0.3) !important;
}

body.light-theme .pill-slate,
body.light-theme .dispatcher-mode-badge.readonly-state {
  background: #F1F5F9 !important;
  color: #475569 !important;
  border-color: #CBD5E1 !important;
}

.admin-identity-strip {
  background: #0B192C;
  border: 1px solid #1E3E62;
  padding: 12px 18px;
  border-radius: 10px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

body.light-theme .admin-identity-strip {
  background: #0B192C;
  border-color: #1E3E62;
}

.admin-identity-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.admin-online-pill {
  background: rgba(16, 185, 129, 0.18);
  color: #10B981;
  font-weight: 800;
  font-size: 0.76rem;
  border-radius: 20px;
  padding: 5px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(16, 185, 129, 0.35);
  letter-spacing: 0.2px;
}

.admin-pulsing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  display: inline-block;
  animation: pulseEmerald 1.8s infinite;
}

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

.admin-authority-label {
  font-size: 0.84rem;
  color: #E2E8F0;
}

.admin-authority-label strong {
  color: #F5D061;
}

.admin-table-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

body:not(.light-theme) .admin-table-card {
  background: linear-gradient(180deg, rgba(2, 45, 68, 0.85) 0%, rgba(1, 26, 40, 0.95) 100%);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Admin Bonus Grant Panel */
.admin-bonus-grant-panel {
  background: rgba(1, 30, 45, 0.75);
  border: 1px solid rgba(245, 208, 97, 0.35);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
}

body.light-theme .admin-bonus-grant-panel {
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06) !important;
}

body.light-theme .admin-bonus-grant-panel div[style*="color: #FFFFFF"] {
  color: #0F172A !important;
}

body.light-theme .admin-bonus-grant-panel div[style*="color: #94A3B8"] {
  color: #64748B !important;
}

body.light-theme .admin-bonus-grant-panel label {
  color: #334155 !important;
}

body.light-theme .admin-bonus-grant-panel .form-control-admin {
  background: #F8FAFC !important;
  border: 1px solid #CBD5E1 !important;
  color: #0F172A !important;
}

body.light-theme .admin-bonus-grant-panel select.form-control-admin {
  background-color: #F8FAFC !important;
  color: #0F172A !important;
}

body.light-theme .admin-bonus-grant-panel #adminBonusCreditAmount {
  color: #B45309 !important;
  background: #FFFBEB !important;
  border: 1px solid #FCD34D !important;
}

.admin-module-pill {
  display: inline-block;
  background: rgba(0, 163, 224, 0.14);
  color: #38BDF8;
  border: 1px solid rgba(0, 163, 224, 0.3);
  border-radius: 6px;
  font-size: 0.69rem;
  font-weight: 700;
  padding: 2px 7px;
  margin: 2px 3px 2px 0;
  white-space: nowrap;
}

body.light-theme .admin-module-pill {
  background: #E0F2FE;
  color: #0284C7;
  border-color: #BAE6FD;
}

.admin-module-pill.badge-full-authority {
  background: rgba(16, 185, 129, 0.18) !important;
  color: #10B981 !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
  font-weight: 800 !important;
  padding: 3px 10px !important;
  font-size: 0.73rem !important;
}

body.light-theme .admin-module-pill.badge-full-authority {
  background: #DCFCE7 !important;
  color: #15803D !important;
  border-color: #BBF7D0 !important;
}

/* 2-Column Authority Checkbox Grid */
.admin-authority-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 640px) {
  .admin-authority-grid {
    grid-template-columns: 1fr;
  }
}

.admin-auth-check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(2, 45, 68, 0.5);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  transition: var(--transition-fast);
}

body.light-theme .admin-auth-check-item {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

.admin-auth-check-item:hover {
  border-color: var(--primary);
  background: rgba(0, 163, 224, 0.08);
}

body.light-theme .admin-auth-check-item:hover {
  background: #F0F9FF;
  border-color: #38BDF8;
}

.admin-auth-check-item input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--primary);
  cursor: pointer;
}

.admin-auth-check-item strong {
  display: block;
  font-size: 0.79rem;
  color: var(--text-main);
}

.admin-auth-check-item small {
  display: block;
  font-size: 0.69rem;
  color: var(--text-muted);
  margin-top: 1px;
}

/* =========================================================
   COMPANY PROFILE SUB-TAB & MODAL STYLES
   ========================================================= */
.admin-company-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 24px;
  position: relative;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

body:not(.light-theme) .admin-company-card {
  background: linear-gradient(180deg, rgba(2, 45, 68, 0.85) 0%, rgba(1, 26, 40, 0.95) 100%);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.company-gst-pill {
  font-size: 0.76rem;
  font-weight: 800;
  border-radius: 20px;
  padding: 4px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.2px;
}

.company-gst-pill.non-gst {
  background: rgba(217, 119, 6, 0.15);
  color: #D97706;
  border: 1px solid rgba(245, 208, 97, 0.35);
}

body.light-theme .company-gst-pill.non-gst {
  background: #FEF3C7;
  color: #B45309;
  border-color: #FCD34D;
}

.company-gst-pill.gst-registered {
  background: rgba(16, 185, 129, 0.18);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

body.light-theme .company-gst-pill.gst-registered {
  background: #DCFCE7;
  color: #15803D;
  border-color: #BBF7D0;
}

.company-bizfile-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(2, 45, 68, 0.45);
  border: 1px solid var(--border);
  border-radius: 10px;
  flex-wrap: wrap;
  gap: 12px;
}

body.light-theme .company-bizfile-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.bizfile-pdf-badge {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.bizfile-upload-dropzone {
  border: 1px dashed #CBD5E1;
  border-radius: 10px;
  padding: 18px;
  background: rgba(2, 45, 68, 0.3);
  text-align: center;
  transition: var(--transition-fast);
}

body.light-theme .bizfile-upload-dropzone {
  background: #F8FAFC;
  border-color: #CBD5E1;
}

.bizfile-upload-dropzone:hover {
  border-color: var(--primary);
  background: rgba(0, 163, 224, 0.06);
}

/* Company & Marketplace Logos Governance */
.company-logo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 22px;
}

@media (max-width: 768px) {
  .company-logo-grid {
    grid-template-columns: 1fr;
  }
}

.company-logo-card {
  background: var(--navy-input, rgba(2, 45, 68, 0.4));
  border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: var(--transition-fast);
}

body.light-theme .company-logo-card {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

.logo-preview-box {
  min-height: 72px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px dashed var(--border, rgba(255, 255, 255, 0.15));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
}

body.light-theme .logo-preview-box {
  background: #FFFFFF;
  border-color: #CBD5E1;
}

.logo-preview-box img {
  max-height: 52px;
  max-width: 100%;
  object-fit: contain;
}

.logo-upload-dropzone {
  border: 1px dashed var(--border, #CBD5E1);
  border-radius: 8px;
  padding: 12px;
  background: var(--navy-input, rgba(2, 45, 68, 0.25));
  text-align: center;
  transition: var(--transition-fast);
  cursor: pointer;
}

body.light-theme .logo-upload-dropzone {
  background: #F8FAFC;
  border-color: #CBD5E1;
}

.logo-upload-dropzone:hover {
  border-color: var(--primary, #0284C7);
  background: rgba(0, 163, 224, 0.08);
}


.admin-section-card {
  background: linear-gradient(180deg, rgba(2, 45, 68, 0.85) 0%, rgba(1, 26, 40, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.15), inset 0 -2px 1px rgba(0, 0, 0, 0.2);
}

body.light-theme .admin-section-card {
  background: linear-gradient(180deg, #FFFFFF 0%, #F4F9FD 100%);
  border: 1px solid #B5D7ED;
  border-top: 1px solid #FFFFFF;
  box-shadow: 0 6px 16px rgba(11, 34, 56, 0.08), inset 0 1px 1px #FFFFFF;
}

.admin-editor-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 860px) {
  .admin-editor-split {
    grid-template-columns: 1fr;
  }
}

.admin-live-preview-box {
  background: linear-gradient(180deg, #011E2D 0%, #011622 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 16px;
  min-height: 220px;
  max-height: 400px;
  overflow-y: auto;
  font-size: 0.85rem;
  line-height: 1.55;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.55), 0 1px 1px rgba(255, 255, 255, 0.1);
}

body.light-theme .admin-live-preview-box {
  background: #F0F7FC;
  border: 1px solid #D6EBF8;
  box-shadow: inset 0 2px 4px rgba(11, 34, 56, 0.05);
}

/* =========================================================
   SYSTEM / WEBSITE DEPENDENCIES & RENEWAL HEALTH STYLES
   ========================================================= */
.dependency-pdf-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(239, 68, 68, 0.12);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 0.70rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
  margin: 2px 2px 2px 0;
  white-space: nowrap;
}

.dependency-pdf-chip:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: #EF4444;
  transform: translateY(-1px);
}

body.light-theme .dependency-pdf-chip {
  background: #FEE2E2;
  color: #DC2626;
  border-color: #FECACA;
}

.renewal-pill {
  font-size: 0.73rem;
  font-weight: 800;
  border-radius: 12px;
  padding: 3px 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

.renewal-pill.healthy {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

body.light-theme .renewal-pill.healthy {
  background: #DCFCE7;
  color: #15803D;
  border-color: #BBF7D0;
}

.renewal-pill.warning {
  background: rgba(245, 208, 97, 0.18);
  color: #D97706;
  border: 1px solid rgba(245, 208, 97, 0.4);
}

body.light-theme .renewal-pill.warning {
  background: #FEF3C7;
  color: #B45309;
  border-color: #FCD34D;
}

.renewal-pill.danger {
  background: rgba(239, 68, 68, 0.18);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
  animation: pulseRed 1.8s infinite;
}

body.light-theme .renewal-pill.danger {
  background: #FEE2E2;
  color: #B91C1C;
  border-color: #FCA5A5;
}

.modal-pdf-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(2, 45, 68, 0.4);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  margin-top: 6px;
}

body.light-theme .modal-pdf-item {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

.credential-copy-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  font-size: 0.72rem;
  transition: var(--transition-fast);
}

.credential-copy-btn:hover {
  color: var(--primary);
  background: rgba(0, 163, 224, 0.1);
}

.admin-table th.sticky-action-col,
.admin-table td.sticky-action-col {
  position: sticky;
  right: 0;
  background: #022F47;
  z-index: 2;
  box-shadow: -4px 0 8px rgba(0, 0, 0, 0.2);
}

body.light-theme .admin-table th.sticky-action-col,
body.light-theme .admin-table td.sticky-action-col {
  background: #FFFFFF;
  box-shadow: -4px 0 8px rgba(0, 0, 0, 0.05);
}

.sortable-th {
  cursor: pointer;
  user-select: none;
  transition: var(--transition-fast);
}

.sortable-th:hover {
  color: var(--primary);
}

/* =========================================================
   OPERATING MANUAL: DRAGGABLE ROWS & MEDIA ASSETS STYLES
   ========================================================= */
.admin-table tbody tr.row-dragging {
  opacity: 0.35;
  background: rgba(0, 163, 224, 0.15) !important;
  border: 1px dashed var(--primary);
}

.admin-table tbody tr.drag-over-top td {
  border-top: 3px solid var(--primary) !important;
}

.admin-table tbody tr.drag-over-bottom td {
  border-bottom: 3px solid var(--primary) !important;
}

.drag-handle-cell {
  cursor: grab;
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 6px;
  transition: var(--transition-fast);
}

.drag-handle-cell:hover {
  color: #F5D061;
  background: rgba(245, 208, 97, 0.12);
}

.drag-handle-cell:active {
  cursor: grabbing;
}

.media-format-pill {
  font-family: 'SF Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(2, 45, 68, 0.6);
  border: 1px solid var(--border);
  color: #38BDF8;
  white-space: nowrap;
}

body.light-theme .media-format-pill {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: #0284C7;
}

.manual-file-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(2, 45, 68, 0.5);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.78rem;
  max-width: 270px;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

body.light-theme .manual-file-chip {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

.manual-file-chip:hover {
  border-color: #00A3E0;
  background: rgba(0, 163, 224, 0.12);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 163, 224, 0.15);
}

body.light-theme .manual-file-chip:hover {
  border-color: #0284C7;
  background: #EDF8FD;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15);
}

.manual-file-chip .manual-file-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
  transition: color 0.15s;
}

.manual-file-chip:hover .manual-file-name {
  color: #00A3E0;
}

body.light-theme .manual-file-chip:hover .manual-file-name {
  color: #0284C7;
}

.manual-preview-btn,
.manual-download-btn {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  padding: 3px 5px;
  border-radius: 4px;
  font-size: 0.76rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.manual-preview-btn:hover {
  color: #F5D061;
  background: rgba(245, 208, 97, 0.15);
}

.manual-download-btn:hover {
  color: #10B981;
  background: rgba(16, 185, 129, 0.15);
}

/* OPERATING MANUAL PREVIEW MODAL STYLES */
#operatingManualPreviewModal .manual-preview-modal-card {
  background: linear-gradient(180deg, #021827 0%, #01111C 100%);
  border: 1px solid rgba(0, 163, 224, 0.35);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(0, 163, 224, 0.2);
}

body.light-theme #operatingManualPreviewModal .manual-preview-modal-card {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  border: 1px solid #CBD5E1;
  box-shadow: 0 25px 70px rgba(15, 23, 42, 0.25);
}

body.light-theme #operatingManualPreviewModal .manual-preview-header,
body.light-theme #operatingManualPreviewModal .manual-preview-footer {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
}

body.light-theme #operatingManualPreviewModal .manual-preview-body {
  background: #F1F5F9 !important;
}

.btn-zoom-ctrl {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 0.76rem;
  transition: all 0.15s;
}

.btn-zoom-ctrl:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.1);
}

body.light-theme .btn-zoom-ctrl:hover {
  background: rgba(0, 0, 0, 0.06);
}

/* Simulated Document Sheet Layout */
.manual-doc-sheet {
  background: #FFFFFF;
  color: #0F172A;
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  padding: 40px 48px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  margin: 0 auto;
  line-height: 1.6;
}

.manual-doc-sheet h1,
.manual-doc-sheet h2,
.manual-doc-sheet h3,
.manual-doc-sheet h4 {
  color: #0F172A !important;
}

.manual-doc-sheet p,
.manual-doc-sheet td,
.manual-doc-sheet li {
  color: #334155;
  font-size: 0.85rem;
}

.manual-clause-box {
  background: #F8FAFC;
  border-left: 3.5px solid #00A3E0;
  border-radius: 0 6px 6px 0;
  padding: 12px 16px;
  margin: 14px 0;
}

.manual-stamp-seal {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed #0284C7;
  border-radius: 8px;
  padding: 8px 16px;
  color: #0284C7;
  font-weight: 800;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transform: rotate(-3deg);
}

/* Fullscreen Maintenance Overlay with Animated Geometric Grid Lines */
#maintenanceOverlay.maintenance-overlay-bg {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background-color: #0B192C;
  background-image: 
    linear-gradient(rgba(0, 163, 224, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 163, 224, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 50% 40%, rgba(2, 61, 91, 0.6) 0%, rgba(11, 25, 44, 0.98) 100%);
  background-size: 40px 40px, 40px 40px, 100% 100%;
  animation: gridShift 45s linear infinite;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

@keyframes gridShift {
  0% { background-position: 0 0, 0 0, center center; }
  100% { background-position: 80px 80px, 80px 80px, center center; }
}

.maintenance-card {
  max-width: 600px;
  width: 94vw;
  background: linear-gradient(180deg, #023D5B 0%, #011E2D 100%);
  border: 2px solid rgba(245, 208, 97, 0.5);
  border-top: 2px solid #F5D061;
  border-radius: 20px;
  padding: 34px 28px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 30px rgba(245, 208, 97, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.maintenance-pulse-emerald {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 10px #10B981;
  display: inline-block;
  animation: pulseEmerald 1.8s infinite;
}

.maintenance-pulse-red {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #EF4444;
  box-shadow: 0 0 10px #EF4444;
  display: inline-block;
  animation: pulseRed 1.8s infinite;
}

@keyframes pulseRed {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Dual Column Configuration Grid */
.maintenance-config-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 860px) {
  .maintenance-config-grid {
    grid-template-columns: 1fr;
  }
}

/* Countdown Block Box */
.countdown-box {
  background: rgba(2, 45, 68, 0.85);
  border: 1px solid rgba(0, 163, 224, 0.35);
  border-radius: 8px;
  padding: 6px 12px;
  min-width: 58px;
  text-align: center;
}

.countdown-box .countdown-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: #F5D061;
  display: block;
  font-family: 'SF Mono', monospace;
  line-height: 1.2;
}

.countdown-box .countdown-lbl {
  font-size: 0.65rem;
  color: #94A3B8;
  text-transform: uppercase;
  font-weight: 700;
  display: block;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* Mobile Nav Drawer Sheet 3D Look */
#mobileNavModal .modal-card {
  margin-top: auto;
  margin-bottom: 0;
  border-radius: 24px 24px 0 0 !important;
  border-bottom: none !important;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.85), inset 0 1.5px 1px rgba(255, 255, 255, 0.45);
}

body.light-theme #mobileNavModal .modal-card {
  box-shadow: 0 -16px 40px rgba(11, 34, 56, 0.2), inset 0 1.5px 1px #FFFFFF;
}

/* Floating Mode Switcher (Dev / Demo HUD) */
.floating-mode-hud {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 90000;
  background: rgba(1, 30, 45, 0.95);
  backdrop-filter: blur(10px);
  border: 1.5px solid #F5D061;
  border-radius: 24px;
  padding: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

body.light-theme .floating-mode-hud {
  background: rgba(237, 248, 253, 0.95);
  border-color: #D97706;
}

.hud-mode-btn {
  height: 30px;
  padding: 0 12px;
  border-radius: 18px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.hud-mode-btn.active {
  background: var(--gold-gradient);
  color: #080E21;
  font-weight: 900;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* Light mode styling for RES Agent button in Floating HUD:
   Uses the fill from the search button with reversed white text */
body.light-theme #hudAgentBtn {
  background: linear-gradient(180deg, #F5D061 0%, #E5A93C 100%) !important;
  color: #FFFFFF !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  border: 1px solid #D97706 !important;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
}

body.light-theme #hudAgentBtn i {
  color: #FFFFFF !important;
}

body.light-theme #hudAgentBtn:hover {
  transform: translateY(-1px) !important;
  filter: brightness(1.06);
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.45) !important;
}

body.light-theme #hudAgentBtn.active {
  background: linear-gradient(180deg, #F5D061 0%, #E5A93C 100%) !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 0 2px #FFFFFF, 0 4px 14px rgba(217, 119, 6, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.3) !important;
}

/* =========================================================
   REGISTERED AGENT DIRECTORY (Horizontal Row Layout & 3D Styling)
   ========================================================= */
.agent-directory-modal-card {
  max-width: 1060px !important;
  width: 95%;
  border-radius: 22px;
}

.agent-directory-search-wrap {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.agent-search-input-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.agent-search-input-box .search-icon {
  position: absolute;
  left: 18px;
  color: #38BDF8;
  font-size: 1.05rem;
  pointer-events: none;
}

.agent-search-field {
  width: 100%;
  height: 52px;
  padding: 0 48px 0 48px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(1, 30, 45, 0.95) 0%, rgba(2, 45, 68, 0.85) 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.35);
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: var(--transition-fast);
}

.agent-search-field:focus {
  outline: none;
  border-color: #38BDF8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.agent-search-field::placeholder {
  color: rgba(201, 209, 217, 0.6);
  font-size: 0.9rem;
}

body.light-theme .agent-search-field {
  background: #FFFFFF;
  border-color: #6DAED8;
  color: #0B2238;
  box-shadow: inset 0 2px 4px rgba(11, 34, 56, 0.06), 0 4px 12px rgba(11, 34, 56, 0.08);
}

body.light-theme .agent-search-field::placeholder {
  color: #6B7280;
}

.clear-search-btn {
  position: absolute;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #E6EDF3;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.8rem;
  transition: var(--transition-fast);
}

.clear-search-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #EF4444;
}

body.light-theme .clear-search-btn {
  background: rgba(11, 34, 56, 0.1);
  color: #0B2238;
}

.agent-search-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.agent-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38BDF8;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

body.light-theme .agent-count-badge {
  background: rgba(3, 78, 116, 0.1);
  border-color: rgba(3, 78, 116, 0.25);
  color: #034E74;
}

.agent-sort-note {
  font-size: 0.8rem;
  color: var(--text-muted, #8B949E);
  display: flex;
  align-items: center;
  gap: 6px;
}

body.light-theme .agent-sort-note {
  color: #4B5563;
}

/* Agent List Container */
.agent-directory-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 560px;
  overflow-y: auto;
  padding-right: 4px;
}

/* Horizontal Row Card */
.agent-directory-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 22px;
  background: linear-gradient(180deg, rgba(2, 56, 84, 0.55) 0%, rgba(1, 30, 45, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-top: 1.5px solid rgba(255, 255, 255, 0.32);
  border-radius: 16px;
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.35), 
    0 2px 6px rgba(0, 0, 0, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.agent-directory-row:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 
    0 12px 30px rgba(0, 0, 0, 0.5), 
    0 0 16px rgba(56, 189, 248, 0.25), 
    inset 0 1px 1px rgba(255, 255, 255, 0.28);
}

body.light-theme .agent-directory-row {
  background: linear-gradient(180deg, #FFFFFF 0%, #F4FAFD 100%);
  border: 1px solid #BCE0F5;
  border-top: 1.5px solid #FFFFFF;
  box-shadow: 
    0 6px 18px rgba(11, 34, 56, 0.08), 
    0 2px 4px rgba(11, 34, 56, 0.04),
    inset 0 1px 1px #FFFFFF;
}

body.light-theme .agent-directory-row:hover {
  border-color: #034E74;
  box-shadow: 
    0 10px 24px rgba(3, 78, 116, 0.16), 
    inset 0 1px 1px #FFFFFF;
}

/* 1. Identity Column */
.agent-col-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1.25;
  min-width: 240px;
}

.agent-row-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #F5D061;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.agent-id-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.agent-name-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.agent-name-text {
  font-size: 1.05rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

body.light-theme .agent-name-text {
  color: #0B2238;
}

.agent-verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #22C55E;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 2px 7px;
  border-radius: 12px;
}

.agent-specialty-line {
  font-size: 0.8rem;
  color: #94A3B8;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.light-theme .agent-specialty-line {
  color: #475569;
}

/* 2. CEA Reg Column */
.agent-col-cea {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 0.75;
  min-width: 120px;
}

.agent-col-lbl {
  font-size: 0.68rem;
  font-weight: 800;
  color: #64748B;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.light-theme .agent-col-lbl {
  color: #64748B;
}

.agent-cea-code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.92rem;
  font-weight: 800;
  color: #38BDF8;
  letter-spacing: 0.04em;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
  width: fit-content;
}

body.light-theme .agent-cea-code {
  color: #0284C7;
  background: rgba(2, 132, 199, 0.08);
  border-color: rgba(2, 132, 199, 0.25);
}

/* 3. Agency Column */
.agent-col-agency {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1.1;
  min-width: 180px;
}

.agent-agency-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #E2E8F0;
}

body.light-theme .agent-agency-name {
  color: #1E293B;
}

.agent-agency-lic {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.74rem;
  color: #94A3B8;
}

body.light-theme .agent-agency-lic {
  color: #64748B;
}

/* 4. Actions Column */
.agent-col-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
  flex: 0.95;
  min-width: 180px;
}

.agent-listings-badge {
  font-size: 0.76rem;
  font-weight: 700;
  color: #F5D061;
  background: rgba(245, 208, 97, 0.12);
  border: 1px solid rgba(245, 208, 97, 0.3);
  padding: 6px 10px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

body.light-theme .agent-listings-badge {
  color: #B45309;
  background: rgba(245, 208, 97, 0.2);
  border-color: rgba(217, 119, 6, 0.35);
}

.agent-view-btn {
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  background: linear-gradient(180deg, #035B88 0%, #024366 100%);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.25);
  transition: var(--transition-fast);
}

.agent-view-btn:hover {
  background: linear-gradient(180deg, #0472AA 0%, #035B88 100%);
  border-color: #38BDF8;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(56, 189, 248, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

body.light-theme .agent-view-btn {
  background: linear-gradient(180deg, #0284C7 0%, #0369A1 100%);
  border-color: #0284C7;
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

body.light-theme .agent-view-btn:hover {
  background: linear-gradient(180deg, #0369A1 0%, #075985 100%);
}

.agent-directory-empty {
  text-align: center;
  padding: 48px 20px;
  background: rgba(1, 30, 45, 0.4);
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

body.light-theme .agent-directory-empty {
  background: rgba(237, 248, 253, 0.7);
  border-color: #BCE0F5;
}

/* Responsive Handling */
@media (max-width: 920px) {
  .agent-directory-row {
    flex-wrap: wrap;
    gap: 14px;
  }
  .agent-col-identity {
    flex: 1 1 100%;
  }
  .agent-col-cea, .agent-col-agency {
    flex: 1 1 45%;
  }
  .agent-col-actions {
    flex: 1 1 100%;
    justify-content: flex-start;
  }
}

/* =========================================================
   RES AGENTS MANAGEMENT TAB & POP-UP MODALS (ADMIN SUITE)
   ========================================================= */
.subscriber-credit-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(245, 208, 97, 0.12);
  color: #D97706;
  border: 1px solid rgba(245, 208, 97, 0.35);
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 9999px;
  white-space: nowrap;
}

body:not(.light-theme) .subscriber-credit-pill {
  color: #F5D061;
  border-color: rgba(245, 208, 97, 0.3);
}

.agent-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.70rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 9999px;
  white-space: nowrap;
}
.agent-status-pill.status-active {
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.agent-status-pill.status-pending {
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.35);
}
.agent-status-pill.status-inactive {
  background: rgba(100, 116, 139, 0.12);
  color: #64748B;
  border: 1px solid rgba(100, 116, 139, 0.3);
}
.agent-status-pill.status-suspended {
  background: rgba(239, 68, 68, 0.12);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

body.light-theme .agent-status-pill.status-pending {
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FCD34D;
}

.agent-listings-ratio {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.74rem;
  background: rgba(15, 23, 42, 0.04);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  display: inline-block;
}

body:not(.light-theme) .agent-listings-ratio {
  background: rgba(255, 255, 255, 0.05);
}

.social-icon-cluster {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.2s ease;
}
body:not(.light-theme) .social-icon-cluster {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}
.social-icon-cluster:hover {
  background: rgba(0, 163, 224, 0.1);
  border-color: rgba(0, 163, 224, 0.4);
  transform: translateY(-1px);
}

.social-mini-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.70rem;
  transition: transform 0.15s ease;
}
.social-mini-icon.configured {
  opacity: 1;
}
.social-mini-icon.unconfigured {
  opacity: 0.25;
  filter: grayscale(1);
}

.social-handles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (max-width: 480px) {
  .social-handles-grid {
    grid-template-columns: 1fr;
  }
}

.social-handle-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
body:not(.light-theme) .social-handle-card {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   MAP ENGINE API SUB-TAB & CONFIGURATION MODAL STYLES
   ========================================================================== */
.map-provider-card {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}
.map-provider-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.map-provider-card.selected-onemap {
  border: 2px solid #F5D061 !important;
  background: rgba(245, 208, 97, 0.08) !important;
}
.map-provider-card.selected-google {
  border: 2px solid #38BDF8 !important;
  background: rgba(56, 189, 248, 0.08) !important;
}

/* Floating Map Engine Connectivity Toast */
.map-connectivity-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 170000;
  background: #0B192C;
  border: 1px solid #10B981;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(16, 185, 129, 0.35);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 440px;
  animation: slideInUpToast 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

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

.map-connectivity-toast.fade-out {
  opacity: 0;
  transform: translateY(15px);
}

/* ==========================================================================
   PAYMENT GATEWAY API SUB-TAB & CONFIGURATION MODAL STYLES
   ========================================================================== */
.gateway-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 900px) {
  .gateway-tier-grid {
    grid-template-columns: 1fr;
  }
}

.gateway-tier-card {
  border-radius: 10px;
  padding: 16px;
  background: #0B192C;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.gateway-tier-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.gateway-card-primary {
  border: 1px solid rgba(245, 208, 97, 0.45);
  box-shadow: 0 0 16px rgba(245, 208, 97, 0.08);
}
.gateway-card-secondary {
  border: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.08);
}
.gateway-card-backup {
  border: 1px solid #1E3E62;
}

.gateway-cred-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 14px;
}
body:not(.light-theme) .gateway-cred-box {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
}

body.light-theme #adminMapApiModal .modal-card,
body.light-theme #adminPaymentApiModal .modal-card {
  background: #FFFFFF !important;
  color: #0F172A !important;
  border: 1px solid #CBD5E1 !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15) !important;
}
body.light-theme #adminMapApiModal .modal-header,
body.light-theme #adminPaymentApiModal .modal-header {
  border-bottom-color: #E2E8F0 !important;
}
body.light-theme #adminMapApiModal .modal-title,
body.light-theme #adminPaymentApiModal .modal-title {
  color: #0F172A !important;
}
body.light-theme #adminMapApiModal .modal-header p,
body.light-theme #adminPaymentApiModal .modal-header p {
  color: #64748B !important;
}
body.light-theme #adminMapApiModal label,
body.light-theme #adminPaymentApiModal label {
  color: #0F172A !important;
}
body.light-theme #adminMapApiModal .subtitle-text,
body.light-theme #adminPaymentApiModal .subtitle-text {
  color: #475569 !important;
}
body.light-theme #adminCreditPackModal .admin-form-group[style*="#0F172A"] {
  background: #F1F5F9 !important;
  border-color: #E2E8F0 !important;
}
body.light-theme #adminCreditPackModal .admin-form-group[style*="#0F172A"] span {
  color: #0F172A !important;
}

/* ==========================================================================
   WEBMAIL SYNC API SUB-TAB STYLES
   ========================================================================== */
.webmail-config-card {
  background: #0B192C;
  border: 1px solid #1E3E62;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}
.webmail-config-card.is-editing {
  border-color: #F5D061 !important;
  box-shadow: 0 0 16px rgba(245, 208, 97, 0.18) !important;
}
.webmail-card-header {
  padding: 14px 18px;
  background: rgba(15, 23, 42, 0.5);
  border-bottom: 1px solid #1E3E62;
}
.webmail-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.webmail-field-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.webmail-field-input {
  width: 100%;
  background: #0F172A;
  border: 1px solid #334155;
  color: #F8FAFC;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.82rem;
  box-sizing: border-box;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.webmail-field-input:focus {
  outline: none;
  border-color: #F5D061;
}
.webmail-field-input:disabled {
  background: rgba(15, 23, 42, 0.5) !important;
  border-color: #1E293B !important;
  color: #94A3B8 !important;
  cursor: not-allowed;
  opacity: 0.85;
}
.webmail-accounts-table th,
.webmail-accounts-table td {
  border-bottom: 1px solid #1E3E62;
  vertical-align: middle;
}
.webmail-accounts-table tr:last-child td {
  border-bottom: none;
}
.webmail-accounts-table tr:hover td {
  background: rgba(30, 62, 98, 0.2);
}
.webmail-account-input {
  background: #0F172A;
  border: 1px solid #334155;
  color: #F8FAFC;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.78rem;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.15s ease;
}
.webmail-account-input:focus {
  outline: none;
  border-color: #F5D061;
}
.webmail-account-input:disabled {
  background: transparent !important;
  border-color: transparent !important;
  color: #E2E8F0 !important;
  cursor: default;
  padding-left: 0;
}
.webmail-eye-btn {
  background: none;
  border: none;
  color: #64748B;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 4px;
  transition: color 0.15s;
}
.webmail-eye-btn:hover {
  color: #F5D061;
}
.webmail-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 170000;
  background: #0B192C;
  border: 1px solid #38BDF8;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(56, 189, 248, 0.35);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 460px;
  animation: slideInUpToast 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.webmail-toast.fade-out {
  opacity: 0;
  transform: translateY(15px);
}

/* ==========================================================================
   WHATSAPP GATEWAY API SUB-TAB STYLES
   ========================================================================== */
.wa-config-card {
  background: #0B192C;
  border: 1px solid #1E3E62;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}
.wa-config-card.is-editing {
  border-color: #25D366 !important;
  box-shadow: 0 0 16px rgba(37, 211, 102, 0.18) !important;
}
.wa-card-header {
  padding: 14px 18px;
  background: rgba(15, 23, 42, 0.5);
  border-bottom: 1px solid #1E3E62;
}
.wa-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.wa-field-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.wa-field-input {
  width: 100%;
  background: #0F172A;
  border: 1px solid #334155;
  color: #F8FAFC;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.82rem;
  box-sizing: border-box;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.wa-field-input:focus {
  outline: none;
  border-color: #25D366;
}
.wa-field-input:disabled {
  background: rgba(15, 23, 42, 0.5) !important;
  border-color: #1E293B !important;
  color: #94A3B8 !important;
  cursor: not-allowed;
  opacity: 0.85;
}
.wa-trigger-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 960px) {
  .wa-trigger-grid {
    grid-template-columns: 1fr;
  }
}
.wa-trigger-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid #1E3E62;
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.wa-trigger-card:hover {
  border-color: rgba(37, 211, 102, 0.4);
  transform: translateY(-2px);
}
.wa-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 170000;
  background: #0B192C;
  border: 1px solid #25D366;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(37, 211, 102, 0.35);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 480px;
  animation: slideInUpToast 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.wa-toast.fade-out {
  opacity: 0;
  transform: translateY(15px);
}

/* ==========================================================================
   DEEPL TRANSLATION API SUB-TAB STYLES
   ========================================================================== */
.deepl-config-card {
  background: #0B192C;
  border: 1px solid #1E3E62;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}
.deepl-config-card.is-editing {
  border-color: #38BDF8 !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.18) !important;
}
.deepl-card-header {
  padding: 14px 18px;
  background: rgba(15, 23, 42, 0.5);
  border-bottom: 1px solid #1E3E62;
}
.deepl-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.deepl-field-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.deepl-field-input {
  width: 100%;
  background: #0F172A;
  border: 1px solid #334155;
  color: #F8FAFC;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.82rem;
  box-sizing: border-box;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.deepl-field-input:focus {
  outline: none;
  border-color: #38BDF8;
}
.deepl-field-input:disabled {
  background: rgba(15, 23, 42, 0.5) !important;
  border-color: #1E293B !important;
  color: #94A3B8 !important;
  cursor: not-allowed;
  opacity: 0.85;
}
.deepl-target-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (max-width: 600px) {
  .deepl-target-grid {
    grid-template-columns: 1fr;
  }
}
.deepl-target-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid #1E3E62;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.deepl-target-item:hover {
  border-color: #38BDF8;
}
.deepl-cache-stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid #1E3E62;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
}
.deepl-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 170000;
  background: #0B192C;
  border: 1px solid #38BDF8;
}

/* Light Theme Overrides for APIs Config Cards */
body.light-theme .webmail-config-card,
body.light-theme .wa-config-card,
body.light-theme .deepl-config-card {
  background: #FFFFFF !important;
  border-color: #CBD5E1 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
}

body.light-theme .webmail-card-header,
body.light-theme .wa-card-header,
body.light-theme .deepl-card-header {
  background: #F8FAFC !important;
  border-bottom-color: #E2E8F0 !important;
}

body.light-theme .webmail-field-input,
body.light-theme .wa-field-input,
body.light-theme .deepl-field-input {
  background: #F8FAFC !important;
  border-color: #CBD5E1 !important;
  color: #0F172A !important;
}

body.light-theme .webmail-config-card h4,
body.light-theme .wa-config-card h4,
body.light-theme .deepl-config-card h4 {
  color: #0F172A !important;
}

body.light-theme .deepl-target-item {
  background: #F8FAFC !important;
  border-color: #E2E8F0 !important;
  color: #0F172A !important;
}

body.light-theme .deepl-cache-stat-box {
  background: #F8FAFC !important;
  border-color: #E2E8F0 !important;
}
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(56, 189, 248, 0.35);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 480px;
  animation: slideInUpToast 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.deepl-toast.fade-out {
  opacity: 0;
  transform: translateY(15px);
}

/* ==============================================================================
   10.13 ADMIN PERFORMANCE METRICS EXECUTIVE DASHBOARD (#adminTab-analytics)
   ============================================================================== */

.metrics-header-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 14px;
}

.metrics-timeframe-box {
  background: #0B192C;
  border: 1px solid #1E3E62;
  padding: 4px 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.metrics-timeframe-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: #64748B;
  letter-spacing: 0.5px;
}

.metrics-timeframe-select {
  background: #081220;
  border: 1px solid #1E3E62;
  color: #F8FAFC;
  font-size: 0.80rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  outline: none;
}

.metrics-scorecard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.metrics-kpi-card {
  background: #0B192C;
  border: 1px solid #1E3E62;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.metrics-kpi-card:hover {
  transform: translateY(-2px);
  border-color: #38BDF8;
}

.metrics-kpi-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.metrics-kpi-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metrics-kpi-val {
  font-size: 1.65rem;
  font-weight: 800;
  color: #F8FAFC;
  line-height: 1.2;
  margin: 4px 0;
}

.metrics-kpi-sub {
  font-size: 0.74rem;
  color: #64748B;
  line-height: 1.3;
}

.metrics-charts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

@media (max-width: 1024px) {
  .metrics-charts-grid {
    grid-template-columns: 1fr;
  }
}

.metrics-chart-card {
  background: #0B192C;
  border: 1px solid #1E3E62;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
}

.metrics-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.metrics-chart-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #F8FAFC;
  margin: 0 0 2px 0;
}

.metrics-chart-sub {
  font-size: 0.76rem;
  color: #64748B;
  margin: 0;
}

.metrics-chart-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.metrics-preset-pill {
  background: #081220;
  border: 1px solid #1E3E62;
  color: #94A3B8;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

.metrics-preset-pill:hover,
.metrics-preset-pill.active {
  background: #1E3E62;
  color: #F5D061;
  border-color: #F5D061;
}

.metrics-stepper-btn {
  background: #081220;
  border: 1px solid #1E3E62;
  color: #94A3B8;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

.metrics-stepper-btn:hover {
  background: #1E3E62;
  color: #F8FAFC;
  border-color: #38BDF8;
}

.metrics-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(30, 62, 98, 0.6);
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 0.72rem;
  color: #94A3B8;
  font-weight: 700;
}

.metrics-svg-container {
  height: 250px;
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  background: rgba(8, 18, 32, 0.5);
  border-radius: 8px;
  border: 1px solid rgba(30, 62, 98, 0.4);
}

.metrics-chart-tooltip {
  position: absolute;
  pointer-events: none;
  background: #081220;
  border: 1px solid #38BDF8;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  color: #F8FAFC;
  z-index: 100;
  transform: translate(-50%, -100%);
  margin-top: -10px;
  opacity: 0;
  transition: opacity 0.15s ease;
  white-space: nowrap;
}

.donut-legend-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  margin-top: 14px;
}

.donut-legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.5);
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid #1E3E62;
  font-size: 0.73rem;
  color: #CBD5E1;
}

.metrics-dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 22px;
}

@media (max-width: 900px) {
  .metrics-dual-grid {
    grid-template-columns: 1fr;
  }
}

.district-filter-pills {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.district-pill-btn {
  background: rgba(30, 62, 98, 0.4);
  border: 1px solid #1E3E62;
  color: #94A3B8;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.district-pill-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  color: #F8FAFC;
}

.district-pill-btn.active {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38BDF8;
  color: #38BDF8;
  font-weight: 800;
}

.ura-badge {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.ura-cat-b1 {
  background: rgba(56, 189, 248, 0.15);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.ura-cat-b2 {
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.ura-cat-office {
  background: rgba(167, 139, 250, 0.15);
  color: #A78BFA;
  border: 1px solid rgba(167, 139, 250, 0.3);
}

.ura-cat-retail {
  background: rgba(236, 72, 153, 0.15);
  color: #EC4899;
  border: 1px solid rgba(236, 72, 153, 0.3);
}

.ura-cat-food {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.district-bar-row {
  margin-bottom: 10px;
}

.district-bar-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  font-size: 0.78rem;
  font-weight: 700;
}

.district-bar-track {
  height: 10px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid #1E3E62;
  border-radius: 5px;
  overflow: hidden;
}

.district-bar-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.listing-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@media (max-width: 600px) {
  .listing-type-grid {
    grid-template-columns: 1fr;
  }
}

.listing-type-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid #1E3E62;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}

.social-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

@media (max-width: 800px) {
  .social-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.social-dist-bar {
  height: 14px;
  border-radius: 7px;
  overflow: hidden;
  display: flex;
  width: 100%;
  margin-bottom: 16px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid #1E3E62;
}

.social-dist-segment {
  height: 100%;
  transition: width 0.4s ease;
}

.metrics-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.80rem;
}

.metrics-table th {
  background: #081220;
  color: #94A3B8;
  font-weight: 800;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #1E3E62;
}

.metrics-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(30, 62, 98, 0.5);
  color: #E2E8F0;
  vertical-align: middle;
}

.metrics-table tr:hover td {
  background: rgba(30, 62, 98, 0.25);
}

.agency-licence-code {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid #1E3E62;
  color: #F5D061;
}

.weekly-report-box {
  background: #0B192C;
  border: 1px solid #1E3E62;
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 22px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.weekly-report-narrative {
  background: rgba(8, 18, 32, 0.7);
  border: 1px solid #1E3E62;
  border-radius: 10px;
  padding: 20px;
  font-size: 0.82rem;
  line-height: 1.65;
  color: #CBD5E1;
}

.weekly-report-h4 {
  font-size: 0.88rem;
  font-weight: 800;
  color: #F5D061;
  margin: 18px 0 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(245, 208, 97, 0.2);
  padding-bottom: 4px;
}

.weekly-report-h4:first-child {
  margin-top: 0;
}

/* Print Stylesheet for Executive Weekly Report */
@media print {
  body * {
    visibility: hidden !important;
  }
  #adminModal,
  #adminModal .modal-card,
  #adminTab-analytics,
  #adminTab-analytics * {
    visibility: visible !important;
  }
  #adminModal {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: auto !important;
    background: #FFFFFF !important;
    color: #0F172A !important;
    display: block !important;
    overflow: visible !important;
  }
  #adminModal .modal-card {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    background: #FFFFFF !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
  }
  .admin-main-tab-bar,
  .modal-header,
  .no-print,
  button,
  .metrics-chart-actions,
  .metrics-timeframe-box,
  .metrics-header-toolbar button {
    display: none !important;
  }
  .weekly-report-box,
  .weekly-report-narrative,
  .metrics-kpi-card,
  .metrics-chart-card {
    background: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
    color: #0F172A !important;
    box-shadow: none !important;
    page-break-inside: avoid;
  }
  .weekly-report-h4 {
    color: #012B40 !important;
    border-bottom: 1px solid #94A3B8 !important;
  }
  .metrics-kpi-val,
  .metrics-chart-title,
  h3, h4 {
    color: #0F172A !important;
  }
  .metrics-table th {
    background: #F1F5F9 !important;
    color: #0F172A !important;
    border-bottom: 2px solid #94A3B8 !important;
  }
  .metrics-table td {
    color: #0F172A !important;
    border-bottom: 1px solid #E2E8F0 !important;
  }
}

/* ==============================================================================
   10.14 ADMIN PUBLISHING: CREDITS & SUBSCRIPTIONS SUB-TAB (#subtab-cms-credits)
   ============================================================================== */

.admin-credit-packs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
  transition: all 0.2s ease;
}

.admin-credit-packs-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.admin-credit-packs-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.admin-credit-packs-grid.cols-auto {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

@media (max-width: 960px) {
  .admin-credit-packs-grid.cols-2,
  .admin-credit-packs-grid.cols-3 {
    grid-template-columns: 1fr;
  }
}

.admin-credits-status-banner {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10B981;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 10px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: fadeIn 0.2s ease;
}

.admin-credit-pack-card,
.admin-plan-card {
  background: #0B192C;
  border: 1px solid #1E3E62;
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  user-select: none;
}

.admin-credit-pack-card[draggable="true"],
.admin-plan-card[draggable="true"] {
  cursor: grab;
}

.admin-credit-pack-card:active,
.admin-plan-card:active {
  cursor: grabbing;
}

.admin-credit-pack-card:hover,
.admin-plan-card:hover {
  transform: translateY(-3px);
  border-color: #38BDF8;
}

.admin-credit-pack-card.highlighted,
.admin-plan-card.highlighted {
  border-color: #F5D061;
  box-shadow: 0 0 20px rgba(245, 208, 97, 0.25), 0 4px 16px rgba(0, 0, 0, 0.35);
}

.admin-credit-pack-card.dragging,
.admin-plan-card.dragging {
  opacity: 0.40;
  transform: scale(0.97);
  border: 2px dashed #F5D061 !important;
  box-shadow: 0 8px 24px rgba(245, 208, 97, 0.2);
}

.admin-credit-pack-card.drag-over,
.admin-plan-card.drag-over {
  border-color: #38BDF8 !important;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.45);
  transform: translateY(-5px);
}

.admin-pack-id-chip {
  font-family: 'SF Mono', Consolas, Monaco, monospace;
  font-size: 0.70rem;
  color: #94A3B8;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-block;
}

.admin-pack-price-gold {
  font-size: 1.50rem;
  font-weight: 900;
  color: #F5D061;
  line-height: 1.1;
}

.admin-pack-gst-subtext {
  font-size: 0.74rem;
  color: #94A3B8;
  font-weight: 600;
  margin-left: 6px;
}

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

.admin-plan-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #F8FAFC;
  margin: 0;
}

.admin-plan-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 9999px;
  white-space: nowrap;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.admin-plan-badge.gold {
  background: linear-gradient(135deg, #F5D061, #D4AF37);
  color: #080E21;
}

.admin-plan-badge.green {
  background: rgba(34, 197, 94, 0.18);
  color: #22C55E;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.admin-plan-badge.purple {
  background: rgba(168, 85, 247, 0.18);
  color: #C084FC;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.admin-plan-price-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(30, 62, 98, 0.6);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 14px;
}

.admin-plan-price {
  font-size: 1.50rem;
  font-weight: 900;
  color: #F8FAFC;
  line-height: 1.1;
}

.admin-plan-quota-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

.admin-plan-quota {
  font-size: 0.85rem;
  font-weight: 800;
  color: #F5D061;
}

.admin-plan-rate {
  font-size: 0.72rem;
  color: #94A3B8;
  font-weight: 700;
}

.admin-plan-validity {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: #38BDF8;
  font-weight: 700;
  margin-top: 6px;
}

.admin-plan-benefits-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  font-size: 0.78rem;
  color: #CBD5E1;
  line-height: 1.45;
}

.admin-plan-benefits-list li {
  margin-bottom: 6px;
  display: flex;
  align-items: flex-start;
  gap: 7px;
}

.admin-plan-benefits-list li i {
  color: #10B981;
  font-size: 0.75rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.admin-plan-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid #1E3E62;
  margin-top: auto;
  gap: 10px;
}

.admin-highlight-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #94A3B8;
  cursor: pointer;
}

.admin-plan-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Benefits Preview Section */
.admin-benefits-section {
  background: #0B192C;
  border: 1px solid #1E3E62;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  margin-bottom: 24px;
}

.admin-benefits-preview-wrap {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #081220;
  border-radius: 8px;
  padding: 16px;
  max-height: 420px;
  overflow-y: auto;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #CBD5E1;
}

.admin-benefits-preview-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(30, 62, 98, 0.4);
  transition: background 0.15s ease;
}

.admin-benefits-preview-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.admin-benefits-preview-item:last-child {
  border-bottom: none;
}

.admin-benefits-preview-item i {
  color: #F5D061;
  font-size: 0.95rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.admin-benefits-preview-item .benefit-title {
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.88rem;
  display: block;
  margin-bottom: 2px;
}

.admin-benefits-preview-item .benefit-desc {
  color: #94A3B8;
  font-size: 0.78rem;
  line-height: 1.45;
  display: block;
}

/* Modal Form Styles */
.admin-credit-modal-card {
  max-width: 600px;
  width: 92%;
  border-radius: var(--radius-lg, 20px);
  padding: 24px;
  position: relative;
  margin: 40px auto;
  max-height: 90vh;
  overflow-y: auto;
}

.admin-credit-modal-card .admin-modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #F8FAFC;
  margin: 0 0 4px 0;
}

.admin-credit-modal-card .admin-modal-subtitle {
  font-size: 0.78rem;
  color: #94A3B8;
  margin: 0 0 18px 0;
}

.admin-credit-modal-card .admin-form-group {
  margin-bottom: 14px;
}

.admin-credit-modal-card .admin-form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  color: #CBD5E1;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 5px;
}

.admin-credit-modal-card .admin-form-input,
.admin-credit-modal-card .admin-form-textarea {
  width: 100%;
  padding: 9px 12px;
  border-radius: 6px;
  border: 1px solid #334155;
  background: #0F172A;
  color: #F8FAFC;
  font-size: 0.82rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
  box-sizing: border-box;
}

.admin-credit-modal-card .admin-form-input:focus,
.admin-credit-modal-card .admin-form-textarea:focus {
  border-color: #38BDF8;
  background: #0F172A;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.admin-credit-modal-card .admin-form-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

.admin-credit-modal-card .admin-form-help {
  font-size: 0.70rem;
  color: #94A3B8;
  margin-top: 4px;
}

.admin-credit-modal-card .admin-modal-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid #1E3E62;
}

/* Light Theme overrides for .admin-credit-modal-card */
body.light-theme .admin-credit-modal-card {
  background: #FFFFFF !important;
  color: #0F172A !important;
  border-color: #E2E8F0 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}
body.light-theme .admin-credit-modal-card .admin-modal-title {
  color: #0F172A !important;
}
body.light-theme .admin-credit-modal-card .admin-modal-subtitle {
  color: #64748B !important;
}
body.light-theme .admin-credit-modal-card .admin-form-label {
  color: #334155 !important;
}
body.light-theme .admin-credit-modal-card .admin-form-input,
body.light-theme .admin-credit-modal-card .admin-form-textarea {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  border-color: #CBD5E1 !important;
  color: #020617 !important;
}
body.light-theme .admin-credit-modal-card .admin-modal-footer {
  border-top-color: #E2E8F0 !important;
}

/* ==============================================================================
   10.15 ADMIN CONTROL: DIRECTORIES & AI PROMPT SUITE (#subtab-cms-directories)
   ============================================================================== */

.directories-master-header {
  display: block !important;
  width: 100% !important;
  background: linear-gradient(180deg, rgba(217, 119, 6, 0.04) 0%, rgba(15, 23, 42, 0.4) 100%);
  border: 1px solid rgba(217, 119, 6, 0.25);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  box-sizing: border-box !important;
}

.directories-header-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.directories-badge-amber {
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.directories-badge-emerald {
  background: rgba(34, 197, 94, 0.15);
  color: #22C55E;
  border: 1px solid rgba(34, 197, 94, 0.35);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.directories-meta-pill-grid {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 12px !important;
  margin-top: 16px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

@media (max-width: 1350px) {
  .directories-meta-pill-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .directories-meta-pill-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 480px) {
  .directories-meta-pill-grid {
    grid-template-columns: 1fr !important;
  }
}

.directories-meta-pill {
  background: #0B192C;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.directories-meta-label {
  font-size: 0.68rem;
  font-weight: 800;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.directories-meta-val {
  font-size: 0.85rem;
  font-weight: 700;
  color: #F8FAFC;
}

/* Directories LLM Singapore Scope Banner */
.directories-ai-scope-banner {
  margin-top: 14px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.08) 0%, rgba(14, 165, 233, 0.04) 100%);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-left: 4px solid #38BDF8;
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

body.light-theme .directories-ai-scope-banner {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.08) 0%, rgba(240, 249, 255, 0.95) 100%);
  border: 1px solid #7DD3FC;
  border-left: 4px solid #0284C7;
}

/* Homepage LLM Query Feedback Bar */
.llm-query-feedback {
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: #CBD5E1;
  animation: fadeIn 0.2s ease-in-out;
}

body.light-theme .llm-query-feedback {
  background: #FFFFFF;
  border: 1px solid #93C5FD;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  color: #1E293B;
}

.llm-feedback-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(56, 189, 248, 0.15);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
}

body.light-theme .llm-feedback-chip {
  background: #E0F2FE;
  color: #0369A1;
  border: 1px solid #BAE6FD;
}

.llm-feedback-chip.chip-gold {
  background: rgba(245, 208, 97, 0.15);
  color: #F5D061;
  border-color: rgba(245, 208, 97, 0.35);
}

body.light-theme .llm-feedback-chip.chip-gold {
  background: #FEF9C3;
  color: #854D0E;
  border-color: #FDE047;
}

.llm-feedback-chip.chip-emerald {
  background: rgba(34, 197, 94, 0.15);
  color: #22C55E;
  border-color: rgba(34, 197, 94, 0.35);
}

body.light-theme .llm-feedback-chip.chip-emerald {
  background: #DCFCE7;
  color: #15803D;
  border-color: #86EFAC;
}

.directories-datasets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 20px;
}

.directory-dataset-card {
  background: #0B192C;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.directory-dataset-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
}

.directory-preview-wrap {
  background: #071220;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 16px;
  height: 440px;
  max-height: 480px;
  overflow-y: auto;
  font-family: 'SF Mono', 'Courier New', monospace;
  font-size: 0.78rem;
  color: #CBD5E1;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 16px 0;
}

.directory-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.directory-modal-card {
  max-width: 920px;
  width: 95vw;
  border-radius: var(--radius-lg, 20px);
  padding: 24px;
  position: relative;
  margin: 30px auto;
  max-height: 92vh;
  overflow-y: auto;
}

.directory-prompt-box {
  background: rgba(1, 26, 40, 0.6);
  border: 1px solid rgba(245, 208, 97, 0.25);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}

.directory-prompt-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.directory-dark-textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #071220;
  color: #E2E8F0;
  font-family: 'SF Mono', 'Courier New', monospace;
  font-size: 0.80rem;
  line-height: 1.6;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s ease;
  resize: vertical;
}

.directory-dark-textarea:focus {
  border-color: #38BDF8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}

.directory-model-select {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #071220;
  color: #F8FAFC;
  font-size: 0.78rem;
  font-weight: 600;
  outline: none;
}

.directory-model-select:focus {
  border-color: #F5D061;
}

.directory-counter-pill {
  font-family: 'SF Mono', monospace;
  font-size: 0.72rem;
  color: #94A3B8;
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==============================================================================
   10.16 ADMIN PUBLISHING: ABOUT PAGE CONTENT SUB-TAB (#subtab-cms-about)
   ============================================================================== */

.admin-about-card {
  background: #0B192C;
  border: 1px solid #1E3E62;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  color: #F8FAFC;
}

.admin-about-preview-wrap {
  background: #0B192C;
  border: 1px solid #1E3E62;
  border-radius: 8px;
  padding: 18px;
  max-height: 420px;
  overflow-y: auto;
  margin-bottom: 14px;
  color: #E2E8F0;
  font-size: 0.85rem;
  line-height: 1.6;
}

.admin-about-preview-header {
  color: #F5D061;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
}

.admin-about-preview-body {
  color: #CBD5E1;
}

.admin-about-preview-body h4 {
  color: #F5D061;
  margin-top: 0;
}

.admin-about-preview-body p {
  color: #E2E8F0;
  line-height: 1.6;
}

.admin-about-preview-body section {
  background: rgba(1, 26, 40, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}

.admin-about-action-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid #1E3E62;
}

/* ==============================================================================
   10.17 ADMIN PUBLISHING: FAQ DUAL-AUDIENCE ACCORDION SUB-TAB (#subtab-cms-faqs)
   ============================================================================== */

.admin-faq-toggle-bar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0B192C;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 20px;
}

.admin-faq-toggle-btn {
  height: 29px;
  padding: 0 12px;
  border-radius: 6px;
  background: var(--navy-input);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.73rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.admin-faq-toggle-btn:hover {
  color: var(--text-main);
  border-color: var(--border-hover);
}

.admin-faq-toggle-btn.active {
  background: var(--primary);
  color: #080E21;
  border-color: #0284C7;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0, 163, 224, 0.3);
}

.admin-faq-toggle-btn span {
  color: inherit !important;
  font-size: inherit;
  font-weight: inherit;
}

body.light-theme .admin-faq-toggle-btn {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: #475569;
}

body.light-theme .admin-faq-toggle-btn.active {
  background: #0284C7;
  color: #FFFFFF;
  border-color: #0369A1;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
}

.admin-faq-card {
  background: #0B192C;
  border: 1px solid #1E3E62;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  color: #F8FAFC;
}

.admin-faq-preview-wrap {
  background: #0B192C;
  border: 1px solid #1E3E62;
  border-radius: 8px;
  padding: 18px;
  max-height: 460px;
  overflow-y: auto;
  margin-bottom: 14px;
}

.admin-faq-preview-header {
  color: #F5D061;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
}

.faq-item {
  background: rgba(1, 26, 40, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 10px;
  transition: all 0.2s ease;
  overflow: hidden;
}

.faq-item[open] {
  border-color: rgba(245, 208, 97, 0.35);
  background: rgba(1, 26, 40, 0.9);
}

.faq-question {
  padding: 14px 16px;
  font-weight: 700;
  font-size: 0.88rem;
  color: #F8FAFC;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.75rem;
  color: #F5D061;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 16px 16px 16px;
  font-size: 0.82rem;
  color: #CBD5E1;
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 4px;
  padding-top: 12px;
}

.faq-category-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
}

.faq-category-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text-main, #FFFFFF);
  margin: 0;
  letter-spacing: -0.2px;
}

/* ==============================================================================
   10.18 ADMIN PUBLISHING: TERMS CONTENT SUB-TAB (#subtab-cms-terms)
   ============================================================================== */

.admin-terms-card {
  background: #0B192C;
  border: 1px solid #1E3E62;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  color: #F8FAFC;
}

.admin-terms-preview-wrap {
  background: #0B192C;
  border: 1px solid #1E3E62;
  border-radius: 8px;
  padding: 18px;
  max-height: 420px;
  overflow-y: auto;
  margin-bottom: 14px;
}

.admin-terms-preview-header {
  color: #F5D061;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
}

.admin-terms-preview-body {
  font-size: 0.85rem;
  color: #CBD5E1;
  line-height: 1.6;
}

.admin-terms-action-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid #1E3E62;
}

/* ==============================================================================
   10.19 ADMIN PUBLISHING: PRIVACY CONTENT SUB-TAB (#subtab-cms-privacy)
   ============================================================================== */

.admin-privacy-card {
  background: #0B192C;
  border: 1px solid #1E3E62;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  color: #F8FAFC;
}

.admin-privacy-preview-wrap {
  background: #0B192C;
  border: 1px solid #1E3E62;
  border-radius: 8px;
  padding: 18px;
  max-height: 420px;
  overflow-y: auto;
  margin-bottom: 14px;
}

.admin-privacy-preview-header {
  color: #F5D061;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
}

.admin-privacy-preview-body {
  font-size: 0.85rem;
  color: #CBD5E1;
  line-height: 1.6;
}

.admin-privacy-action-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid #1E3E62;
}

/* Light Theme overrides for CMS cards */
body.light-theme .admin-about-card,
body.light-theme .admin-faq-card,
body.light-theme .admin-terms-card,
body.light-theme .admin-privacy-card {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
  color: #0F172A !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
}

body.light-theme .admin-about-card h3,
body.light-theme .admin-faq-card h3,
body.light-theme .admin-terms-card h3,
body.light-theme .admin-privacy-card h3 {
  color: #0F172A !important;
}

body.light-theme .admin-about-card p,
body.light-theme .admin-faq-card p,
body.light-theme .admin-terms-card p,
body.light-theme .admin-privacy-card p {
  color: #64748B !important;
}

body.light-theme .admin-about-action-footer,
body.light-theme .admin-terms-action-footer,
body.light-theme .admin-privacy-action-footer {
  border-top-color: #E2E8F0 !important;
}

/* ==============================================================================
   10.20 ADMIN MARKETING: ANNOUNCEMENTS SUB-TAB (#subtab-marketing-announcement)
   ============================================================================== */

/* Broadcast Gateway Master Card */
.admin-bcast-gateway-card {
  background: #0B192C;
  border: 1px solid #1E3E62;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

body.light-theme .admin-bcast-gateway-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.admin-bcast-gateway-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-bcast-gateway-title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-bcast-gateway-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #F8FAFC;
  display: flex;
  align-items: center;
}

body.light-theme .admin-bcast-gateway-title {
  color: #0F172A;
}

.admin-bcast-schedule-hint {
  font-size: 0.78rem;
  color: #94A3B8;
  font-weight: 500;
}

body.light-theme .admin-bcast-schedule-hint {
  color: #64748B;
}

.admin-bcast-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  transition: all 0.25s ease;
}

.admin-bcast-status-badge.status-inactive {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.admin-bcast-status-badge.status-active {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.admin-bcast-gateway-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.light-theme .admin-bcast-gateway-toolbar {
  border-top: 1px solid #E2E8F0;
}

.admin-bcast-gateway-note {
  font-size: 0.78rem;
  color: #94A3B8;
  display: flex;
  align-items: center;
}

body.light-theme .admin-bcast-gateway-note {
  color: #64748B;
}

/* 2-Column Workspace Grid */
.admin-bcast-workspace-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
  align-items: start;
}

/* Column 1: Composer Card */
.admin-bcast-composer-card {
  background: #0B192C;
  border: 1px solid #1E3E62;
  border-radius: 10px;
  padding: 18px;
}

body.light-theme .admin-bcast-composer-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.admin-bcast-card-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #F8FAFC;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
}

body.light-theme .admin-bcast-card-title {
  color: #0F172A;
}

.admin-bcast-date-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 480px) {
  .admin-bcast-date-row {
    grid-template-columns: 1fr;
  }
}

.admin-bcast-checkbox-wrap {
  margin: 14px 0 18px 0;
  padding: 10px 12px;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
}

body.light-theme .admin-bcast-checkbox-wrap {
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
}

.admin-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #CBD5E1;
  cursor: pointer;
  user-select: none;
}

body.light-theme .admin-checkbox-label {
  color: #334155;
}

.admin-checkbox-label input[type="checkbox"] {
  accent-color: #D4AF37;
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.admin-bcast-composer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

/* Column 2: Docked Preview & Template Stack */
.admin-bcast-preview-card-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-bcast-preview-container {
  background: #0B192C;
  border: 1px solid #1E3E62;
  border-radius: 10px;
  padding: 18px;
}

body.light-theme .admin-bcast-preview-container {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.admin-bcast-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.preview-tag-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: #F5D061;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.preview-status-pill {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.15);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

/* Real-Time Preview Box */
.admin-bcast-preview-box {
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.25s ease;
  font-size: 0.84rem;
}

/* Preview Category Color Schemes */
.admin-bcast-preview-box.category-warning {
  border: 1px solid #F59E0B;
  background: rgba(245, 158, 11, 0.15);
  color: #F8FAFC;
}
.admin-bcast-preview-box.category-warning .preview-banner-icon {
  color: #F59E0B;
}

.admin-bcast-preview-box.category-danger {
  border: 1px solid #EF4444;
  background: rgba(239, 68, 68, 0.15);
  color: #F8FAFC;
}
.admin-bcast-preview-box.category-danger .preview-banner-icon {
  color: #EF4444;
}

.admin-bcast-preview-box.category-info {
  border: 1px solid #38BDF8;
  background: rgba(56, 189, 248, 0.15);
  color: #F8FAFC;
}
.admin-bcast-preview-box.category-info .preview-banner-icon {
  color: #38BDF8;
}

.admin-bcast-preview-box.category-success {
  border: 1px solid #10B981;
  background: rgba(16, 185, 129, 0.15);
  color: #F8FAFC;
}
.admin-bcast-preview-box.category-success .preview-banner-icon {
  color: #10B981;
}

body.light-theme .admin-bcast-preview-box {
  color: #0F172A;
}

.preview-banner-content {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
}

.preview-banner-icon {
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.preview-banner-text {
  font-size: 0.82rem;
  line-height: 1.45;
}

.preview-banner-text strong {
  margin-right: 4px;
}

.preview-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.preview-banner-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  color: #E2E8F0;
  letter-spacing: 0.3px;
}

body.light-theme .preview-banner-badge {
  background: rgba(0, 0, 0, 0.08);
  color: #334155;
}

.preview-banner-close {
  background: none;
  border: none;
  color: #94A3B8;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.15s ease;
}

.preview-banner-close:hover {
  color: #F8FAFC;
}

body.light-theme .preview-banner-close:hover {
  color: #0F172A;
}

/* Preset Template Library Card */
.admin-bcast-templates-card {
  background: #0B192C;
  border: 1px solid #1E3E62;
  border-radius: 10px;
  padding: 18px;
}

body.light-theme .admin-bcast-templates-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.admin-bcast-templates-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.admin-bcast-template-btns {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

/* Public Portal Top Banner Themes */
.announcement-banner.banner-theme-warning {
  border-bottom: 1px solid rgba(245, 158, 11, 0.5);
  background: linear-gradient(90deg, #2A1C08 0%, #150F05 100%);
}
.announcement-banner.banner-theme-warning .announcement-icon {
  color: #F59E0B;
}

.announcement-banner.banner-theme-danger {
  border-bottom: 1px solid rgba(239, 68, 68, 0.5);
  background: linear-gradient(90deg, #350F14 0%, #1B0609 100%);
}
.announcement-banner.banner-theme-danger .announcement-icon {
  color: #EF4444;
}

.announcement-banner.banner-theme-info {
  border-bottom: 1px solid rgba(56, 189, 248, 0.5);
  background: linear-gradient(90deg, #09263A 0%, #04141F 100%);
}
.announcement-banner.banner-theme-info .announcement-icon {
  color: #38BDF8;
}

.announcement-banner.banner-theme-success {
  border-bottom: 1px solid rgba(16, 185, 129, 0.5);
  background: linear-gradient(90deg, #072B1F 0%, #03160F 100%);
}
.announcement-banner.banner-theme-success .announcement-icon {
  color: #10B981;
}

body.light-theme .announcement-banner.banner-theme-warning {
  background: linear-gradient(90deg, #FEF3C7 0%, #FDE68A 100%);
  border-bottom: 1px solid rgba(217, 119, 6, 0.4);
  color: #78350F;
}
body.light-theme .announcement-banner.banner-theme-danger {
  background: linear-gradient(90deg, #FEE2E2 0%, #FECACA 100%);
  border-bottom: 1px solid rgba(220, 38, 38, 0.4);
  color: #7F1D1D;
}
body.light-theme .announcement-banner.banner-theme-info {
  background: linear-gradient(90deg, #E0F2FE 0%, #BAE6FD 100%);
  border-bottom: 1px solid rgba(2, 132, 199, 0.4);
  color: #0C4A6E;
}
body.light-theme .announcement-banner.banner-theme-success {
  background: linear-gradient(90deg, #D1FAE5 0%, #A7F3D0 100%);
  border-bottom: 1px solid rgba(5, 150, 105, 0.4);
  color: #064E3B;
}

/* ==============================================================================
   10.21 ADMIN MARKETING: PROMO CODES SUB-TAB (#subtab-marketing-promo-code)
   ============================================================================== */

/* 2 Master Channel Availability Gateways */
.admin-promo-gateways-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.admin-promo-channel-card {
  background: #0B192C;
  border: 1px solid #1E3E62;
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease;
}

body.light-theme .admin-promo-channel-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.channel-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.channel-card-info {
  flex: 1;
}

.channel-card-title {
  font-size: 0.94rem;
  font-weight: 800;
  color: #F8FAFC;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

body.light-theme .channel-card-title {
  color: #0F172A;
}

.channel-card-desc {
  font-size: 0.78rem;
  color: #94A3B8;
  margin: 0;
  line-height: 1.4;
}

body.light-theme .channel-card-desc {
  color: #64748B;
}

.channel-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

.channel-status-badge.status-active {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.channel-status-badge.status-inactive {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.channel-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.light-theme .channel-card-bottom {
  border-top: 1px solid #E2E8F0;
}

.channel-active-hint {
  font-size: 0.76rem;
  color: #94A3B8;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

body.light-theme .channel-active-hint {
  color: #64748B;
}

/* Promo Codes Table Card */
.admin-promo-table-card {
  background: #0B192C;
  border: 1px solid #1E3E62;
  border-radius: 10px;
  padding: 18px;
}

body.light-theme .admin-promo-table-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.admin-promo-filter-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.promo-filter-btn-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.promo-filter-btn {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid #1E3E62;
  color: #94A3B8;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.promo-filter-btn:hover {
  color: #F8FAFC;
  border-color: #38BDF8;
}

.promo-filter-btn.active {
  background: linear-gradient(135deg, #F5D061, #D4AF37);
  color: #080E21;
  border-color: #F5D061;
}

body.light-theme .promo-filter-btn {
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  color: #64748B;
}

body.light-theme .promo-filter-btn:hover {
  color: #0F172A;
  border-color: #94A3B8;
}

body.light-theme .promo-filter-btn.active {
  background: #0B192C;
  color: #FFFFFF;
  border-color: #0B192C;
}

.promo-rule-notice {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.78rem;
  color: #BAE6FD;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  line-height: 1.45;
}

body.light-theme .promo-rule-notice {
  background: #EFF6FF;
  border-color: #BFDBFE;
  color: #1E40AF;
}

.promo-code-pill {
  font-family: 'SF Mono', Consolas, monospace;
  font-weight: 800;
  font-size: 0.88rem;
  color: #F5D061;
  letter-spacing: 0.5px;
}

body.light-theme .promo-code-pill {
  color: #B45309;
}

/* Light Theme overrides for #adminPromoCodeModal */
body.light-theme .admin-promo-modal-card {
  background: linear-gradient(180deg, #FFFFFF 0%, #EDF8FD 100%) !important;
  color: #0F172A !important;
  border-color: #6DAED8 !important;
  box-shadow: 0 16px 36px rgba(11, 34, 56, 0.14) !important;
}

body.light-theme .admin-promo-modal-card .admin-modal-title {
  color: #0F172A !important;
}

body.light-theme .admin-promo-modal-card .admin-modal-subtitle {
  color: #64748B !important;
}

body.light-theme .admin-promo-modal-card .form-label-admin {
  color: #334155 !important;
}

body.light-theme .admin-promo-modal-card .form-control-admin {
  background: #F0F7FC !important;
  border-color: #6DAED8 !important;
  color: #0F172A !important;
}

/* ==============================================================================
   10.22 ADMIN MARKETING: REFERRER CODE SUB-TAB (#subtab-marketing-referrer-code)
   ============================================================================== */

/* Referrer Master Settings Card */
.admin-referrer-card {
  background: #0B192C;
  border: 1px solid #1E3E62;
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

body.light-theme .admin-referrer-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.admin-referrer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.referrer-header-title {
  font-size: 0.96rem;
  font-weight: 800;
  color: #F8FAFC;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

body.light-theme .referrer-header-title {
  color: #0F172A;
}

.referrer-header-desc {
  font-size: 0.78rem;
  color: #94A3B8;
  margin: 0;
  line-height: 1.4;
}

body.light-theme .referrer-header-desc {
  color: #64748B;
}

.referrer-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

.referrer-status-badge.status-active {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.referrer-status-badge.status-inactive {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.admin-referrer-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 14px;
}

body.light-theme .admin-referrer-toolbar {
  border-color: #E2E8F0;
}

.referrer-credits-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.referrer-credits-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #CBD5E1;
}

body.light-theme .referrer-credits-label {
  color: #334155;
}

.referrer-credits-input-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.referrer-credits-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: #F5D061;
  background: rgba(245, 208, 97, 0.15);
  border: 1px solid rgba(245, 208, 97, 0.3);
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

body.light-theme .referrer-credits-badge {
  color: #B45309;
  background: #FEF3C7;
  border-color: #FDE68A;
}

.referrer-rule-note {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.78rem;
  color: #BAE6FD;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.45;
}

body.light-theme .referrer-rule-note {
  background: #EFF6FF;
  border-color: #BFDBFE;
  color: #1E40AF;
}

/* Referral Attribution Log Table Card */
.admin-referrer-table-card {
  background: #0B192C;
  border: 1px solid #1E3E62;
  border-radius: 10px;
  padding: 18px;
}

body.light-theme .admin-referrer-table-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.referrer-table-header-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.referrer-table-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #F8FAFC;
  display: flex;
  align-items: center;
  gap: 8px;
}

body.light-theme .referrer-table-title {
  color: #0F172A;
}

.referrer-cea-pill {
  font-family: 'SF Mono', Consolas, monospace;
  font-weight: 700;
  font-size: 0.76rem;
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.4px;
}

body.light-theme .referrer-cea-pill {
  color: #0284C7;
  background: #E0F2FE;
  border-color: #BAE6FD;
}

.referrer-credits-pill {
  font-weight: 800;
  font-size: 0.82rem;
  color: #F5D061;
  background: rgba(245, 208, 97, 0.15);
  border: 1px solid rgba(245, 208, 97, 0.3);
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

body.light-theme .referrer-credits-pill {
  color: #B45309;
  background: #FEF3C7;
  border-color: #FDE68A;
}

.badge-reward-disbursed {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-reward-pending {
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ==============================================================================
   10.23 ADMIN MARKETING: LIVE PREVIEW SIMULATOR SUB-TAB (#subtab-marketing-live-preview)
   ============================================================================== */

/* Mode Selection Controls Box */
.admin-sim-mode-card {
  background: #0B192C;
  border: 1px solid #1E3E62;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

body.light-theme .admin-sim-mode-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.admin-sim-mode-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.admin-sim-mode-title {
  font-size: 0.94rem;
  font-weight: 800;
  color: #F8FAFC;
  display: flex;
  align-items: center;
  gap: 8px;
}

body.light-theme .admin-sim-mode-title {
  color: #0F172A;
}

.admin-sim-notice-pill {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 14px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10B981;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

body.light-theme .admin-sim-notice-pill {
  background: #DCFCE7;
  border-color: #86EFAC;
  color: #166534;
}

.admin-sim-radio-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.admin-sim-radio-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.admin-sim-radio-label:hover {
  border-color: #38BDF8;
}

body.light-theme .admin-sim-radio-label {
  background: #FFFFFF;
  border-color: #CBD5E1;
}

body.light-theme .admin-sim-radio-label:hover {
  border-color: #0284C7;
}

.admin-sim-radio-label input[type="radio"] {
  margin-top: 3px;
  accent-color: #D4AF37;
  cursor: pointer;
}

.admin-sim-radio-text strong {
  display: block;
  font-size: 0.84rem;
  color: #F8FAFC;
}

body.light-theme .admin-sim-radio-text strong {
  color: #0F172A;
}

.admin-sim-radio-text small {
  display: block;
  font-size: 0.74rem;
  color: #94A3B8;
  margin-top: 2px;
}

body.light-theme .admin-sim-radio-text small {
  color: #64748B;
}

/* Preset Controls */
.admin-sim-preset-controls {
  background: rgba(2, 6, 23, 0.6);
  border: 1px dashed rgba(56, 189, 248, 0.35);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

body.light-theme .admin-sim-preset-controls {
  background: #F1F5F9;
  border-color: #93C5FD;
}

.admin-sim-preset-row {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 10px;
}

.admin-sim-input-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-sim-field-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #CBD5E1;
}

body.light-theme .admin-sim-field-label {
  color: #334155;
}

.admin-sim-date-input,
.admin-sim-time-input {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
}

.admin-sim-quick-presets {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.sim-quick-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #E2E8F0;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sim-quick-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38BDF8;
  color: #38BDF8;
}

body.light-theme .sim-quick-btn {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: #334155;
}

body.light-theme .sim-quick-btn:hover {
  background: #E0F2FE;
  border-color: #0284C7;
  color: #0284C7;
}

/* Diagnostic Status Bar */
.admin-sim-diag-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.light-theme .admin-sim-diag-bar {
  border-top-color: #E2E8F0;
}

.admin-sim-diag-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

body.light-theme .admin-sim-diag-title {
  color: #64748B;
}

.admin-sim-pills-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.sim-diag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.73rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.sim-diag-pill.status-active {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10B981;
}

.sim-diag-pill.status-active .sim-diag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

.sim-diag-pill.status-inactive {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #EF4444;
}

.sim-diag-pill.status-inactive .sim-diag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #EF4444;
}

body.light-theme .sim-diag-pill.status-active {
  background: #DCFCE7;
  border-color: #86EFAC;
  color: #15803D;
}

body.light-theme .sim-diag-pill.status-inactive {
  background: #FEE2E2;
  border-color: #FCA5A5;
  color: #B91C1C;
}

/* 3 Simulated Viewport Tabs Bar */
.admin-sim-tabs-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  overflow-x: auto;
}

.sim-page-tab-btn {
  height: 29px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  border-radius: 6px;
  background: var(--navy-input);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.73rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.sim-page-tab-btn:hover {
  color: var(--text-main);
  border-color: var(--border-hover);
}

.sim-page-tab-btn.active {
  background: var(--primary);
  border-color: #0284C7;
  color: #080E21;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0, 163, 224, 0.3);
}

.sim-page-tab-btn span {
  color: inherit !important;
  font-size: inherit;
  font-weight: inherit;
}

body.light-theme .sim-page-tab-btn {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: #475569;
}

body.light-theme .sim-page-tab-btn:hover {
  background: #F1F5F9;
  color: #0F172A;
}

body.light-theme .sim-page-tab-btn.active {
  background: #0284C7;
  border-color: #0369A1;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
}

/* Simulated Browser Chrome Shell */
.admin-sim-browser-frame {
  background: #081220;
  border: 1px solid #1E3E62;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  margin-bottom: 24px;
}

body.light-theme .admin-sim-browser-frame {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.admin-sim-browser-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #0B192C;
  border-bottom: 1px solid #1E3E62;
  gap: 12px;
}

body.light-theme .admin-sim-browser-bar {
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
}

.sim-browser-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sim-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #EF4444; }
.dot-yellow { background: #F59E0B; }
.dot-green { background: #10B981; }

.sim-browser-url-bar {
  flex: 1;
  max-width: 540px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 4px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'SF Mono', Consolas, monospace;
  font-size: 0.75rem;
  color: #CBD5E1;
}

body.light-theme .sim-browser-url-bar {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: #334155;
}

.sim-browser-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: #D4AF37;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.25);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

body.light-theme .sim-browser-tag {
  color: #B45309;
  background: #FEF3C7;
  border-color: #FDE68A;
}

/* Viewport Body & Shared Components */
.admin-sim-viewport-body {
  min-height: 480px;
}

.sim-announcement-banner-wrap {
  width: 100%;
}

/* Page 1: Main Page Mockup Styles */
.sim-portal-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: rgba(11, 25, 44, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.light-theme .sim-portal-nav {
  background: #FFFFFF;
  border-bottom-color: #E2E8F0;
}

.sim-nav-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.sim-nav-logo {
  font-weight: 900;
  font-size: 0.92rem;
  color: #F8FAFC;
  display: flex;
  align-items: center;
  gap: 6px;
}

body.light-theme .sim-nav-logo {
  color: #0F172A;
}

.sim-nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sim-nav-link {
  font-size: 0.78rem;
  color: #94A3B8;
  font-weight: 600;
  cursor: default;
}

.sim-nav-link.active {
  color: #38BDF8;
  font-weight: 700;
}

body.light-theme .sim-nav-link {
  color: #64748B;
}

body.light-theme .sim-nav-link.active {
  color: #0284C7;
}

.sim-nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sim-nav-btn {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.sim-btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #F8FAFC;
}

body.light-theme .sim-btn-outline {
  border-color: #CBD5E1;
  color: #0F172A;
}

.sim-btn-gold {
  background: linear-gradient(135deg, #D4AF37, #F5D061);
  color: #0F172A;
}

.sim-portal-hero {
  padding: 36px 24px;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.12) 0%, rgba(11, 25, 44, 0) 75%);
}

body.light-theme .sim-portal-hero {
  background: radial-gradient(circle at 50% 0%, rgba(2, 132, 199, 0.08) 0%, rgba(248, 250, 252, 0) 75%);
}

.sim-hero-tag {
  font-size: 0.72rem;
  font-weight: 800;
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 12px;
}

body.light-theme .sim-hero-tag {
  color: #0284C7;
  background: #E0F2FE;
  border-color: #BAE6FD;
}

.sim-hero-title {
  font-size: 1.45rem;
  font-weight: 900;
  color: #F8FAFC;
  margin: 0 0 8px 0;
  line-height: 1.25;
}

body.light-theme .sim-hero-title {
  color: #0F172A;
}

.sim-hero-sub {
  font-size: 0.82rem;
  color: #94A3B8;
  margin: 0 auto 20px auto;
  max-width: 640px;
}

body.light-theme .sim-hero-sub {
  color: #64748B;
}

.sim-search-bar {
  max-width: 640px;
  margin: 0 auto 18px auto;
  display: flex;
  background: #0B192C;
  border: 1px solid #1E3E62;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

body.light-theme .sim-search-bar {
  background: #FFFFFF;
  border-color: #CBD5E1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.sim-search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
}

.sim-search-input-wrap input {
  width: 100%;
  background: transparent;
  border: none;
  color: #F8FAFC;
  font-size: 0.82rem;
  outline: none;
}

body.light-theme .sim-search-input-wrap input {
  color: #0F172A;
}

.sim-search-select-wrap {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0 10px;
  display: flex;
  align-items: center;
}

body.light-theme .sim-search-select-wrap {
  border-left-color: #E2E8F0;
}

.sim-search-select-wrap select {
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 0.76rem;
  outline: none;
}

.sim-search-btn {
  background: #D4AF37;
  border: none;
  color: #0F172A;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 10px 18px;
  cursor: default;
}

.sim-hero-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.sim-cat-pill {
  font-size: 0.72rem;
  font-weight: 600;
  color: #CBD5E1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px 10px;
  border-radius: 12px;
}

body.light-theme .sim-cat-pill {
  color: #334155;
  background: #F1F5F9;
  border-color: #CBD5E1;
}

.sim-featured-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  padding: 18px 24px 28px 24px;
}

.sim-featured-item {
  background: #0B192C;
  border: 1px solid #1E3E62;
  border-radius: 8px;
  padding: 14px;
}

body.light-theme .sim-featured-item {
  background: #FFFFFF;
  border-color: #E2E8F0;
}

.sim-feat-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: #38BDF8;
  margin-bottom: 6px;
}

.sim-feat-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #F8FAFC;
  margin-bottom: 6px;
}

body.light-theme .sim-feat-title {
  color: #0F172A;
}

.sim-feat-price {
  font-size: 0.88rem;
  font-weight: 900;
  color: #F5D061;
}

body.light-theme .sim-feat-price {
  color: #B45309;
}

/* Page 2: Register Agent Page Mockup Styles */
.sim-register-container {
  padding: 30px 20px;
  display: flex;
  justify-content: center;
}

.sim-register-card {
  width: 100%;
  max-width: 600px;
  background: #0B192C;
  border: 1px solid #1E3E62;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

body.light-theme .sim-register-card {
  background: #FFFFFF;
  border-color: #CBD5E1;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.sim-register-header {
  text-align: center;
  margin-bottom: 20px;
}

.sim-cea-tag {
  font-size: 0.70rem;
  font-weight: 800;
  color: #D4AF37;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.25);
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}

.sim-register-header h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #F8FAFC;
  margin: 0 0 4px 0;
}

body.light-theme .sim-register-header h2 {
  color: #0F172A;
}

.sim-register-header p {
  font-size: 0.78rem;
  color: #94A3B8;
  margin: 0;
}

.sim-register-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sim-form-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.sim-form-col {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sim-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #CBD5E1;
}

body.light-theme .sim-label {
  color: #334155;
}

.sim-input {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 0.82rem;
  color: #F8FAFC;
  outline: none;
}

body.light-theme .sim-input {
  background: #F8FAFC;
  border-color: #CBD5E1;
  color: #0F172A;
}

.sim-helper-text {
  font-size: 0.72rem;
  color: #94A3B8;
  line-height: 1.35;
  margin-top: 2px;
}

.sim-field-status-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.sim-field-status-pill.pill-active {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.sim-disabled-field-notice {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.74rem;
  color: #94A3B8;
  display: flex;
  align-items: center;
  gap: 8px;
}

body.light-theme .sim-disabled-field-notice {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: #64748B;
}

.sim-btn-apply {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10B981;
  color: #10B981;
  font-weight: 800;
  font-size: 0.76rem;
  padding: 0 12px;
  border-radius: 6px;
  cursor: default;
}

.sim-register-submit-wrap {
  margin-top: 8px;
  text-align: center;
}

.sim-btn-submit {
  width: 100%;
  background: linear-gradient(135deg, #0284C7, #0369A1);
  border: none;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.86rem;
  padding: 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0.8;
  cursor: default;
}

.sim-submit-hint {
  font-size: 0.72rem;
  color: #94A3B8;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Page 3: My Credits & Subscription Mockup Styles */
.sim-credits-container {
  padding: 24px 20px;
}

.sim-credits-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.sim-credits-header h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #F8FAFC;
  margin: 0 0 4px 0;
}

body.light-theme .sim-credits-header h2 {
  color: #0F172A;
}

.sim-credits-header p {
  font-size: 0.78rem;
  color: #94A3B8;
  margin: 0;
}

.sim-balance-card {
  background: #0B192C;
  border: 1px solid #1E3E62;
  border-radius: 8px;
  padding: 8px 16px;
  text-align: right;
}

body.light-theme .sim-balance-card {
  background: #FFFFFF;
  border-color: #CBD5E1;
}

.sim-balance-label {
  display: block;
  font-size: 0.70rem;
  color: #94A3B8;
  text-transform: uppercase;
}

.sim-balance-val {
  font-size: 1.05rem;
  font-weight: 900;
  color: #F8FAFC;
}

body.light-theme .sim-balance-val {
  color: #0F172A;
}

.sim-packs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.sim-pack-card {
  background: #0B192C;
  border: 1px solid #1E3E62;
  border-radius: 8px;
  padding: 16px;
  position: relative;
  transition: all 0.15s ease;
}

body.light-theme .sim-pack-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
}

.sim-pack-card.selected {
  border-color: #F5D061;
  background: linear-gradient(135deg, rgba(245, 208, 97, 0.08), rgba(11, 25, 44, 0.8));
  box-shadow: 0 4px 14px rgba(245, 208, 97, 0.15);
}

body.light-theme .sim-pack-card.selected {
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.6), #FFFFFF);
  border-color: #D4AF37;
}

.sim-pack-badge {
  position: absolute;
  top: -9px;
  right: 12px;
  background: #D4AF37;
  color: #0F172A;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
}

.sim-pack-tier {
  font-size: 0.86rem;
  font-weight: 800;
  color: #F8FAFC;
  margin-bottom: 2px;
}

body.light-theme .sim-pack-tier {
  color: #0F172A;
}

.sim-pack-credits {
  font-size: 1.1rem;
  font-weight: 900;
  color: #38BDF8;
  margin-bottom: 6px;
}

body.light-theme .sim-pack-credits {
  color: #0284C7;
}

.sim-pack-price {
  font-size: 1.15rem;
  font-weight: 900;
  color: #F5D061;
  margin-bottom: 6px;
}

body.light-theme .sim-pack-price {
  color: #B45309;
}

.sim-pack-desc {
  font-size: 0.72rem;
  color: #94A3B8;
  line-height: 1.35;
}

.sim-checkout-card {
  background: #0B192C;
  border: 1px solid #1E3E62;
  border-radius: 10px;
  padding: 20px;
}

body.light-theme .sim-checkout-card {
  background: #FFFFFF;
  border-color: #CBD5E1;
}

.sim-checkout-header {
  font-size: 0.95rem;
  font-weight: 800;
  color: #F8FAFC;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

body.light-theme .sim-checkout-header {
  color: #0F172A;
}

.sim-promo-redemption-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 16px;
}

body.light-theme .sim-promo-redemption-card {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

.sim-promo-breakdown-box {
  margin-top: 12px;
  padding: 10px 12px;
  background: rgba(2, 6, 23, 0.6);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.78rem;
}

body.light-theme .sim-promo-breakdown-box {
  background: #F1F5F9;
}

.sim-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #CBD5E1;
}

body.light-theme .sim-breakdown-row {
  color: #334155;
}

.sim-breakdown-row.discount {
  color: #10B981;
  font-weight: 700;
}

body.light-theme .sim-breakdown-row.discount {
  color: #15803D;
}

.sim-breakdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 4px 0;
}

body.light-theme .sim-breakdown-divider {
  background: #CBD5E1;
}

.sim-breakdown-row.total {
  font-weight: 800;
  color: #F8FAFC;
}

body.light-theme .sim-breakdown-row.total {
  color: #0F172A;
}

.sim-net-price {
  font-size: 0.95rem;
  font-weight: 900;
  color: #F5D061;
}

body.light-theme .sim-net-price {
  color: #B45309;
}

.sim-active-vouchers-list {
  margin-top: 10px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.sim-active-voucher-pill {
  font-size: 0.70rem;
  font-weight: 700;
  font-family: 'SF Mono', Consolas, monospace;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38BDF8;
  padding: 2px 6px;
  border-radius: 4px;
}

.sim-payment-gateways-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.light-theme .sim-payment-gateways-strip {
  border-top-color: #E2E8F0;
}

.sim-gw-pill {
  font-size: 0.72rem;
  font-weight: 700;
  color: #CBD5E1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

body.light-theme .sim-gw-pill {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: #334155;
}

/* ==============================================================================
   10.24 ADMIN MARKETING: SOCIAL PLATFORMS SUB-TAB (#subtab-marketing-social-platforms)
   ============================================================================== */

/* Social Platforms Grid */
.admin-social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

/* Individual Platform Card */
.admin-social-card {
  background: #0B192C;
  border: 1px solid #1E3E62;
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.admin-social-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

body.light-theme .admin-social-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

body.light-theme .admin-social-card:hover {
  border-color: #38BDF8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

body.light-theme #socialCreditsConfigCard {
  background: #FFFFFF !important;
  border-color: #CBD5E1 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
}

body.light-theme #socialCreditsConfigCard span[style*="color: #F8FAFC"] {
  color: #0F172A !important;
}

body.light-theme #adminSocialCreditsInput {
  background: #F8FAFC !important;
  color: #B45309 !important;
  border-color: #CBD5E1 !important;
}

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

.admin-social-info-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-brand-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.admin-social-titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-social-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #F8FAFC;
  display: flex;
  align-items: center;
  gap: 6px;
}

body.light-theme .admin-social-name {
  color: #0F172A;
}

.admin-social-key-badge {
  font-family: 'SF Mono', Consolas, monospace;
  font-size: 0.70rem;
  font-weight: 700;
  color: #94A3B8;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1px 6px;
  border-radius: 4px;
  width: fit-content;
}

body.light-theme .admin-social-key-badge {
  color: #64748B;
  background: #F1F5F9;
  border-color: #CBD5E1;
}

/* Master Toggle Button */
.social-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.social-toggle-btn.btn-active {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #10B981;
}

.social-toggle-btn.btn-active:hover {
  background: #10B981;
  color: #FFFFFF;
}

.social-toggle-btn.btn-inactive {
  background: rgba(148, 163, 184, 0.15);
  border-color: rgba(148, 163, 184, 0.3);
  color: #94A3B8;
}

.social-toggle-btn.btn-inactive:hover {
  background: #64748B;
  color: #FFFFFF;
}

body.light-theme .social-toggle-btn.btn-active {
  background: #DCFCE7;
  border-color: #86EFAC;
  color: #15803D;
}

body.light-theme .social-toggle-btn.btn-inactive {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: #64748B;
}

/* Card Specs */
.admin-social-specs {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body.light-theme .admin-social-specs {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

.social-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.social-spec-label {
  color: #94A3B8;
  font-weight: 600;
  white-space: nowrap;
}

body.light-theme .social-spec-label {
  color: #64748B;
}

.social-spec-val {
  color: #E2E8F0;
  font-weight: 700;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 180px;
}

body.light-theme .social-spec-val {
  color: #1E293B;
}

.social-spec-ratio-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #38BDF8;
}

body.light-theme .social-spec-ratio-pill {
  background: #E0F2FE;
  border-color: #BAE6FD;
  color: #0284C7;
}

.social-template-code {
  font-family: 'SF Mono', Consolas, monospace;
  font-size: 0.70rem;
  color: #CBD5E1;
  background: rgba(2, 6, 23, 0.6);
  padding: 3px 6px;
  border-radius: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
}

body.light-theme .social-template-code {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #334155;
}

/* Card Actions */
.admin-social-card-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

body.light-theme .admin-social-card-actions {
  border-top-color: #E2E8F0;
}

.btn-social-action {
  background: none;
  border: none;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.btn-social-edit {
  color: #38BDF8;
}

.btn-social-edit:hover {
  background: rgba(56, 189, 248, 0.12);
}

.btn-social-delete {
  color: #EF4444;
}

.btn-social-delete:hover {
  background: rgba(239, 68, 68, 0.12);
}

/* Policy / CEA Compliance Callout Box */
.admin-social-compliance-card {
  background: #0B192C;
  border: 1px solid #1E3E62;
  border-left: 4px solid #38BDF8;
  border-radius: 8px;
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  margin-bottom: 20px;
}

body.light-theme .admin-social-compliance-card {
  background: #F0F9FF;
  border: 1px solid #BAE6FD;
  border-left: 4px solid #0284C7;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.social-compliance-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.social-compliance-content {
  flex: 1;
}

.social-compliance-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #F8FAFC;
  margin-bottom: 4px;
}

body.light-theme .social-compliance-title {
  color: #0369A1;
}

.social-compliance-text {
  font-size: 0.78rem;
  color: #CBD5E1;
  margin: 0;
  line-height: 1.45;
}

body.light-theme .social-compliance-text {
  color: #334155;
}

/* ==============================================================================
   SECTION 10.25: COMMUNICATIONS OFFICIAL DISPATCHER & TEMPLATES
   ============================================================================== */

/* Mode Badges */
.dispatcher-mode-badge {
  transition: all 0.2s ease;
  user-select: none;
}

.dispatcher-mode-badge.readonly-state {
  background: rgba(234, 179, 8, 0.15) !important;
  border: 1px solid rgba(234, 179, 8, 0.35) !important;
  color: #FACC15 !important;
}

body.light-theme .dispatcher-mode-badge.readonly-state {
  background: #FEF9C3 !important;
  border: 1px solid #FDE047 !important;
  color: #854D0E !important;
}

.dispatcher-mode-badge.editable-state {
  background: rgba(16, 185, 129, 0.15) !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
  color: #10B981 !important;
}

body.light-theme .dispatcher-mode-badge.editable-state {
  background: #DCFCE7 !important;
  border: 1px solid #86EFAC !important;
  color: #166534 !important;
}

/* Template Type Pills */
.template-type-pill.pill-manual {
  background: rgba(59, 130, 246, 0.15);
  color: #3B82F6;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.template-type-pill.pill-auto {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

body.light-theme .template-type-pill.pill-manual {
  background: #DBEAFE;
  color: #1D4ED8;
  border-color: #BFDBFE;
}

body.light-theme .template-type-pill.pill-auto {
  background: #DCFCE7;
  color: #15803D;
  border-color: #BBF7D0;
}

/* 1-Click Preset Buttons */
.dispatcher-preset-btn {
  background: #0F172A;
  color: #CBD5E1;
  border: 1px solid #334155;
  border-radius: 9999px;
  padding: 5px 14px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.dispatcher-preset-btn:hover {
  background: #1E293B;
  color: #F8FAFC;
  border-color: #475569;
}

.dispatcher-preset-btn.active {
  background: rgba(56, 189, 248, 0.15);
  color: #38BDF8;
  border-color: #38BDF8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

body.light-theme .dispatcher-preset-btn {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #CBD5E1;
}

body.light-theme .dispatcher-preset-btn:hover {
  background: #E2E8F0;
  color: #0F172A;
}

body.light-theme .dispatcher-preset-btn.active {
  background: #E0F2FE;
  color: #0284C7;
  border-color: #0284C7;
}

/* Dynamic Variable Insertion Chips */
.dispatcher-chip-btn {
  background: #0B192C;
  color: #F5D061;
  border: 1px solid rgba(245, 208, 97, 0.35);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-family: 'SF Mono', Consolas, monospace;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dispatcher-chip-btn:hover {
  background: rgba(245, 208, 97, 0.15);
  border-color: #F5D061;
  color: #FFE082;
  transform: translateY(-1px);
}

body.light-theme .dispatcher-chip-btn {
  background: #FFFBEB;
  color: #B45309;
  border-color: #FDE68A;
}

body.light-theme .dispatcher-chip-btn:hover {
  background: #FEF3C7;
  border-color: #F59E0B;
}

/* Automated System Templates Grid */
.dispatcher-templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.dispatcher-template-card {
  background: #0F172A;
  border: 1px solid #1E3E62;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.dispatcher-template-card:hover {
  border-color: #38BDF8;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

body.light-theme .dispatcher-template-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

body.light-theme .dispatcher-template-card:hover {
  border-color: #0284C7;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.template-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  gap: 8px;
}

.template-card-title {
  font-size: 0.90rem;
  font-weight: 800;
  color: #F5D061;
  margin: 0 0 4px 0;
  line-height: 1.3;
}

body.light-theme .template-card-title {
  color: #B45309;
}

.template-card-sender {
  font-family: 'SF Mono', Consolas, monospace;
  font-size: 0.72rem;
  color: #38BDF8;
  margin-bottom: 6px;
  display: block;
}

body.light-theme .template-card-sender {
  color: #0284C7;
}

.template-card-trigger {
  font-size: 0.74rem;
  color: #94A3B8;
  margin-bottom: 10px;
  line-height: 1.35;
}

body.light-theme .template-card-trigger {
  color: #64748B;
}

.template-card-preview-box {
  background: rgba(11, 25, 44, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 12px;
}

body.light-theme .template-card-preview-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
}

.template-preview-subject {
  font-size: 0.76rem;
  font-weight: 700;
  color: #F8FAFC;
  margin-bottom: 4px;
  line-height: 1.3;
}

body.light-theme .template-preview-subject {
  color: #0F172A;
}

.template-preview-snippet {
  font-family: 'SF Mono', Consolas, monospace;
  font-size: 0.70rem;
  color: #94A3B8;
  line-height: 1.4;
}

body.light-theme .template-preview-snippet {
  color: #475569;
}

.template-card-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.light-theme .template-card-actions {
  border-top-color: #E2E8F0;
}

/* Light Theme Card Overrides for Official Dispatcher */
body.light-theme .admin-comms-card {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04) !important;
}

body.light-theme #subtab-comms-official-dispatcher select,
body.light-theme #subtab-comms-official-dispatcher input[type="text"],
body.light-theme #subtab-comms-official-dispatcher input[type="email"],
body.light-theme #subtab-comms-official-dispatcher textarea {
  background: #F8FAFC !important;
  color: #0F172A !important;
  border-color: #CBD5E1 !important;
}

body.light-theme .dispatcher-scope-label {
  color: #1E293B !important;
}

/* Automated Emails Table */
.auto-email-row:hover {
  background: rgba(30, 41, 59, 0.45);
}

.auto-email-row.selected-row {
  background: rgba(56, 189, 248, 0.08);
}

body.light-theme .auto-email-row:hover {
  background: #F1F5F9;
}

body.light-theme .auto-email-row.selected-row {
  background: #E0F2FE;
}

body.light-theme #subtab-comms-automated-mails .admin-table-wrap {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04) !important;
}

body.light-theme #subtab-comms-automated-mails .admin-table thead tr {
  background: #F8FAFC !important;
  border-bottom: 1px solid #E2E8F0 !important;
  color: #475569 !important;
}

body.light-theme #subtab-comms-automated-mails .admin-table tbody tr {
  border-bottom: 1px solid #F1F5F9 !important;
}

body.light-theme #subtab-comms-automated-mails select {
  background: #F8FAFC !important;
  color: #0F172A !important;
  border-color: #CBD5E1 !important;
}

/* Category Filter Pills & Routing Architecture Nodes */
.btn-category-filter {
  background: #0B192C;
  color: #94A3B8;
  border: 1px solid #1E3E62;
  transition: all 0.15s ease;
}
.btn-category-filter:hover {
  background: #0F2A4A;
  color: #F8FAFC;
  border-color: #38BDF8;
}
.btn-category-filter.active {
  background: linear-gradient(135deg, #0284C7, #0369A1) !important;
  color: #FFFFFF !important;
  border-color: #38BDF8 !important;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
}

.routing-node-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.routing-node-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

/* Light Theme Overrides for Automated Emails & Architecture */
body.light-theme .auto-routing-summary-card {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04) !important;
}
body.light-theme .auto-routing-summary-card span[style*="color: #F8FAFC"] {
  color: #0F172A !important;
}

body.light-theme .routing-node-card {
  background: #F8FAFC !important;
  border-color: #E2E8F0 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}
body.light-theme .routing-node-card:hover {
  background: #FFFFFF !important;
  border-color: #CBD5E1 !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}
body.light-theme .routing-node-card div[style*="color: #CBD5E1"] {
  color: #475569 !important;
}
body.light-theme .routing-node-card span[style*="color: #F5D061"] {
  color: #92400E !important; /* Dark golden-brown for light mode */
}
body.light-theme .routing-node-card .company-gst-pill[style*="color: #F5D061"] {
  color: #92400E !important;
  background: #FEF3C7 !important;
  border-color: #F59E0B !important;
}

body.light-theme .btn-category-filter {
  background: #F8FAFC;
  color: #475569;
  border: 1px solid #CBD5E1;
}
body.light-theme .btn-category-filter:hover {
  background: #EDF8FD;
  color: #0284C7;
  border-color: #38BDF8;
}
body.light-theme .btn-category-filter.active {
  background: linear-gradient(135deg, #0284C7, #0369A1) !important;
  color: #FFFFFF !important;
  border-color: #0284C7 !important;
}

body.light-theme #subtab-comms-automated-mails .admin-table tbody td {
  color: #0F172A !important;
}
body.light-theme #subtab-comms-automated-mails .admin-table tbody td div[style*="color: #F8FAFC"] {
  color: #0F172A !important;
}
body.light-theme #subtab-comms-automated-mails .admin-table tbody td span[style*="color: #F8FAFC"] {
  color: #0F172A !important;
}
body.light-theme #subtab-comms-automated-mails .admin-table tbody td div[style*="color: #F5D061"] {
  color: #92400E !important;
}
body.light-theme #subtab-comms-automated-mails .admin-table tbody td i[style*="color: #F5D061"] {
  color: #92400E !important;
}
body.light-theme #subtab-comms-automated-mails .admin-table tbody tr:hover {
  background: #F1F5F9 !important;
}

body.light-theme #adminEditAutoEmailModal .admin-promo-modal-card {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}
body.light-theme #adminEditAutoEmailModal input,
body.light-theme #adminEditAutoEmailModal select,
body.light-theme #adminEditAutoEmailModal textarea {
  background: #F8FAFC !important;
  color: #0F172A !important;
  border-color: #CBD5E1 !important;
}
body.light-theme #adminEditAutoEmailModal label {
  color: #334155 !important;
}
body.light-theme #adminEditAutoEmailModal h3 {
  color: #0F172A !important;
}

/* ==============================================================================
   SECTION 10.27: COMMUNICATIONS NEWBOX LOGS
   ============================================================================== */

.newbox-status-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.2px;
  user-select: none;
  white-space: nowrap;
}

.newbox-status-badge.unread {
  color: #EF4444;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.newbox-status-badge.read {
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
}

body.light-theme .newbox-status-badge.unread {
  background: #FEE2E2;
  color: #B91C1C;
  border-color: #FCA5A5;
}

body.light-theme .newbox-status-badge.read {
  background: #E0F2FE;
  color: #0369A1;
  border-color: #BAE6FD;
}

.newbox-email-row:hover {
  background: rgba(30, 41, 59, 0.45);
}

.newbox-email-row.row-unread {
  border-left: 3px solid #38BDF8;
}

body.light-theme .newbox-email-row:hover {
  background: #F1F5F9;
}

body.light-theme .newbox-email-row.row-unread {
  border-left: 3px solid #0284C7;
  background: #F0F9FF;
}

body.light-theme #subtab-comms-newbox-logs .admin-table-wrap {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04) !important;
}

body.light-theme #subtab-comms-newbox-logs .admin-table thead tr {
  background: #F8FAFC !important;
  border-bottom: 1px solid #E2E8F0 !important;
  color: #475569 !important;
}

body.light-theme #subtab-comms-newbox-logs .admin-table tbody tr {
  border-bottom: 1px solid #F1F5F9 !important;
}

body.light-theme #subtab-comms-newbox-logs select {
  background: #F8FAFC !important;
  color: #0F172A !important;
  border-color: #CBD5E1 !important;
}

/* ==============================================================================
   SECTION 10.28: COMMUNICATIONS OUTBOX LOGS & SENDER BADGES
   ============================================================================== */

.outbox-sender-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.2px;
  user-select: none;
  white-space: nowrap;
}

/* admin@wukplace.sg - Sapphire Blue (Operations & Support) */
.outbox-sender-badge.admin {
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
}

/* register@wukplace.sg - Emerald Green (Onboarding Desk) */
.outbox-sender-badge.register {
  color: #10B981;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

/* billing@wukplace.sg - Amber Gold (Finance & Invoices) */
.outbox-sender-badge.billing {
  color: #F59E0B;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

/* reminder@wukplace.sg - Vibrant Orange (Listing Expiry Reminders) */
.outbox-sender-badge.reminder {
  color: #F97316;
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(249, 115, 22, 0.35);
}

/* rewards@wukplace.sg - Pink/Purple (Referral Rewards & Promos) */
.outbox-sender-badge.rewards {
  color: #EC4899;
  background: rgba(236, 72, 153, 0.15);
  border: 1px solid rgba(236, 72, 153, 0.35);
}

/* security@wukplace.sg - Indigo/Violet (Security & Auth) */
.outbox-sender-badge.security {
  color: #818CF8;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
}

/* Status Badge - Emerald Green Dispatched */
.outbox-status-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.2px;
  user-select: none;
  white-space: nowrap;
  color: #22C55E;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid #22C55E;
}

.outbox-email-row:hover {
  background: rgba(30, 41, 59, 0.45);
}

/* Light Theme Overrides */
body.light-theme .outbox-sender-badge.admin {
  background: #E0F2FE;
  color: #0284C7;
  border-color: #BAE6FD;
}

body.light-theme .outbox-sender-badge.register {
  background: #D1FAE5;
  color: #059669;
  border-color: #A7F3D0;
}

body.light-theme .outbox-sender-badge.billing {
  background: #FEF3C7;
  color: #D97706;
  border-color: #FDE68A;
}

body.light-theme .outbox-sender-badge.reminder {
  background: #FFEDD5;
  color: #EA580C;
  border-color: #FED7AA;
}

body.light-theme .outbox-sender-badge.rewards {
  background: #FCE7F3;
  color: #DB2777;
  border-color: #FBCFE8;
}

body.light-theme .outbox-sender-badge.security {
  background: #EEF2FF;
  color: #4F46E5;
  border-color: #C7D2FE;
}

body.light-theme .outbox-status-badge {
  background: #DCFCE7;
  color: #16A34A;
  border-color: #86EFAC;
}

body.light-theme .outbox-email-row:hover {
  background: #F1F5F9;
}

body.light-theme #subtab-comms-outbox-logs .admin-table-wrap {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04) !important;
}

body.light-theme #subtab-comms-outbox-logs .admin-table thead tr {
  background: #F8FAFC !important;
  border-bottom: 1px solid #E2E8F0 !important;
  color: #475569 !important;
}

body.light-theme #subtab-comms-outbox-logs .admin-table tbody tr {
  border-bottom: 1px solid #F1F5F9 !important;
}

body.light-theme #subtab-comms-outbox-logs select {
  background: #F8FAFC !important;
  color: #0F172A !important;
  border-color: #CBD5E1 !important;
}

/* ==============================================================================
   10.29 ADMIN FINANCE SUITE (#adminContentFinance)
   ============================================================================== */

/* GST Config Panel */
.admin-gst-config-card {
  background: #0B192C;
  border: 1px solid #1E3E62;
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

body.light-theme .admin-gst-config-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.admin-gst-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.admin-gst-status-badge.registered {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.admin-gst-status-badge.exempt {
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

/* Reporting Period Filter Toolbar */
.fin-period-btn {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid #1E3E62;
  color: #94A3B8;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.fin-period-btn:hover {
  color: #F8FAFC;
  border-color: #38BDF8;
}

.fin-period-btn.active {
  background: linear-gradient(135deg, #F5D061, #D4AF37);
  color: #080E21;
  border-color: #F5D061;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(245, 208, 97, 0.25);
}

body.light-theme .fin-period-btn {
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  color: #64748B;
}

body.light-theme .fin-period-btn:hover {
  color: #0F172A;
  border-color: #94A3B8;
}

body.light-theme .fin-period-btn.active {
  background: #0B192C;
  color: #FFFFFF;
  border-color: #0B192C;
}

/* 5 KPI Summary Cards Grid */
.admin-fin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.admin-kpi-card {
  background: #0B192C;
  border: 1px solid #1E3E62;
  border-radius: 10px;
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.admin-kpi-card:hover {
  transform: translateY(-2px);
  border-color: #38BDF8;
}

.admin-kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #F5D061, #38BDF8);
}

.admin-kpi-card.kpi-revenue::before {
  background: linear-gradient(90deg, #10B981, #38BDF8);
}
.admin-kpi-card.kpi-expenses::before {
  background: linear-gradient(90deg, #EF4444, #F59E0B);
}
.admin-kpi-card.kpi-profit::before {
  background: linear-gradient(90deg, #F5D061, #D4AF37);
}
.admin-kpi-card.kpi-gst::before {
  background: linear-gradient(90deg, #38BDF8, #818CF8);
}
.admin-kpi-card.kpi-docs::before {
  background: linear-gradient(90deg, #94A3B8, #CBD5E1);
}

.admin-kpi-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-kpi-val {
  font-size: 1.55rem;
  font-weight: 800;
  font-family: 'SF Mono', Consolas, monospace;
  color: #F8FAFC;
  line-height: 1.2;
  margin-bottom: 6px;
}

.admin-kpi-sub {
  font-size: 0.74rem;
  color: #64748B;
}

body.light-theme .admin-kpi-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

body.light-theme .admin-kpi-val {
  color: #0F172A;
}

body.light-theme .admin-kpi-sub {
  color: #64748B;
}

/* Category & Plan Badges */
.badge-fin-cat {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cat-cloud {
  background: rgba(56, 189, 248, 0.15);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.cat-compliance {
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.cat-marketing {
  background: rgba(236, 72, 153, 0.15);
  color: #EC4899;
  border: 1px solid rgba(236, 72, 153, 0.3);
}

.cat-payroll {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.cat-legal {
  background: rgba(129, 140, 248, 0.15);
  color: #818CF8;
  border: 1px solid rgba(129, 140, 248, 0.3);
}

.cat-office {
  background: rgba(148, 163, 184, 0.15);
  color: #94A3B8;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.cat-portal {
  background: rgba(245, 208, 97, 0.15);
  color: #F5D061;
  border: 1px solid rgba(245, 208, 97, 0.3);
}

/* Plan Badges */
.badge-fin-plan {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 9999px;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
}

.plan-starter {
  background: rgba(148, 163, 184, 0.15);
  color: #CBD5E1;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.plan-pro {
  background: rgba(56, 189, 248, 0.15);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.plan-elite {
  background: rgba(245, 208, 97, 0.15);
  color: #F5D061;
  border: 1px solid rgba(245, 208, 97, 0.3);
}

.plan-enterprise {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.plan-agency {
  background: rgba(192, 132, 252, 0.15);
  color: #C084FC;
  border: 1px solid rgba(192, 132, 252, 0.3);
}

/* Compliance Statutory Report Cards */
.admin-statutory-report-card {
  background: #0B192C;
  border: 1px solid #1E3E62;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: all 0.25s ease;
}

.admin-statutory-report-card:hover {
  border-color: #F5D061;
  box-shadow: 0 6px 20px rgba(245, 208, 97, 0.15);
}

body.light-theme .admin-statutory-report-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

body.light-theme .admin-statutory-report-card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* Printable Statutory Document Styling (ACRA & IRAS) */
/* Printable Statutory Document Styling (ACRA, IRAS, Invoices & Audit Vouchers) */
.statutory-statement-container,
.statutory-doc-sheet {
  background: #FFFFFF !important;
  color: #0F172A !important;
  padding: 32px 36px;
  border-radius: 8px;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.5;
}

.statutory-statement-header {
  border-bottom: 2px solid #0F172A;
  padding-bottom: 16px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

/* Force high contrast dark typography on pure white paper regardless of dark/light theme */
.statutory-statement-container h1,
.statutory-statement-container h2,
.statutory-statement-container h3,
.statutory-statement-container h4,
.statutory-doc-sheet h1,
.statutory-doc-sheet h2,
.statutory-doc-sheet h3,
.statutory-doc-sheet h4,
[id$="Modal"] .statutory-statement-container h1,
[id$="Modal"] .statutory-statement-container h2,
[id$="Modal"] .statutory-statement-container h3,
[id$="Modal"] .statutory-statement-container h4,
[id$="Modal"] .statutory-doc-sheet h1,
[id$="Modal"] .statutory-doc-sheet h2,
[id$="Modal"] .statutory-doc-sheet h3,
[id$="Modal"] .statutory-doc-sheet h4 {
  color: #080E21 !important;
}

.statutory-statement-container strong,
.statutory-doc-sheet strong,
[id$="Modal"] .statutory-statement-container strong,
[id$="Modal"] .statutory-doc-sheet strong {
  color: #080E21 !important;
}

.statutory-statement-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  margin-bottom: 24px;
}

.statutory-statement-table th,
.statutory-statement-table td,
.statutory-doc-sheet table td,
.statutory-doc-sheet table th {
  padding: 10px 12px;
  font-size: 0.85rem;
}

.statutory-statement-container td,
.statutory-doc-sheet td,
[id$="Modal"] .statutory-statement-container td,
[id$="Modal"] .statutory-doc-sheet td {
  color: #0F172A !important;
  border-bottom: 1px solid #E2E8F0 !important;
  background: transparent !important;
}

.statutory-statement-table td.num,
.statutory-doc-sheet td.num,
.statutory-doc-sheet .font-mono {
  text-align: right;
  font-family: 'SF Mono', Consolas, monospace !important;
}

.statutory-statement-container tr:hover td,
.statutory-doc-sheet tr:hover td,
[id$="Modal"] .statutory-statement-container tr:hover td,
[id$="Modal"] .statutory-doc-sheet tr:hover td {
  background: transparent !important;
}

.statutory-statement-table th,
[id$="Modal"] .statutory-statement-table th {
  background: #F8FAFC !important;
  color: #080E21 !important;
  font-weight: 800;
  text-align: left;
  border-top: 1px solid #CBD5E1 !important;
  border-bottom: 2px solid #94A3B8 !important;
}

.statutory-doc-sheet table thead th,
[id$="Modal"] .statutory-doc-sheet table thead th {
  background: #0F172A !important;
  color: #FFFFFF !important;
  font-weight: 800;
  border: none !important;
}

.statutory-statement-table tr.total-row td,
.statutory-doc-sheet tr.total-row td,
[id$="Modal"] .statutory-statement-table tr.total-row td,
[id$="Modal"] .statutory-doc-sheet tr.total-row td {
  font-weight: 800 !important;
  border-top: 2px solid #0F172A !important;
  border-bottom: 3px double #0F172A !important;
  font-size: 0.95rem !important;
  color: #080E21 !important;
}

/* Statutory Print & A4 Geometry Rules */
@media print {
  @page {
    size: A4 portrait;
    margin: 15mm 18mm;
  }
  html, body {
    background: #FFFFFF !important;
    color: #0F172A !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body * {
    visibility: hidden;
  }
  #adminAcraReportModal,
  #adminIrasEciModal,
  #adminHrPayslipModal,
  #adminFinDocPreviewModal,
  #taxInvoiceModal,
  .statutory-statement-container,
  .statutory-statement-container *,
  .statutory-doc-sheet,
  .statutory-doc-sheet *,
  #finDocPreviewContent,
  #finDocPreviewContent *,
  #acraStatementsPrintArea,
  #acraStatementsPrintArea *,
  #irasEciPrintArea,
  #irasEciPrintArea *,
  #hrPayslipPrintArea,
  #hrPayslipPrintArea * {
    visibility: visible;
  }
  #adminAcraReportModal,
  #adminIrasEciModal,
  #adminHrPayslipModal,
  #adminFinDocPreviewModal,
  #taxInvoiceModal {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: auto !important;
    background: #FFFFFF !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    border: none !important;
  }
  #adminAcraReportModal .modal-card,
  #adminIrasEciModal .modal-card,
  #adminHrPayslipModal .modal-card,
  #adminFinDocPreviewModal .modal-card,
  #taxInvoiceModal .modal-card {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #FFFFFF !important;
    box-shadow: none !important;
    border: none !important;
  }
  .statutory-statement-container,
  .statutory-doc-sheet,
  #finDocPreviewContent,
  #acraStatementsPrintArea,
  #irasEciPrintArea,
  #hrPayslipPrintArea {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #FFFFFF !important;
    box-shadow: none !important;
    border: none !important;
  }
  .no-print,
  .modal-close-btn,
  .btn-action-29,
  header.navbar,
  .floating-mode-hud,
  .announcement-banner {
    display: none !important;
  }
  .statutory-statement-table,
  .statutory-statement-header,
  .total-row {
    page-break-inside: avoid;
  }
}

/* ==============================================================================
   10.30 ADMIN HUMAN RESOURCE & STATUTORY CPF 2026 ENGINE (#adminContentHr)
   ============================================================================== */

/* CPF Policy Banner Card */
#adminCpfPolicyBanner {
  background: linear-gradient(135deg, rgba(11, 25, 44, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid #F59E0B;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.12);
}

body.light-theme #adminCpfPolicyBanner {
  background: #FFFFFF;
  border-color: #F59E0B;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.08);
}

/* HR Registry Table Badges */
.badge-hr-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.badge-hr-status.active {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-hr-status.completed {
  background: rgba(148, 163, 184, 0.15);
  color: #94A3B8;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.badge-hr-status.leave {
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.badge-payment-type {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
}

.badge-payment-type.monthly {
  background: rgba(56, 189, 248, 0.15);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.badge-payment-type.one_off {
  background: rgba(192, 132, 252, 0.15);
  color: #C084FC;
  border: 1px solid rgba(192, 132, 252, 0.35);
}

.hr-personnel-row:hover {
  background: rgba(30, 41, 59, 0.45);
}

body.light-theme .hr-personnel-row:hover {
  background: #F1F5F9;
}

/* Light Theme Overrides for Human Resource */
body.light-theme #adminTab-hr .admin-table-wrap {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04) !important;
}

body.light-theme #adminTab-hr .admin-table thead tr {
  background: #F8FAFC !important;
  border-bottom: 1px solid #E2E8F0 !important;
  color: #475569 !important;
}

body.light-theme #adminTab-hr .admin-table tbody tr {
  border-bottom: 1px solid #F1F5F9 !important;
}

body.light-theme #adminTab-hr select,
body.light-theme #adminTab-hr input {
  background: #F8FAFC !important;
  color: #0F172A !important;
  border-color: #CBD5E1 !important;
}

body.light-theme #adminAddHrModal .modal-card,
body.light-theme #adminCpfRatesModal .modal-card,
body.light-theme #adminGstModal .modal-card {
  background: #FFFFFF !important;
  color: #0F172A !important;
  border-color: #E2E8F0 !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
}

body.light-theme #adminAddHrModal .modal-card h3,
body.light-theme #adminCpfRatesModal .modal-card h3,
body.light-theme #adminGstModal .modal-card h3 {
  color: #0F172A !important;
}

body.light-theme #adminAddHrModal .form-control-admin,
body.light-theme #adminCpfRatesModal .form-control-admin,
body.light-theme #adminGstModal .form-control-admin {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  color: #020617 !important;
  border-color: #CBD5E1 !important;
}

body.light-theme #adminAddHrModal #hrModalCalculationBox {
  background: #F8FAFC !important;
  border-color: #E2E8F0 !important;
}

body.light-theme #adminAddHrModal #hrModalPrevGross,
body.light-theme #adminAddHrModal #hrModalPrevCoCost {
  color: #0F172A !important;
}

body.light-theme #cpfWebSyncBanner {
  background: #F8FAFC !important;
  border-color: #CBD5E1 !important;
}
body.light-theme #cpfSyncIconWrap {
  background: #E0F2FE !important;
  border-color: #BAE6FD !important;
  color: #0284C7 !important;
}
body.light-theme #cpfSyncDetailsText {
  color: #334155 !important;
}
body.light-theme #cpfReSyncBtn {
  background: #E0F2FE !important;
  color: #0369A1 !important;
  border-color: #7DD3FC !important;
}
body.light-theme #adminCpfRatesModal tr {
  border-bottom-color: #E2E8F0 !important;
}
body.light-theme #adminCpfRatesModal td {
  color: #0F172A !important;
}

body.light-theme #adminGstModal .admin-gst-banner-box {
  background: #F8FAFC !important;
  border-color: #CBD5E1 !important;
}
body.light-theme #adminGstModal .admin-gst-banner-box span,
body.light-theme #adminGstModal .admin-gst-banner-box div {
  color: #334155 !important;
}
body.light-theme #adminGstModal .admin-gst-banner-box strong {
  color: #0F172A !important;
}
body.light-theme #adminGstModal .admin-gst-banner-box #adminGstActiveRate {
  color: #92400E !important;
}
body.light-theme #adminGstModal .admin-gst-banner-box #adminGstRegNoDisplay {
  color: #0284C7 !important;
}
body.light-theme #adminGstModal .admin-gst-radio-box {
  background: #F8FAFC !important;
  border-color: #E2E8F0 !important;
}
body.light-theme #adminGstModal .admin-gst-radio-box label,
body.light-theme #adminGstModal .admin-gst-radio-box span {
  color: #0F172A !important;
}
body.light-theme #adminGstModal label {
  color: #334155 !important;
}
body.light-theme #adminGstModal input {
  background: #FFFFFF !important;
  color: #0F172A !important;
  border-color: #CBD5E1 !important;
}
body.light-theme #adminGstModal #adminGstRateInput {
  color: #92400E !important;
}
body.light-theme #adminGstModal #adminGstRegNoInput {
  color: #0284C7 !important;
}
body.light-theme #adminCpfYearInput {
  background: #FFFFFF !important;
  color: #0F172A !important;
  border-color: #CBD5E1 !important;
}
body.light-theme #cpfMainSyncBtn {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%) !important;
  color: #FFFFFF !important;
  border-color: #0284C7 !important;
}

/* ==============================================================================
   10.31 ADMIN CYBERSECURITY OVERVIEW & THREAT INTELLIGENCE (#adminContentIpManager)
   ============================================================================== */

#adminContentIpManager {
  animation: fadeInAdminTab 0.25s ease-in-out;
}

.cyber-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

@media (max-width: 1200px) {
  .cyber-kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .cyber-kpi-grid {
    grid-template-columns: 1fr;
  }
}

.cyber-kpi-card {
  background: #0B192C;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 14px 16px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.cyber-kpi-card:hover {
  transform: translateY(-2px);
  border-color: #38BDF8;
}

/* Threat Incident Cards */
.cyber-threat-card {
  background: #0B192C;
  border-radius: 10px;
  padding: 16px 20px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.cyber-threat-card.threat-level-critical {
  border: 1px solid #EF4444;
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.08) 0%, #0B192C 100%);
  box-shadow: 0 4px 18px rgba(239, 68, 68, 0.12);
}

.cyber-threat-card.threat-level-high {
  border: 1px solid #F97316;
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.08) 0%, #0B192C 100%);
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.10);
}

.cyber-threat-card.threat-level-medium {
  border: 1px solid #F59E0B;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.08) 0%, #0B192C 100%);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.08);
}

.cyber-threat-card.threat-level-low {
  border: 1px solid #38BDF8;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.08) 0%, #0B192C 100%);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.08);
}

.cyber-threat-card.is-resolved {
  opacity: 0.72;
  border-style: dashed;
}

.badge-threat-level {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-threat-critical {
  background: rgba(239, 68, 68, 0.18);
  color: #EF4444;
  border: 1px solid #EF4444;
}

.badge-threat-high {
  background: rgba(249, 115, 22, 0.18);
  color: #F97316;
  border: 1px solid #F97316;
}

.badge-threat-medium {
  background: rgba(245, 158, 11, 0.18);
  color: #F59E0B;
  border: 1px solid #F59E0B;
}

.badge-threat-low {
  background: rgba(56, 189, 248, 0.18);
  color: #38BDF8;
  border: 1px solid #38BDF8;
}

.cyber-threat-endpoint {
  font-family: 'SF Mono', Consolas, monospace;
  font-size: 0.78rem;
  color: #F5D061;
  background: rgba(245, 208, 97, 0.10);
  border: 1px solid rgba(245, 208, 97, 0.25);
  padding: 2px 7px;
  border-radius: 4px;
}

.cyber-threat-ip {
  font-family: 'SF Mono', Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 700;
  color: #F8FAFC;
}

.cyber-threat-dns {
  font-family: 'SF Mono', Consolas, monospace;
  font-size: 0.74rem;
  color: #94A3B8;
}

.btn-cyber-block {
  background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
  color: #FFFFFF;
  border: none;
  font-weight: 700;
  font-size: 0.76rem;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.25);
}

.btn-cyber-block:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.btn-cyber-unblock {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.4);
  font-weight: 700;
  font-size: 0.76rem;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-cyber-unblock:hover {
  background: rgba(16, 185, 129, 0.25);
  color: #34D399;
}

/* Print Overrides for Cyber Threat Audit Report */
@media print {
  body * {
    visibility: hidden;
  }
  #adminCyberThreatReportModal,
  #adminCyberThreatReportModal * {
    visibility: visible;
  }
  #adminCyberThreatReportModal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    background: #FFFFFF !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  #adminCyberThreatReportModal .modal-card {
    max-width: 100% !important;
    width: 100% !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    background: #FFFFFF !important;
  }
  #adminCyberThreatReportModal .no-print {
    display: none !important;
  }
  #cyberReportPrintableSheet {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
  }
}

/* Light Theme Overrides for CyberSecurity */
body.light-theme #adminTab-security .cyber-kpi-card,
body.light-theme #adminContentIpManager .cyber-kpi-card {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04) !important;
}

body.light-theme #adminTab-security .cyber-threat-card,
body.light-theme #adminContentIpManager .cyber-threat-card,
body.light-theme .cyber-threat-card {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
}

body.light-theme .cyber-threat-card span[style*="color: #F8FAFC"],
body.light-theme .cyber-threat-card span[style*="color:#F8FAFC"] {
  color: #0F172A !important;
}

body.light-theme #cyberSubContentThreats > div:first-child,
body.light-theme #cyberSubContentVisitors > div:first-child,
body.light-theme #cyberSubContentFirewall > div:first-child,
body.light-theme #cyberSubContentMalware > div:first-child {
  background: #F8FAFC !important;
  border-color: #CBD5E1 !important;
}

body.light-theme #adminTab-security .cyber-threat-ip,
body.light-theme #adminContentIpManager .cyber-threat-ip {
  color: #0F172A !important;
}

body.light-theme #adminTab-security select,
body.light-theme #adminTab-security input,
body.light-theme #adminContentIpManager select,
body.light-theme #adminContentIpManager input {
  background: #F8FAFC !important;
  color: #0F172A !important;
  border-color: #CBD5E1 !important;
}

body.light-theme #mapDisplayProviderTitle {
  color: #0F172A !important;
}

/* ==============================================================================
   10.32 ADMIN CYBERSECURITY: VISITOR TRAFFIC (#cyberSubContentVisitors)
   ============================================================================== */

#adminIpVisitorTable tbody tr {
  border-bottom: 1px solid #1E3E62;
  transition: background-color 0.15s ease;
}

#adminIpVisitorTable tbody tr:hover {
  background-color: rgba(30, 62, 98, 0.35);
}

/* Live Traffic Toggle Switch */
.live-traffic-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 20px;
  margin: 0;
  cursor: pointer;
  vertical-align: middle;
}

.live-traffic-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  position: absolute;
}

.live-traffic-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #334155;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 20px;
  border: 1px solid #475569;
}

.live-traffic-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 2px;
  bottom: 2px;
  background-color: #FFFFFF;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.live-traffic-switch input:checked + .live-traffic-slider {
  background-color: #10B981;
  border-color: #059669;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.live-traffic-switch input:checked + .live-traffic-slider:before {
  transform: translateX(18px);
}

body.light-theme .live-traffic-switch input:checked + .live-traffic-slider {
  background-color: #10B981 !important;
  border-color: #059669 !important;
}

body.light-theme .live-traffic-slider {
  background-color: #CBD5E1;
  border-color: #94A3B8;
}

.visitor-ip-text {
  font-family: 'SF Mono', Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 700;
  color: #F5D061;
}

.geo-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.70rem;
  font-weight: 700;
}

.geo-badge-sg {
  background: rgba(239, 68, 68, 0.12);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.geo-badge-intl {
  background: rgba(56, 189, 248, 0.12);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.geo-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.geo-dot-red {
  background: #EF4444;
  box-shadow: 0 0 5px #EF4444;
}

.geo-dot-blue {
  background: #38BDF8;
  box-shadow: 0 0 5px #38BDF8;
}

.visitor-dns-text {
  font-family: 'SF Mono', Consolas, monospace;
  font-size: 0.76rem;
  color: #F8FAFC;
  word-break: break-all;
}

.visitor-isp-text {
  font-size: 0.70rem;
  color: #94A3B8;
  margin-top: 2px;
}

.badge-route-pill {
  display: inline-block;
  font-family: 'SF Mono', Consolas, monospace;
  font-size: 0.74rem;
  color: #F5D061;
  background: rgba(245, 208, 97, 0.10);
  border: 1px solid rgba(245, 208, 97, 0.25);
  padding: 2px 8px;
  border-radius: 4px;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge-visitor-threat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 9999px;
  font-size: 0.70rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.badge-visitor-safe {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-visitor-medium {
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.badge-visitor-high {
  background: rgba(249, 115, 22, 0.15);
  color: #F97316;
  border: 1px solid rgba(249, 115, 22, 0.35);
}

.badge-visitor-critical {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.btn-visitor-block {
  background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
  color: #FFFFFF;
  border: none;
  font-weight: 700;
  font-size: 0.74rem;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.25);
}

.btn-visitor-block:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.4);
}

.btn-visitor-unblock {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.4);
  font-weight: 700;
  font-size: 0.74rem;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.btn-visitor-unblock:hover {
  background: rgba(16, 185, 129, 0.25);
  color: #34D399;
}

/* Light Theme Overrides for Visitor Traffic */
body.light-theme #cyberSubContentVisitors .admin-table-wrap {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04) !important;
}

body.light-theme #adminIpVisitorTable thead tr {
  background: #F8FAFC !important;
  border-bottom: 1px solid #E2E8F0 !important;
  color: #475569 !important;
}

body.light-theme #adminIpVisitorTable tbody tr {
  border-bottom: 1px solid #F1F5F9 !important;
}

body.light-theme #adminIpVisitorTable tbody tr:hover {
  background: #F8FAFC !important;
}

body.light-theme .visitor-dns-text {
  color: #0F172A !important;
}

/* =======================================================
   10.33 FIREWALL BLOCKS & GATEKEEPER 403 STYLES
   wukplace.sg Zero-Trust Perimeter Edge Drop
   ======================================================= */

.firewall-ip-text {
  color: #EF4444;
  font-family: monospace;
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0.3px;
}

.badge-firewall-drop {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.35);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-firewall-drop::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #EF4444;
  box-shadow: 0 0 6px #EF4444;
}

.btn-firewall-unblock {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.4);
  font-weight: 700;
  font-size: 0.74rem;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.btn-firewall-unblock:hover {
  background: rgba(16, 185, 129, 0.25);
  color: #34D399;
  border-color: #10B981;
}

.btn-firewall-test403 {
  background: rgba(56, 189, 248, 0.12);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-weight: 700;
  font-size: 0.74rem;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.btn-firewall-test403:hover {
  background: rgba(56, 189, 248, 0.22);
  color: #7DD3FC;
}

/* Light Theme Overrides for Firewall Blocks */
body.light-theme #cyberSubContentFirewall .admin-table-wrap {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04) !important;
}

body.light-theme #adminBlockedIpsTable thead tr {
  background: #F8FAFC !important;
  border-bottom: 1px solid #E2E8F0 !important;
  color: #475569 !important;
}

body.light-theme #adminBlockedIpsTable tbody tr {
  border-bottom: 1px solid #F1F5F9 !important;
}

body.light-theme #adminBlockedIpsTable tbody tr:hover {
  background: #F8FAFC !important;
}

body.light-theme .firewall-ip-text {
  color: #DC2626 !important;
}

body.light-theme #adminBlockIpModal .modal-card {
  background: #FFFFFF !important;
  border-color: #CBD5E1 !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

body.light-theme #adminBlockIpModal input,
body.light-theme #adminBlockIpModal select {
  background: #F8FAFC !important;
  border-color: #CBD5E1 !important;
  color: #0F172A !important;
}

/* =======================================================
   10.34 MALWARE GUARD & HEURISTIC INSPECTION STYLES
   wukplace.sg Client & Server Heuristic Inspection Shield
   ======================================================= */

.malware-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  display: inline-block;
  box-shadow: 0 0 4px rgba(16, 185, 129, 0.4);
  /* Dynamic pulse stopped */
}

.badge-malware-pdf {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.35);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge-malware-media {
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge-malware-url {
  background: rgba(168, 85, 247, 0.15);
  color: #C084FC;
  border: 1px solid rgba(168, 85, 247, 0.35);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge-malware-rejected {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.35);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-malware-test {
  background: rgba(56, 189, 248, 0.12);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0 10px;
  height: 30px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.btn-malware-test:hover {
  background: rgba(56, 189, 248, 0.22);
  color: #7DD3FC;
}

/* Light Theme Overrides for Malware Guard */
body.light-theme #cyberSubContentMalware .admin-table-wrap {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04) !important;
}

body.light-theme #securityThreatLogsTable thead tr {
  background: #F8FAFC !important;
  border-bottom: 1px solid #E2E8F0 !important;
  color: #475569 !important;
}

body.light-theme #securityThreatLogsTable tbody tr {
  border-bottom: 1px solid #F1F5F9 !important;
}

body.light-theme #securityThreatLogsTable tbody tr:hover {
  background: #F8FAFC !important;
}

/* =======================================================
   10.35 VISITOR LIVE CONNECTION STREAM LIFECYCLE STYLES
   Active strictly when Visitor Traffic sub-tab is focused
   ======================================================= */

.visitor-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #64748B;
  display: inline-block;
  box-shadow: none;
  /* Dynamic pulse stopped */
}

.badge-stream-live {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #10B981 !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
}

.badge-stream-standby {
  background: rgba(148, 163, 184, 0.12) !important;
  color: #94A3B8 !important;
  border: 1px solid rgba(148, 163, 184, 0.3) !important;
}

.row-new-visitor-flash {
  animation: visitorRowFlash 1.5s ease-out;
}

@keyframes visitorRowFlash {
  0% {
    background-color: rgba(56, 189, 248, 0.22);
  }
  100% {
    background-color: transparent;
  }
}

/* ==============================================================================
   18. ADD PROPERTY FORM & DETAIL PROPERTY INSPECTION SUITES
   ============================================================================== */

/* Modal Overrides & Navy Palette Tokens */
.modal-deep-navy {
  background: #0B192C !important;
  border: 1px solid #334155 !important;
  color: #F8FAFC !important;
}

.bg-navy-input {
  background: #0F172A !important;
  border: 1px solid #334155 !important;
}

/* Credit Deduction Rules Banner */
.credit-rule-banner-suite {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(245, 208, 97, 0.4);
  border-left: 4px solid #F5D061;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 0.86rem;
  color: #E2E8F0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.credit-balance-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 208, 97, 0.15);
  color: #F5D061;
  border: 1px solid rgba(245, 208, 97, 0.35);
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.82rem;
}

/* OneMap Predictive Autocomplete Dropdown */
.onemap-autocomplete-container {
  position: relative;
  width: 100%;
}

.onemap-results-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 240px;
  overflow-y: auto;
  background: #0B192C;
  border: 1px solid #334155;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.6);
  z-index: 1050;
  margin-top: 4px;
}

.onemap-result-item {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
  cursor: pointer;
  transition: background 0.15s ease;
  font-size: 0.84rem;
  color: #E2E8F0;
}

.onemap-result-item:hover {
  background: #1E293B;
  color: #F5D061;
}

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

/* District Detection Chip */
.district-detect-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(56, 189, 248, 0.15);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 3px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.78rem;
}

/* Goods Access Container Box (#postModal) */
.goods-access-container-box {
  background: #080E21;
  border: 1px solid #1E293B;
  border-radius: 8px;
  padding: 10px 12px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.goods-access-container-box .goods-access-header {
  font-size: 0.75rem;
  font-weight: 700;
  color: #CBD5E1;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

body.light-theme .goods-access-container-box {
  background: #F0F7FC !important;
  border: 1px solid #BAE6FD !important;
  box-shadow: inset 0 1px 3px rgba(11, 34, 56, 0.05);
}

body.light-theme .goods-access-container-box .goods-access-header {
  color: #0369A1 !important;
}

/* 11 Goods Access Checkbox Matrix - Even Row Distribution */
.goods-access-grid-11 {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: transparent;
  padding: 0;
  border: none;
}

@media (max-width: 768px) {
  .goods-access-grid-11 {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 520px) {
  .goods-access-grid-11 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 360px) {
  .goods-access-grid-11 {
    grid-template-columns: 1fr !important;
  }
}

.goods-check-label {
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #0B192C !important;
  border: 1px solid #1E293B !important;
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
  font-size: 0.80rem;
  color: #CBD5E1 !important;
  transition: all 0.15s ease;
  width: 100%;
  box-sizing: border-box;
}

.goods-check-label span {
  color: #CBD5E1 !important;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.goods-check-label:hover {
  border-color: #38BDF8 !important;
  color: #FFFFFF !important;
  background: #132238 !important;
}

.goods-check-label:hover span {
  color: #FFFFFF !important;
}

.goods-check-label input[type="checkbox"] {
  accent-color: #10B981;
  width: 15px;
  height: 15px;
  cursor: pointer;
  margin: 0;
}

.goods-check-label.is-checked {
  background: rgba(16, 185, 129, 0.18) !important;
  border-color: #10B981 !important;
  color: #34D399 !important;
}

.goods-check-label.is-checked span {
  color: #34D399 !important;
  font-weight: 700 !important;
}

/* Light Mode: High Contrast Distinct Option Backgrounds & Wordings */
body.light-theme .goods-check-label {
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  border-radius: 6px;
  color: #0F172A !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

body.light-theme .goods-check-label span {
  color: #0F172A !important;
  font-weight: 700 !important;
}

body.light-theme .goods-check-label:hover {
  background: #F8FAFC !important;
  border-color: #0284C7 !important;
  color: #0284C7 !important;
}

body.light-theme .goods-check-label:hover span {
  color: #0284C7 !important;
}

body.light-theme .goods-check-label.is-checked {
  background: #ECFDF5 !important;
  border: 1.5px solid #10B981 !important;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.22) !important;
  color: #065F46 !important;
}

body.light-theme .goods-check-label.is-checked span {
  color: #065F46 !important;
  font-weight: 800 !important;
}

/* Clean Photo Dropzone & Canvas */
.clean-photo-suite-dropzone {
  border: 2px dashed #334155;
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  background: #0F172A;
  cursor: pointer;
  transition: all 0.2s ease;
}

.clean-photo-suite-dropzone:hover,
.clean-photo-suite-dropzone.drag-over {
  border-color: #F5D061;
  background: rgba(245, 208, 97, 0.05);
}

.photo-preview-grid-suite {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
  width: 100%;
  box-sizing: border-box;
}

.photo-preview-card-suite {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  min-width: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #334155;
  background: #080E21;
  cursor: grab;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
}

.photo-preview-card-suite:active {
  cursor: grabbing;
}

.photo-preview-card-suite.chosen-photo,
.photo-preview-card-suite.active {
  border: 2px solid #F5D061 !important;
  box-shadow: 0 0 12px rgba(245, 208, 97, 0.75) !important;
  transform: scale(1.02);
  z-index: 2;
}

.photo-preview-card-suite.drag-over {
  border: 2px dashed #38BDF8 !important;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5) !important;
  transform: scale(0.96);
  opacity: 0.85;
}

.photo-preview-card-suite.is-dragging {
  opacity: 0.35;
  transform: scale(0.92);
}

.photo-preview-card-suite img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.photo-badge-index {
  position: absolute;
  top: 3px;
  left: 3px;
  max-width: calc(100% - 25px);
  overflow: hidden;
  text-overflow: ellipsis;
  background: rgba(11, 25, 44, 0.88);
  color: #F5D061;
  font-size: 0.60rem;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 3px;
  border: 1px solid rgba(245, 208, 97, 0.5);
  pointer-events: none;
  white-space: nowrap;
  line-height: 1.2;
  z-index: 2;
}

.photo-badge-index.badge-chosen {
  background: #F5D061;
  color: #080E21;
  border-color: #F5D061;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.photo-remove-btn-suite {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.9);
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.60rem;
  padding: 0;
  line-height: 1;
  transition: transform 0.15s ease;
}

.photo-remove-btn-suite:hover {
  transform: scale(1.15);
  background: #EF4444;
}

body.light-theme .photo-preview-card-suite {
  background: #EDF8FD;
  border-color: #B5D7ED;
}

/* Freshness Radio Group */
.freshness-radios-suite {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.freshness-radio-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #0F172A;
  border: 1px solid #334155;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.80rem;
  color: #94A3B8;
  transition: all 0.15s ease;
}

.freshness-radio-pill:hover,
.freshness-radio-pill input:checked + span {
  color: #F8FAFC;
}

.freshness-radio-pill input[type="radio"] {
  accent-color: #38BDF8;
}

/* ==============================================================================
   DETAIL PROPERTY PAGE & INSPECTION SUITE
   ============================================================================== */

/* Modal Card Sizing */
.modal-details-suite {
  max-width: 1080px !important;
  width: 95vw !important;
  max-height: 94vh !important;
  overflow-y: auto !important;
  background: var(--modal-card-bg, linear-gradient(180deg, #023D5B 0%, #012235 100%)) !important;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.22)) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.45) !important;
  border-radius: 16px !important;
  padding: 24px !important;
  color: var(--text-main, #FFFFFF) !important;
  box-shadow: 0 24px 60px -8px rgba(0, 0, 0, 0.8), 0 0 35px rgba(2, 61, 91, 0.45) !important;
}

/* Official URA Zone Badges */
.ura-badge-b1 { background-color: #D966A5 !important; color: #FFFFFF !important; }
.ura-badge-b2 { background-color: #800080 !important; color: #FFFFFF !important; }
.ura-badge-office { background-color: #003366 !important; color: #FFFFFF !important; }
.ura-badge-food { background-color: #0D9488 !important; color: #FFFFFF !important; }
.ura-badge-bp { background-color: #0284C7 !important; color: #FFFFFF !important; }
.ura-badge-shophouse { background-color: #D97706 !important; color: #FFFFFF !important; }
.ura-badge-retail { background-color: #EA580C !important; color: #FFFFFF !important; }
.ura-badge-land { background-color: #16A34A !important; color: #FFFFFF !important; }

/* Photo Gallery Suite */
.detail-gallery-container {
  position: relative;
  width: 100%;
  margin-bottom: 20px;
}

.detail-photo-viewport {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: 12px;
  overflow: hidden;
  background: #080E21;
  border: 1px solid #334155;
}

.detail-photo-viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s ease-in-out;
}

.detail-tag-counter-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(11, 25, 44, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(245, 208, 97, 0.5);
  color: #F5D061;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 5;
}

.detail-thumb-strip {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  width: 100%;
  box-sizing: border-box;
  justify-content: space-between;
  overflow: hidden;
  padding-bottom: 4px;
}

.detail-thumb-btn {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  margin: 0;
  background: #080E21;
  transition: all 0.2s ease;
}

.detail-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-thumb-btn:hover {
  transform: translateY(-2px);
  border-color: #38BDF8;
}

.detail-thumb-btn.active {
  border-color: #F5D061 !important;
  box-shadow: 0 0 8px rgba(245, 208, 97, 0.6);
}

.detail-thumb-index-tag {
  position: absolute;
  bottom: 3px;
  right: 3px;
  background: rgba(11, 25, 44, 0.85);
  color: #F8FAFC;
  font-size: 0.64rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
}

/* 5-Column Technical Industrial Specs Box (Goods Access double width: repeat(4, 1fr) 2fr) */
.detail-specs-box {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 2fr;
  gap: 12px;
  background: #0F172A;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
}

@media (max-width: 860px) {
  .detail-specs-box {
    grid-template-columns: repeat(2, 1fr);
  }
  .detail-specs-box .spec-col-cell:last-child {
    grid-column: span 2;
  }
}
@media (max-width: 520px) {
  .detail-specs-box {
    grid-template-columns: 1fr;
  }
}

.spec-col-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 8px;
  border-right: 1px solid rgba(51, 65, 85, 0.6);
}

.spec-col-cell:last-child {
  border-right: none;
}

.spec-col-title {
  font-size: 0.70rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #F5D061;
}

.spec-col-value {
  font-size: 0.95rem;
  font-weight: 800;
  color: #F8FAFC;
  line-height: 1.3;
  word-break: break-word;
}

/* Content Columns (2-Column Desktop Grid) */
.detail-content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  margin-bottom: 24px;
}

@media (max-width: 860px) {
  .detail-content-grid {
    grid-template-columns: 1fr;
  }
}

/* Responsive 16:9 YouTube Container */
.detail-yt-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #334155;
  background: #000;
  margin-top: 14px;
}

.detail-yt-box iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* 360 Virtual Tour Container */
.detail-360-box {
  position: relative;
  width: 100%;
  height: 320px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #334155;
  background: #080E21;
  margin-top: 14px;
}

.detail-360-box iframe,
.detail-360-box canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Agent Profile Card */
.detail-agent-box {
  background: #0F172A;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.agency-border-propnex { border-color: #D97706 !important; }
.agency-border-era { border-color: #DC2626 !important; }
.agency-border-huttons { border-color: #2563EB !important; }
.agency-border-orangetee { border-color: #EA580C !important; }
.agency-border-sri { border-color: #4F46E5 !important; }
.agency-border-savills { border-color: #F59E0B !important; }
.agency-border-cbre { border-color: #059669 !important; }
.agency-border-jll { border-color: #E11D48 !important; }
.agency-border-colliers { border-color: #0284C7 !important; }
.agency-border-knightfrank { border-color: #9333EA !important; }
.agency-border-cushman { border-color: #0D9488 !important; }

.cea-check-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
}

.cea-check-badge:hover {
  background: #10B981;
  color: #FFFFFF;
}

/* Lead Action Buttons */
.btn-lead-whatsapp {
  background: #25D366 !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: background 0.15s ease !important;
}
.btn-lead-whatsapp:hover {
  background: #1EBE5D !important;
}

.btn-lead-email {
  background: #0284C7 !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: background 0.15s ease !important;
}
.btn-lead-email:hover {
  background: #0369A1 !important;
}

/* Action Controls Single Row */
.owner-controls-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid #334155;
}

/* Leaflet Map Canvas in Detail Suite */
.detail-map-canvas-container {
  position: relative;
  width: 100%;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #334155;
  background: #080E21;
}

.detail-map-canvas-container .leaflet-container {
  width: 100%;
  height: 100%;
  background: #080E21;
}

/* ==============================================================================
   DETAIL PROPERTY SPECIFICATION ENHANCEMENTS (ROW-BY-ROW SPEC TOKENS)
   ============================================================================== */
.zoning-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
}
.zoning-badge.zoning-b1 { background-color: var(--ura-b1, #D966A5) !important; color: #FFFFFF !important; }
.zoning-badge.zoning-b2 { background-color: var(--ura-b2, #8B3F97) !important; color: #FFFFFF !important; }
.zoning-badge.zoning-bp { background-color: var(--ura-bp, #00A896) !important; color: #FFFFFF !important; }
.zoning-badge.zoning-comm, .zoning-badge.zoning-office { background-color: var(--ura-comm, #0091EA) !important; color: #FFFFFF !important; }
.zoning-badge.zoning-shophouse { background-color: var(--ura-shophouse, #E67E22) !important; color: #FFFFFF !important; }
.zoning-badge.zoning-food { background-color: var(--ura-food, #27AE60) !important; color: #FFFFFF !important; }
.zoning-badge.zoning-retail { background-color: var(--ura-retail, #E74C3C) !important; color: #FFFFFF !important; }
.zoning-badge.zoning-land { background-color: var(--ura-land, #8D6E63) !important; color: #FFFFFF !important; }

body.light-theme .zoning-badge,
body.light-theme .modal-card .zoning-badge,
body.light-theme .modal-details-suite .zoning-badge,
body.light-theme .property-card .zoning-badge,
body.light-theme .property-list-card .zoning-badge,
body.light-theme .zoning-badge *,
body.light-theme [class*="ura-badge-"],
body.light-theme .zoning-pill-lg {
  color: #FFFFFF !important;
}

.detail-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.25;
  margin: 6px 0 4px 0;
  letter-spacing: -0.01em;
}

body.light-theme .detail-title {
  color: #0F172A !important;
}

.detail-location {
  font-size: 0.85rem;
  color: #94A3B8;
  font-family: monospace;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

body.light-theme .detail-location {
  color: #475569 !important;
}

.ref-chip {
  background: #1E293B;
  border: 1px solid #334155;
  color: #CBD5E1;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-weight: 700;
  font-size: 0.80rem;
}

body.light-theme .ref-chip {
  background: transparent !important;
  border: 1px solid #6DAED8 !important;
  color: #0F172A !important;
}

.modal-price-val {
  font-size: 1.75rem;
  font-weight: 800;
  color: #F5D061;
  text-shadow: 0 0 12px rgba(245, 208, 97, 0.25);
  text-align: right;
  white-space: nowrap;
}

body.light-theme .modal-price-val {
  color: #0F172A !important;
  text-shadow: none !important;
}

.modal-psf-val {
  font-size: 0.90rem;
  font-weight: 600;
  color: #10B981;
  text-align: right;
  margin-top: 2px;
  font-family: monospace;
}

body.light-theme .modal-psf-val {
  color: #1E293B !important;
  font-weight: 700 !important;
}

#detailPhotoTagHeader {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.80rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 0;
}
#detailPhotoTagHeader.tag-recent {
  color: #10B981;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
#detailPhotoTagHeader.tag-old {
  color: #F59E0B;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
}
#detailPhotoTagHeader.tag-indicative {
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

body.light-theme #detailPhotoTagHeader.tag-recent {
  color: #059669;
  background: #ECFDF5;
  border-color: #10B981;
}
body.light-theme #detailPhotoTagHeader.tag-old {
  color: #D97706;
  background: #FFFBEB;
  border-color: #F59E0B;
}
body.light-theme #detailPhotoTagHeader.tag-indicative {
  color: #0284C7;
  background: #F0F9FF;
  border-color: #0284C7;
}

.detail-thumb-card {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  height: 64px;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  overflow: hidden;
  padding: 0;
  margin: 0;
  background: #080E21;
}
.detail-thumb-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.detail-thumb-card:hover {
  transform: translateY(-2px);
  border-color: #38BDF8;
}
.detail-thumb-card.active {
  border: 2px solid #F5D061 !important;
  border-color: #F5D061 !important;
  box-shadow: 0 0 10px rgba(245, 208, 97, 0.65) !important;
  transform: scale(1.04);
  z-index: 2;
}

body.light-theme .detail-thumb-btn,
body.light-theme .detail-thumb-card {
  background: #EDF8FD;
}
.thumb-seq-badge {
  font-size: 10px;
  background: rgba(0, 0, 0, 0.75);
  color: #FFF;
  padding: 1px 4px;
  border-radius: 3px;
  position: absolute;
  top: 4px;
  left: 4px;
  font-family: monospace;
  font-weight: 700;
}

.detail-specs-box {
  background: #0F172A;
  border: 1px solid #334155;
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(4, 1fr) 2fr;
  gap: 12px;
  padding: 14px 16px;
  margin: 16px 0;
}
@media (max-width: 860px) {
  .detail-specs-box {
    grid-template-columns: repeat(2, 1fr);
  }
  .detail-specs-box .spec-col-cell:last-child {
    grid-column: span 2;
  }
}
@media (max-width: 520px) {
  .detail-specs-box {
    grid-template-columns: 1fr;
  }
  .detail-specs-box .spec-col-cell:last-child {
    grid-column: span 1;
  }
}

.spec-col-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 2px 6px;
  border-right: 1px solid rgba(51, 65, 85, 0.6);
}
.spec-col-cell:last-child {
  border-right: none;
}
.spec-col-title {
  font-size: 0.70rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94A3B8;
}
.spec-col-value {
  font-size: 0.95rem;
  font-weight: 800;
  color: #F8FAFC;
  line-height: 1.3;
  word-break: break-word;
  font-family: monospace;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
@media (max-width: 860px) {
  .detail-content-grid {
    grid-template-columns: 1fr;
  }
}

.detail-desc-box {
  background: #0F172A;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 16px;
}
.detail-desc-text {
  white-space: pre-line;
  line-height: 1.65;
  color: #CBD5E1;
  font-size: 0.95rem;
  word-break: break-word;
}

.detail-yt-box {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #000;
  margin-top: 12px;
}
.detail-yt-box iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.detail-360-iframe {
  width: 100%;
  height: 420px;
  border-radius: 8px;
  border: 1px solid #334155;
  margin-top: 12px;
}

.detail-agent-box {
  background: #0F172A;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.agency-ring-propnex { border: 3px solid #D4AF37 !important; }
.agency-ring-era { border: 3px solid #ED1B24 !important; }
.agency-ring-huttons { border: 3px solid #800000 !important; }
.agency-ring-orangetee { border: 3px solid #FF6600 !important; }
.agency-ring-sri { border: 3px solid #0B4F37 !important; }
.agency-ring-luxury { border: 3px solid #D4AF37 !important; }

.agent-verified-badge,
.cea-verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #10B981;
  border-radius: 12px;
  font-size: 0.75rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.15s ease;
}
.agent-verified-badge:hover,
.cea-verified-pill:hover {
  background: #10B981;
  color: #FFFFFF;
}

body.light-theme .agent-verified-badge,
body.light-theme .cea-verified-pill {
  background: rgba(5, 150, 105, 0.12) !important;
  border-color: rgba(5, 150, 105, 0.35) !important;
  color: #059669 !important;
}
body.light-theme .agent-verified-badge:hover,
body.light-theme .cea-verified-pill:hover {
  background: #059669 !important;
  color: #FFFFFF !important;
}

.detail-contact-row {
  display: flex;
  gap: 10px;
}

.btn-contact-email {
  background: #0B192C;
  border: 1px solid #334155;
  color: #FFFFFF;
  height: 42px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.86rem;
  flex: 1;
  transition: background 0.15s;
}
.btn-contact-email:hover {
  background: #1E293B;
  color: #38BDF8;
}

.btn-contact-whatsapp {
  background: #25D366;
  color: #FFFFFF;
  font-weight: 700;
  border: none;
  height: 42px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.86rem;
  flex: 1;
  transition: background 0.15s;
}
.btn-contact-whatsapp:hover {
  background: #1EBE5D;
}

.detail-utility-row {
  display: flex;
  gap: 8px;
}

.btn-utility-action {
  height: 34px;
  background: #1E293B;
  border: 1px solid #334155;
  color: #E2E8F0;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
  transition: all 0.15s;
}
.btn-utility-action:hover {
  background: #334155;
  color: #FFF;
}

.btn-add-client {
  background: rgba(245, 208, 97, 0.12);
  border: 1px solid rgba(245, 208, 97, 0.4);
  color: #F5D061;
  font-weight: 700;
  height: 38px;
  border-radius: 6px;
  width: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.82rem;
  transition: all 0.15s;
}
.btn-add-client:hover {
  background: rgba(245, 208, 97, 0.22);
}

.btn-close-modal {
  background: #1E293B;
  color: #E2E8F0;
  border: 1px solid #334155;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.86rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s;
}
.btn-close-modal:hover {
  background: #334155;
  color: #FFF;
}

/* ==============================================================================
   DETAIL PROPERTY PAGE & INSPECTION SUITE - LIGHT MODE (SKY BLUE PALETTE)
   Matches the main page background sky-blue canvas for the modal surface
   ============================================================================== */

/* 0. Detail Property Modal Surface - Matches Main Page Blue Background */
body.light-theme .modal-details-suite,
body.light-theme #detailContent,
body.light-theme #propertyModalContent,
body.light-theme #detailModal .modal-card,
body.light-theme #propertyModal .modal-card {
  background: radial-gradient(circle at 50% 0%, #AEE0FA 0%, #8DC3E9 100%) !important;
  background-color: #8DC3E9 !important;
  border: 2px solid #0284C7 !important;
  border-top: 2px solid #FFFFFF !important;
  box-shadow: 
    0 24px 60px -10px rgba(11, 34, 56, 0.25), 
    0 12px 28px -4px rgba(11, 34, 56, 0.14), 
    0 0 0 1px rgba(2, 132, 199, 0.3),
    inset 0 1px 1px #FFFFFF, 
    inset 0 -2px 1px rgba(2, 132, 199, 0.25) !important;
  color: #0F172A !important;
}

body.light-theme .modal-details-suite .detail-photo-viewport,
body.light-theme #detailContent .detail-photo-viewport {
  border: 2px solid #0284C7 !important;
  box-shadow: 0 6px 20px rgba(11, 34, 56, 0.18), 0 0 0 1px rgba(2, 132, 199, 0.25) !important;
}

/* 1. Technical Industrial Specs Box */
body.light-theme .detail-specs-box {
  background: linear-gradient(180deg, rgba(240, 249, 254, 0.96) 0%, rgba(226, 239, 247, 0.96) 100%) !important;
  border: 1.5px solid #0284C7 !important;
  box-shadow: 0 4px 14px rgba(11, 34, 56, 0.12), 0 0 0 1px rgba(2, 132, 199, 0.2), inset 0 1px 1px #FFFFFF !important;
}
body.light-theme .spec-col-cell {
  border-right: 1.5px solid #7DD3FC !important;
}
body.light-theme .spec-col-cell:last-child {
  border-right: none !important;
}
body.light-theme .spec-col-title {
  color: #0284C7 !important;
  font-weight: 800 !important;
}
body.light-theme .spec-col-value {
  color: #0F172A !important;
  font-weight: 800 !important;
}

/* 2. Listing Description Box */
body.light-theme .detail-desc-box {
  background: linear-gradient(180deg, rgba(240, 249, 254, 0.96) 0%, rgba(226, 239, 247, 0.96) 100%) !important;
  border: 1.5px solid #0284C7 !important;
  box-shadow: 0 4px 14px rgba(11, 34, 56, 0.12), 0 0 0 1px rgba(2, 132, 199, 0.2), inset 0 1px 1px #FFFFFF !important;
}
body.light-theme .detail-desc-box .detail-section-subtitle,
body.light-theme .detail-section-subtitle {
  color: #0F172A !important;
  font-weight: 800 !important;
}
body.light-theme .detail-desc-text {
  color: #1E293B !important;
}

/* 3. Rich Media Box (360 Tour & Video) */
body.light-theme #detailRichMediaArea > div {
  background: linear-gradient(180deg, rgba(240, 249, 254, 0.96) 0%, rgba(226, 239, 247, 0.96) 100%) !important;
  border: 1.5px solid #0284C7 !important;
  box-shadow: 0 4px 14px rgba(11, 34, 56, 0.12), 0 0 0 1px rgba(2, 132, 199, 0.2), inset 0 1px 1px #FFFFFF !important;
}
body.light-theme #detailRichMediaArea h4 {
  color: #0F172A !important;
}
body.light-theme .detail-yt-box {
  border: 1.5px solid #0284C7 !important;
}
body.light-theme .detail-360-iframe {
  border: 1.5px solid #0284C7 !important;
}

/* 4. Agent Box & Info */
body.light-theme .detail-agent-box {
  background: linear-gradient(180deg, rgba(240, 249, 254, 0.96) 0%, rgba(226, 239, 247, 0.96) 100%) !important;
  border: 1.5px solid #0284C7 !important;
  box-shadow: 0 4px 14px rgba(11, 34, 56, 0.12), 0 0 0 1px rgba(2, 132, 199, 0.2), inset 0 1px 1px #FFFFFF !important;
}
body.light-theme .detail-agent-box [style*="color:#FFFFFF"],
body.light-theme .detail-agent-box [style*="color: #FFFFFF"] {
  color: #0F172A !important;
}
body.light-theme .detail-agent-box strong[style*="color:#CBD5E1"],
body.light-theme .detail-agent-box strong[style*="color: #CBD5E1"] {
  color: #0F172A !important;
}
body.light-theme .detail-agent-box [style*="color:#94A3B8"],
body.light-theme .detail-agent-box [style*="color: #94A3B8"] {
  color: #475569 !important;
}
body.light-theme .detail-agent-box [style*="color:#D4AF37"] {
  color: #92400E !important;
}
body.light-theme .detail-agent-box [style*="border-top:1px solid #334155"] {
  border-top: 1.5px solid #7DD3FC !important;
}

/* 5. Buttons & Elements with Black Background inside Detail Page */
/* 5A. RES Agent's Listings Button */
body.light-theme .detail-agent-box button[onclick*="openAgentListingsModal"] {
  background: #FFFFFF !important;
  border: 1.5px solid #0284C7 !important;
  color: #0284C7 !important;
  box-shadow: 0 2px 6px rgba(11, 34, 56, 0.08), 0 0 0 1px rgba(2, 132, 199, 0.15) !important;
}
body.light-theme .detail-agent-box button[onclick*="openAgentListingsModal"]:hover {
  background: #E2EFF7 !important;
  color: #0369A1 !important;
  border-color: #0369A1 !important;
}

/* 5B. Email Contact Button */
body.light-theme .btn-contact-email {
  background: linear-gradient(180deg, #AEE0FA 0%, #8DC3E9 100%) !important;
  border: 1.5px solid #0284C7 !important;
  color: #080E21 !important;
  box-shadow: 0 3px 8px rgba(11, 34, 56, 0.14), 0 0 0 1px rgba(2, 132, 199, 0.2) !important;
}
body.light-theme .btn-contact-email:hover {
  background: linear-gradient(180deg, #BAE6FD 0%, #9ED2F5 100%) !important;
  color: #080E21 !important;
  border-color: #0369A1 !important;
}

/* 5C. Utility Action Row (Phone, Camera, Link) */
body.light-theme .btn-utility-action {
  background: #FFFFFF !important;
  border: 1.5px solid #0284C7 !important;
  color: #0284C7 !important;
  box-shadow: 0 2px 6px rgba(11, 34, 56, 0.08), 0 0 0 1px rgba(2, 132, 199, 0.15) !important;
}
body.light-theme .btn-utility-action:hover {
  background: #E2EFF7 !important;
  color: #0369A1 !important;
  border-color: #0369A1 !important;
}

/* 5D. Add to My Client Button */
body.light-theme .btn-add-client {
  background: linear-gradient(180deg, #F5D061 0%, #E5A93C 100%) !important;
  border: 1.5px solid #B45309 !important;
  color: #080E21 !important;
  font-weight: 800 !important;
  box-shadow: 0 3px 10px rgba(217, 119, 6, 0.35), 0 0 0 1px rgba(180, 83, 9, 0.25) !important;
}

/* 5E. Social Media Details Accordion */
body.light-theme .detail-agent-box details {
  background: #FFFFFF !important;
  border: 1.5px solid #0284C7 !important;
}
body.light-theme .detail-agent-box details summary {
  color: #0284C7 !important;
}

/* 5F. Location Map Canvas */
body.light-theme #detailMapCanvas {
  border: 1.5px solid #0284C7 !important;
}

/* 5G. Close Modal Buttons */
body.light-theme .btn-close-modal {
  background: linear-gradient(180deg, #FFFFFF 0%, #EFF8FD 100%) !important;
  color: #0F172A !important;
  border: 1.5px solid #0284C7 !important;
  font-weight: 700 !important;
  box-shadow: 0 3px 8px rgba(11, 34, 56, 0.1), 0 0 0 1px rgba(2, 132, 199, 0.15) !important;
}
body.light-theme .btn-close-modal:hover {
  background: #E2EFF7 !important;
  color: #0284C7 !important;
  border-color: #0369A1 !important;
}

body.light-theme .modal-close-btn {
  background: #FFFFFF !important;
  border: 1.5px solid #0284C7 !important;
  color: #0F172A !important;
  box-shadow: 0 2px 6px rgba(11, 34, 56, 0.1) !important;
}
body.light-theme .modal-close-btn:hover {
  background: #FEE2E2 !important;
  color: #DC2626 !important;
  border-color: #DC2626 !important;
}

/* 5H. Photo Viewport & Lightbox */
body.light-theme .detail-photo-viewport {
  background: #EFF8FD !important;
  border: 2px solid #0284C7 !important;
  box-shadow: 0 6px 20px rgba(11, 34, 56, 0.18), 0 0 0 1px rgba(2, 132, 199, 0.2) !important;
}

/* ==============================================================================
   MY PROPERTY TEMPLATES (#favouritesModal) - SPECIFICATION STYLES
   ============================================================================== */
#favouritesModal {
  z-index: 130000;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(8, 14, 33, 0.85);
}

.modal-info-banner {
  background: var(--navy-input, #080E21);
  border: 1px solid var(--border, #1E293B);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.fav-template-card {
  background: var(--navy-card, #0B192C);
  border: 1px solid var(--border, #1E293B);
  border-radius: 12px;
  padding: 14px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s, opacity 0.2s;
  user-select: none;
}

.fav-template-card.fav-slot-dragging {
  opacity: 0.45;
  border: 1px dashed #F5D061 !important;
}

.fav-template-card.fav-drag-over {
  border: 2px dashed #F5D061 !important;
  background: rgba(245, 208, 97, 0.06) !important;
}

.fav-template-card .drag-handle {
  cursor: grab;
  font-size: 1.1rem;
  padding: 4px 6px;
  color: var(--text-muted, #94A3B8);
  transition: color 0.2s;
}

.fav-template-card .drag-handle:active {
  cursor: grabbing;
}

.template-seq-badge {
  background: var(--navy-input, #080E21);
  border: 1px solid var(--border, #1E293B);
  color: #F5D061;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.fav-name-input {
  font-size: 0.95rem;
  font-weight: 800;
  background: var(--navy-input, #080E21);
  border: 1px solid var(--border, #1E293B);
  color: #FFFFFF;
  border-radius: 8px;
  padding: 6px 12px;
  flex: 1;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.fav-name-input:focus {
  outline: none;
  border-color: #38BDF8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.fav-btn-action {
  background: var(--navy-input, #080E21);
  border: 1px solid var(--border, #1E293B);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  height: 32px;
}

.fav-btn-trash {
  color: #F87171;
  border-color: rgba(248, 113, 113, 0.3);
  padding: 4px 10px;
}

.fav-btn-trash:hover {
  background: rgba(248, 113, 113, 0.15);
  border-color: #F87171;
  color: #EF4444;
}

.fav-btn-toggle {
  color: var(--text-muted, #94A3B8);
  padding: 4px 10px;
}

.fav-btn-toggle:hover {
  color: var(--text-main, #FFFFFF);
  background: rgba(255, 255, 255, 0.08);
}

.fav-expanded-drawer {
  background: var(--navy-input, #080E21);
  border: 1px solid var(--border, #1E293B);
  padding: 12px;
  border-radius: 10px;
  margin-top: 10px;
}

.fav-expanded-label {
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 5px;
  display: block;
  letter-spacing: 0.5px;
}

.fav-type-select {
  width: 100%;
  height: 38px;
  background: var(--navy-card, #0B192C);
  border: 1px solid var(--border, #1E293B);
  border-radius: 6px;
  color: var(--text-main, #E2E8F0);
  padding: 0 10px;
  font-size: 0.85rem;
  margin-bottom: 12px;
  outline: none;
}

.fav-type-select:focus {
  border-color: #38BDF8;
}

.fav-desc-textarea {
  width: 100%;
  background: var(--navy-card, #0B192C);
  border: 1px solid var(--border, #1E293B);
  color: #CBD5E1;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.82rem;
  line-height: 1.5;
  resize: vertical;
  font-family: inherit;
  box-sizing: border-box;
}

.fav-desc-textarea:focus {
  outline: none;
  border-color: #38BDF8;
  color: #FFFFFF;
}

/* Light Theme Overrides for #favouritesModal */
body.light-theme #favouritesModal .modal-header h3 {
  color: #0F172A !important;
}

body.light-theme #favouritesModal .modal-card {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
}

body.light-theme #favouritesModal .modal-info-banner {
  background: #F8FAFC !important;
  border-color: #E2E8F0 !important;
  color: #0F172A !important;
}

body.light-theme #favouritesModal .modal-info-banner strong {
  color: #D97706 !important;
}

body.light-theme .fav-template-card {
  background: #F8FAFC !important;
  border-color: #E2E8F0 !important;
}

body.light-theme .fav-template-card.fav-drag-over {
  background: rgba(217, 119, 6, 0.08) !important;
  border-color: #D97706 !important;
}

body.light-theme .fav-name-input {
  background: #FFFFFF !important;
  border-color: #CBD5E1 !important;
  color: #0F172A !important;
}

body.light-theme .template-seq-badge {
  background: #FEF3C7 !important;
  border-color: #FDE68A !important;
  color: #B45309 !important;
}

body.light-theme .fav-btn-action {
  background: #FFFFFF !important;
  border-color: #CBD5E1 !important;
}

body.light-theme .fav-btn-toggle {
  color: #64748B !important;
}

body.light-theme .fav-btn-toggle:hover {
  color: #0F172A !important;
  background: #E2E8F0 !important;
}

body.light-theme .fav-expanded-drawer {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
}

body.light-theme .fav-type-select {
  background: #F8FAFC !important;
  border-color: #CBD5E1 !important;
  color: #0F172A !important;
}

body.light-theme .fav-desc-textarea {
  background: #F8FAFC !important;
  border-color: #CBD5E1 !important;
  color: #0F172A !important;
}

body.light-theme #favConfirmDeleteModal .modal-card {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
}

body.light-theme #favConfirmDeleteTitle {
  color: #0F172A !important;
}

/* ==============================================================================
   MY CLIENTS CRM & ITINERARY GENERATOR (#savedClientsModal) - SPECIFICATION
   ============================================================================== */
#savedClientsModal {
  z-index: 130000;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(8, 14, 33, 0.85);
}

.client-slot-card {
  background: var(--navy-card, #0B192C);
  border: 1px solid var(--border, #1E293B);
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s, opacity 0.2s;
  user-select: none;
}

.client-slot-card.client-slot-dragging {
  opacity: 0.45;
  border: 1px dashed #F5D061 !important;
}

.client-slot-card.client-drag-over {
  border: 2px dashed #F5D061 !important;
  background: rgba(245, 208, 97, 0.06) !important;
}

.client-slot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.client-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.client-header-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.client-drag-handle {
  cursor: grab;
  font-size: 1rem;
  padding: 4px 6px;
  color: var(--text-muted, #94A3B8);
  transition: color 0.2s;
  flex-shrink: 0;
}

.client-drag-handle:active {
  cursor: grabbing;
}

.client-seq-badge {
  background: var(--navy-input, #080E21);
  border: 1px solid var(--border, #1E293B);
  color: #F5D061;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.client-name-input {
  font-size: 0.88rem;
  font-weight: 800;
  background: var(--navy-input, #080E21);
  border: 1px solid var(--border, #1E293B);
  color: #FFFFFF;
  border-radius: 8px;
  padding: 4px 10px;
  height: 32px;
  flex: 1;
  min-width: 130px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.client-name-input:focus {
  outline: none;
  border-color: #38BDF8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.client-whitelabel-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted, #94A3B8);
  cursor: pointer;
  margin-right: 4px;
  white-space: nowrap;
}

.client-whitelabel-label input[type="checkbox"] {
  accent-color: #10B981;
  width: 14px;
  height: 14px;
  cursor: pointer;
}

.client-btn-action {
  background: var(--navy-input, #080E21);
  border: 1px solid var(--border, #1E293B);
  color: var(--text-muted, #94A3B8);
  border-radius: 6px;
  height: 32px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.2s;
  white-space: nowrap;
}

.client-btn-action:hover {
  color: var(--text-main, #FFF);
  border-color: #38BDF8;
}

.client-btn-action.text-red {
  color: #F87171;
}

.client-btn-action.text-red:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #EF4444;
  color: #EF4444;
}

.client-btn-action.client-chevron-btn {
  width: 30px;
  padding: 0;
}

.btn-print-itinerary {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #FFFFFF;
  border: 1px solid #059669;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
  height: 32px;
  white-space: nowrap;
}

.btn-print-itinerary:hover {
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  color: #FFFFFF;
}

.client-slot-body {
  margin-top: 10px;
  border-top: 1px solid var(--border, #1E293B);
  padding-top: 10px;
}

.client-criteria-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: var(--navy-input, #080E21);
  border: 1px solid var(--border, #1E293B);
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.client-criteria-group.full-width {
  grid-column: 1 / -1;
}

.client-field-label {
  display: block;
  font-size: 0.70rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted, #94A3B8);
  margin-bottom: 4px;
}

.client-intent-checks {
  display: flex;
  gap: 12px;
  align-items: center;
  height: 32px;
}

.client-intent-checks label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.76rem;
  color: var(--text-main, #E2E8F0);
  cursor: pointer;
  white-space: nowrap;
}

.client-intent-checks input[type="checkbox"] {
  accent-color: #10B981;
  cursor: pointer;
}

.client-field-select {
  width: 100%;
  height: 32px;
  background: var(--navy-card, #0B192C);
  border: 1px solid var(--border, #1E293B);
  color: var(--text-main, #FFFFFF);
  border-radius: 6px;
  padding: 0 8px;
  font-size: 0.78rem;
  outline: none;
}

.client-field-textarea {
  width: 100%;
  background: var(--navy-card, #0B192C);
  border: 1px solid var(--border, #1E293B);
  color: var(--text-main, #FFFFFF);
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 0.78rem;
  resize: vertical;
  font-family: inherit;
  line-height: 1.4;
  outline: none;
}

.client-earmarked-section {
  background: rgba(8, 14, 33, 0.4);
  border: 1px solid var(--border, #1E293B);
  border-radius: 8px;
  padding: 10px 12px;
}

.client-earmarked-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.client-earmarked-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-main, #FFFFFF);
  display: flex;
  align-items: center;
  gap: 6px;
}

.client-empty-items {
  text-align: center;
  padding: 16px 12px;
  color: var(--text-muted, #94A3B8);
  font-size: 0.80rem;
  line-height: 1.4;
}

.client-property-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.client-property-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  background: var(--navy-card, #0B192C);
  border: 1px solid var(--border, #1E293B);
  border-radius: 8px;
  transition: background 0.15s;
}

.client-num-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--navy-card, #0B192C);
  border: 2px solid #F5D061;
  color: #F5D061;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  flex-shrink: 0;
}

.client-prop-details {
  flex: 1;
  min-width: 0;
}

.client-prop-title {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--text-main, #FFFFFF);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.client-prop-address {
  font-size: 0.72rem;
  color: var(--text-muted, #94A3B8);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.client-prop-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 0.70rem;
}

.client-prop-tag {
  color: var(--text-muted, #94A3B8);
}

.client-prop-tag.badge-zone {
  background: rgba(217, 102, 165, 0.2);
  color: #D966A5;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 700;
}

.client-prop-tag.agent-tag {
  color: #38BDF8;
}

.client-prop-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.client-item-reorder-btn {
  background: var(--navy-input, #080E21);
  border: 1px solid var(--border, #1E293B);
  color: var(--text-muted, #94A3B8);
  border-radius: 4px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.68rem;
  transition: all 0.15s;
}

.client-item-reorder-btn:hover:not(:disabled) {
  color: var(--text-main, #FFF);
  border-color: #38BDF8;
}

.client-item-reorder-btn.text-red:hover {
  color: #EF4444;
  border-color: #EF4444;
}

.client-item-reorder-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.client-select-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--navy-input, #080E21);
  border: 1px solid var(--border, #1E293B);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  gap: 12px;
}

.client-select-card:hover:not(.disabled) {
  border-color: #F5D061;
  background: rgba(245, 208, 97, 0.05);
}

.client-select-card.disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.client-slot-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.client-slot-badge.badge-slot-available {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
}

.client-slot-badge.badge-slot-saved {
  background: rgba(56, 189, 248, 0.15);
  color: #38BDF8;
}

.client-slot-badge.badge-slot-full {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
}

/* Light Theme Overrides for #savedClientsModal and #addToListingClientModal */
body.light-theme #savedClientsModal .modal-header h3,
body.light-theme #addToListingClientModal .modal-header h3,
body.light-theme #clientConfirmResetModal h3 {
  color: #0F172A !important;
}

body.light-theme #savedClientsModal .modal-card,
body.light-theme #addToListingClientModal .modal-card,
body.light-theme #clientConfirmResetModal .modal-card {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15) !important;
}

body.light-theme #savedClientsModal .modal-info-banner,
body.light-theme #addToListingClientModal .modal-info-banner {
  background: #F8FAFC !important;
  border-color: #E2E8F0 !important;
  color: #0F172A !important;
}

body.light-theme .client-slot-card {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

body.light-theme .client-slot-card.client-drag-over {
  background: rgba(217, 119, 6, 0.08) !important;
  border-color: #D97706 !important;
}

body.light-theme .client-name-input {
  background: #F8FAFC !important;
  border-color: #CBD5E1 !important;
  color: #0F172A !important;
}

body.light-theme .client-name-input:focus {
  border-color: #0284C7 !important;
  background: #FFFFFF !important;
}

body.light-theme .client-seq-badge {
  background: #FEF3C7 !important;
  border-color: #FDE68A !important;
  color: #B45309 !important;
}

body.light-theme .client-btn-action {
  background: #F1F5F9 !important;
  border-color: #CBD5E1 !important;
  color: #475569 !important;
}

body.light-theme .client-btn-action:hover {
  background: #E2E8F0 !important;
  color: #0F172A !important;
}

body.light-theme .client-btn-action.text-red {
  color: #DC2626 !important;
}

body.light-theme .client-btn-action.text-red:hover {
  background: #FEE2E2 !important;
  border-color: #FCA5A5 !important;
}

body.light-theme .client-slot-body {
  border-top-color: #E2E8F0 !important;
}

body.light-theme .client-criteria-grid {
  background: #F8FAFC !important;
  border-color: #E2E8F0 !important;
}

body.light-theme .client-field-label {
  color: #64748B !important;
}

body.light-theme .client-intent-checks label {
  color: #1E293B !important;
}

body.light-theme .client-field-select {
  background: #FFFFFF !important;
  border-color: #CBD5E1 !important;
  color: #0F172A !important;
}

body.light-theme .client-field-textarea {
  background: #FFFFFF !important;
  border-color: #CBD5E1 !important;
  color: #0F172A !important;
}

body.light-theme .client-earmarked-section {
  background: #F8FAFC !important;
  border-color: #E2E8F0 !important;
}

body.light-theme .client-earmarked-title {
  color: #0F172A !important;
}

body.light-theme .client-property-item {
  background: #FFFFFF !important;
  border-color: #CBD5E1 !important;
}

body.light-theme .client-prop-title {
  color: #0F172A !important;
}

body.light-theme .client-prop-address {
  color: #64748B !important;
}

body.light-theme .client-num-dot {
  background: #FEF3C7 !important;
  border-color: #D97706 !important;
  color: #B45309 !important;
}

body.light-theme .client-item-reorder-btn {
  background: #F1F5F9 !important;
  border-color: #CBD5E1 !important;
  color: #64748B !important;
}

body.light-theme .client-item-reorder-btn:hover:not(:disabled) {
  background: #E2E8F0 !important;
  color: #0F172A !important;
}

body.light-theme .client-select-card {
  background: #F8FAFC !important;
  border-color: #E2E8F0 !important;
}

body.light-theme .client-select-card:hover:not(.disabled) {
  background: #F1F5F9 !important;
  border-color: #CBD5E1 !important;
}

body.light-theme .client-select-card strong {
  color: #0F172A !important;
}

body.light-theme #addClientPropertySummary {
  background: #F8FAFC !important;
  border-color: #E2E8F0 !important;
}

body.light-theme #addClientPropertySummary h4 {
  color: #0F172A !important;
}

/* Post/Edit Property Description Textarea & Vertical Slider */
#postDescription {
  height: 250px !important;
  min-height: 250px !important;
  overflow-y: auto !important;
  scrollbar-width: thin;
  scrollbar-color: #475569 #080E21;
}

#postDescription::-webkit-scrollbar {
  width: 8px;
}

#postDescription::-webkit-scrollbar-track {
  background: #080E21;
  border-radius: 4px;
}

#postDescription::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}

#postDescription::-webkit-scrollbar-thumb:hover {
  background: #64748B;
}

body.light-theme #postDescription {
  background: #F8FAFC !important;
  border-color: #CBD5E1 !important;
  color: #0F172A !important;
  scrollbar-color: #94A3B8 #F1F5F9;
}

body.light-theme #postDescription::-webkit-scrollbar-track {
  background: #F1F5F9;
}

body.light-theme #postDescription::-webkit-scrollbar-thumb {
  background: #CBD5E1;
}

body.light-theme #postDescription::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* ==============================================================================
   DUMMY / DEMO DATA YELLOW HIGHLIGHT SYSTEM (LOCAL STORAGE ISOLATION)
   ============================================================================== */
.dummy-badge-pill {
  font-size: 0.70rem !important;
  font-weight: 800 !important;
  padding: 2px 8px !important;
  border-radius: 4px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  letter-spacing: 0.3px !important;
  text-transform: uppercase !important;
  vertical-align: middle !important;
}

body.light-theme .dummy-badge-pill {
  background: #FEF08A !important;
  color: #854D0E !important;
  border: 1.5px solid #EAB308 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15) !important;
}

body:not(.light-theme) .dummy-badge-pill {
  background: rgba(234, 179, 8, 0.25) !important;
  color: #FDE047 !important;
  border: 1.5px solid #FACC15 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4) !important;
}

/* Card Yellow Highlighting — Grid View */
.property-card.is-dummy-listing {
  border: 2.5px solid #EAB308 !important;
  box-shadow: 0 0 20px rgba(234, 179, 8, 0.35) !important;
  position: relative;
}

body.light-theme .property-card.is-dummy-listing {
  background: linear-gradient(180deg, #FFFDF0 0%, #FEF9C3 100%) !important;
  border: 2.5px solid #EAB308 !important;
  box-shadow: 0 8px 24px rgba(234, 179, 8, 0.3), 0 0 0 1px #EAB308, inset 0 1px 1px #FFFFFF !important;
}

body.light-theme .property-card.is-dummy-listing:hover {
  box-shadow: 0 16px 36px rgba(234, 179, 8, 0.45), 0 0 0 2px #EAB308 !important;
  border-color: #CA8A04 !important;
}

body.light-theme .property-card.is-dummy-listing .property-card-thumb-strip {
  background: rgba(254, 240, 138, 0.6) !important;
  border-bottom: 1px solid #EAB308 !important;
}

/* Card Yellow Highlighting — List View */
.property-list-card.is-dummy-listing {
  border: 2.5px solid #EAB308 !important;
  box-shadow: 0 0 20px rgba(234, 179, 8, 0.35) !important;
  position: relative;
}

body.light-theme .property-list-card.is-dummy-listing {
  background: linear-gradient(180deg, #FFFDF0 0%, #FEF9C3 100%) !important;
  border: 2.5px solid #EAB308 !important;
  box-shadow: 0 8px 24px rgba(234, 179, 8, 0.3), 0 0 0 1px #EAB308 !important;
}

body.light-theme .property-list-card.is-dummy-listing > div:last-child {
  background: linear-gradient(180deg, #FFFDF0 0%, #FEF9C3 100%) !important;
  border-left: 2.5px solid #EAB308 !important;
}

/* Card Yellow Highlighting — My Listings Console (Symmetrical, Uniform Borderline) */
.my-listing-card.is-dummy-listing {
  border: 2px solid #EAB308 !important;
  border-left: 2px solid #EAB308 !important;
  box-shadow: 0 0 18px rgba(234, 179, 8, 0.3) !important;
  position: relative;
}

body.light-theme .my-listing-card.is-dummy-listing {
  background: linear-gradient(180deg, #FFFDF0 0%, #FEF9C3 100%) !important;
  border: 2px solid #EAB308 !important;
  border-left: 2px solid #EAB308 !important;
  box-shadow: 0 6px 20px rgba(234, 179, 8, 0.25) !important;
}

body.light-theme .my-listing-card.is-dummy-listing:hover {
  border-color: #CA8A04 !important;
  border-left-color: #CA8A04 !important;
  box-shadow: 0 10px 28px rgba(234, 179, 8, 0.35) !important;
}

/* Property Detail Modal Yellow Banner */
.dummy-detail-banner {
  padding: 10px 56px 10px 16px !important;
  border-radius: 8px !important;
  margin-bottom: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  font-weight: 700 !important;
  font-size: 0.86rem !important;
}

body.light-theme .dummy-detail-banner {
  background: #FEF08A !important;
  border: 2px solid #EAB308 !important;
  color: #854D0E !important;
  box-shadow: 0 4px 14px rgba(234, 179, 8, 0.25) !important;
}

body:not(.light-theme) .dummy-detail-banner {
  background: rgba(234, 179, 8, 0.18) !important;
  border: 2px solid #FACC15 !important;
  color: #FEF08A !important;
  box-shadow: 0 2px 12px rgba(250, 204, 21, 0.25) !important;
}

.dummy-detail-banner-tag {
  font-size: 0.72rem !important;
  background: #CA8A04 !important;
  color: #FFFFFF !important;
  padding: 2px 8px !important;
  border-radius: 4px !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
}

/* Admin Mode: Property Listings Table Row Yellow Highlighting */
body.light-theme tr.is-dummy-row {
  background: #FEF9C3 !important;
}

body.light-theme tr.is-dummy-row td {
  background: transparent !important;
  color: #0F172A !important;
}

body.light-theme tr.is-dummy-row td:first-child {
  border-left: 5px solid #EAB308 !important;
}

body.light-theme tr.is-dummy-row:hover {
  background: #FEF08A !important;
}

body.light-theme tr.is-dummy-row td.sticky-action-col {
  background: #FEF9C3 !important;
}

body.light-theme tr.is-dummy-row:hover td.sticky-action-col {
  background: #FEF08A !important;
}

body.light-theme tr.is-dummy-row td div[style*="#F5D061"],
body.light-theme tr.is-dummy-row [style*="color: #F5D061"],
body.light-theme tr.is-dummy-row [style*="color:#F5D061"] {
  color: #B45309 !important;
}


/* Dark Theme Admin Table Dummy Rows */
body:not(.light-theme) tr.is-dummy-row {
  background: rgba(234, 179, 8, 0.14) !important;
}

body:not(.light-theme) tr.is-dummy-row td {
  background: transparent !important;
  color: var(--text-main) !important;
}

body:not(.light-theme) tr.is-dummy-row td:first-child {
  border-left: 5px solid #FACC15 !important;
}

body:not(.light-theme) tr.is-dummy-row:hover {
  background: rgba(234, 179, 8, 0.24) !important;
}

body:not(.light-theme) tr.is-dummy-row td.sticky-action-col {
  background: #1C2318 !important;
}

body:not(.light-theme) tr.is-dummy-row:hover td.sticky-action-col {
  background: #282F1E !important;
}

/* ==========================================================================
   REMOVE NUMBER INPUT SPINNER ARROWS (ADD/EDIT PROPERTY & ADMIN TABS)
   ========================================================================== */
/* Chrome, Safari, Edge, Opera */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button,
#postModal input[type="number"]::-webkit-outer-spin-button,
#postModal input[type="number"]::-webkit-inner-spin-button,
#adminModal input[type="number"]::-webkit-outer-spin-button,
#adminModal input[type="number"]::-webkit-inner-spin-button,
.form-input[type="number"]::-webkit-outer-spin-button,
.form-input[type="number"]::-webkit-inner-spin-button,
.form-control-admin[type="number"]::-webkit-outer-spin-button,
.form-control-admin[type="number"]::-webkit-inner-spin-button,
.admin-form-input[type="number"]::-webkit-outer-spin-button,
.admin-form-input[type="number"]::-webkit-inner-spin-button,
#postArea::-webkit-outer-spin-button,
#postArea::-webkit-inner-spin-button,
#postPrice::-webkit-outer-spin-button,
#postPrice::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  appearance: none !important;
  margin: 0 !important;
}

/* Firefox */
input[type="number"],
#postModal input[type="number"],
#adminModal input[type="number"],
.form-input[type="number"],
.form-control-admin[type="number"],
.admin-form-input[type="number"],
#postArea,
#postPrice {
  -moz-appearance: textfield !important;
  appearance: textfield !important;
}

/* ==========================================================================
   ADMIN BACKEND LIGHT MODE SURFACES & HIGH-CONTRAST TYPOGRAPHY OVERHAUL
   ========================================================================== */

/* 1. Global Card Surfaces & Container Lightening in Admin Modal */
body.light-theme #adminModal .admin-kpi-card,
body.light-theme #adminModal .cyber-kpi-card,
body.light-theme #adminModal .metrics-kpi-card,
body.light-theme #adminModal .metrics-chart-card,
body.light-theme #adminModal .admin-credit-pack-card,
body.light-theme #adminModal .admin-plan-card,
body.light-theme #adminModal .admin-benefits-section,
body.light-theme #adminModal .map-preview-card,
body.light-theme #adminModal .gateway-tier-card,
body.light-theme #adminModal .admin-table-card,
body.light-theme #adminModal .admin-table-wrap,
body.light-theme #adminModal .admin-gst-config-card,
body.light-theme #adminModal .weekly-report-box,
body.light-theme #adminModal .sim-checkout-card,
body.light-theme #adminModal .sim-pack-card,
body.light-theme #adminModal .admin-social-compliance-card,
body.light-theme #adminModal .admin-statutory-report-card {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05) !important;
  color: #0F172A !important;
}

/* 2. Global Dark Inline Background Replacements in Admin Modal */
body.light-theme #adminModal div[style*="background: #0B192C"],
body.light-theme #adminModal div[style*="background:#0B192C"],
body.light-theme #adminModal div[style*="background: #081220"],
body.light-theme #adminModal div[style*="background:#081220"],
body.light-theme #adminModal div[style*="background: #0F172A"],
body.light-theme #adminModal div[style*="background:#0F172A"],
body.light-theme #adminModal div[style*="background: #1E293B"],
body.light-theme #adminModal div[style*="background:#1E293B"],
body.light-theme #adminModal div[style*="background: rgba(15, 23, 42"],
body.light-theme #adminModal div[style*="background: rgba(8, 18, 32"],
body.light-theme #adminModal div[style*="background: rgba(11, 25, 44"] {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
  color: #0F172A !important;
}

/* Secondary Toolbar & Strip Lightening */
body.light-theme #adminModal .admin-fin-filter-toolbar,
body.light-theme #adminModal .metrics-timeframe-box,
body.light-theme #adminModal .metrics-meta-bar,
body.light-theme #adminModal .metrics-svg-container,
body.light-theme #adminModal .admin-benefits-preview-wrap,
body.light-theme #adminModal .weekly-report-narrative {
  background: #F8FAFC !important;
  border-color: #E2E8F0 !important;
  color: #0F172A !important;
}

/* 3. Global Form Controls & Inputs in Admin Modal */
body.light-theme #adminModal input[type="text"],
body.light-theme #adminModal input[type="date"],
body.light-theme #adminModal input[type="number"],
body.light-theme #adminModal select,
body.light-theme #adminModal .form-control-admin,
body.light-theme #adminModal .metrics-timeframe-select {
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  color: #0F172A !important;
}

body.light-theme #adminModal select option {
  background: #FFFFFF !important;
  color: #0F172A !important;
}

/* 4. PERFORMANCE TAB (#adminTab-analytics) */
body.light-theme #adminTab-analytics .metrics-kpi-card {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
}
body.light-theme #adminTab-analytics .metrics-kpi-label {
  color: #475569 !important;
  font-weight: 800 !important;
}
body.light-theme #adminTab-analytics .metrics-kpi-val {
  color: #0F172A !important;
}
body.light-theme #adminTab-analytics .metrics-kpi-sub {
  color: #64748B !important;
}
body.light-theme #adminTab-analytics .metrics-chart-card {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
}
body.light-theme #adminTab-analytics .metrics-chart-title {
  color: #0F172A !important;
  font-weight: 800 !important;
}
body.light-theme #adminTab-analytics .metrics-chart-sub {
  color: #64748B !important;
}
body.light-theme #adminTab-analytics .metrics-timeframe-label {
  color: #475569 !important;
  font-weight: 800 !important;
}
body.light-theme #adminTab-analytics .metrics-preset-pill {
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  color: #334155 !important;
}
body.light-theme #adminTab-analytics .metrics-preset-pill.active {
  background: #0284C7 !important;
  border-color: #0284C7 !important;
  color: #FFFFFF !important;
}
body.light-theme #adminTab-analytics .metrics-stepper-btn {
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  color: #0F172A !important;
}
body.light-theme #adminTab-analytics .donut-legend-item {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
  color: #1E293B !important;
}
body.light-theme #adminTab-analytics .donut-legend-item span {
  color: #1E293B !important;
}
body.light-theme #adminTab-analytics .district-bar-track {
  background: #E2E8F0 !important;
  border-color: #CBD5E1 !important;
}
body.light-theme #adminTab-analytics .district-bar-info {
  color: #0F172A !important;
}
body.light-theme #adminTab-analytics .district-bar-info span {
  color: #0F172A !important;
}
body.light-theme #adminTab-analytics .district-pill-btn {
  background: #F1F5F9 !important;
  border: 1px solid #CBD5E1 !important;
  color: #475569 !important;
}
body.light-theme #adminTab-analytics .district-pill-btn:hover {
  background: #E2E8F0 !important;
  color: #0F172A !important;
}
body.light-theme #adminTab-analytics .district-pill-btn.active {
  background: #E0F2FE !important;
  border-color: #0284C7 !important;
  color: #0284C7 !important;
  font-weight: 800 !important;
}
body.light-theme #adminTab-analytics .district-group-header {
  border-bottom-color: #E2E8F0 !important;
}
body.light-theme #adminTab-analytics .district-name-text {
  color: #0F172A !important;
}
body.light-theme #adminTab-analytics .ura-cat-b1 {
  background: #E0F2FE !important;
  color: #0284C7 !important;
  border-color: #BAE6FD !important;
}
body.light-theme #adminTab-analytics .ura-cat-b2 {
  background: #FEF3C7 !important;
  color: #B45309 !important;
  border-color: #FDE68A !important;
}
body.light-theme #adminTab-analytics .ura-cat-office {
  background: #EDE9FE !important;
  color: #6D28D9 !important;
  border-color: #DDD6FE !important;
}
body.light-theme #adminTab-analytics .ura-cat-retail {
  background: #FCE7F3 !important;
  color: #BE185D !important;
  border-color: #FBCFE8 !important;
}
body.light-theme #adminTab-analytics .ura-cat-food {
  background: #D1FAE5 !important;
  color: #047857 !important;
  border-color: #A7F3D0 !important;
}
body.light-theme #adminTab-analytics .listing-type-card {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
}
body.light-theme #adminTab-analytics .listing-type-card div {
  color: #0F172A !important;
}
body.light-theme #adminTab-analytics .social-dist-bar {
  background: #E2E8F0 !important;
  border-color: #CBD5E1 !important;
}
body.light-theme #adminTab-analytics .weekly-report-box {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
}
body.light-theme #adminTab-analytics .weekly-report-narrative {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
  color: #1E293B !important;
}
body.light-theme #adminTab-analytics .weekly-report-h4 {
  color: #92400E !important;
}

/* 5. PUBLISHING TAB (#adminTab-cms) */
body.light-theme #adminTab-cms .admin-credit-pack-card,
body.light-theme #adminTab-cms .admin-plan-card {
  background: #FFFFFF !important;
  border: 1.5px solid #CBD5E1 !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06) !important;
}
body.light-theme #adminTab-cms .admin-plan-name,
body.light-theme #adminTab-cms .admin-plan-card h3,
body.light-theme #adminTab-cms .admin-plan-card h4,
body.light-theme #adminTab-cms .admin-plan-card span[style*="font-size: 1.1"],
body.light-theme #adminTab-cms .admin-plan-card span[style*="font-size:1.1"] {
  color: #0F172A !important;
  font-weight: 800 !important;
}
body.light-theme #adminTab-cms .admin-pack-id-chip {
  background: #F1F5F9 !important;
  border: 1px solid #CBD5E1 !important;
  color: #475569 !important;
}
body.light-theme #adminTab-cms .admin-plan-price-box {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
}
body.light-theme #adminTab-cms .admin-plan-price {
  color: #0F172A !important;
}
body.light-theme #adminTab-cms .admin-plan-price span {
  color: #475569 !important;
}
body.light-theme #adminTab-cms .admin-plan-quota {
  color: #B45309 !important;
}
body.light-theme #adminTab-cms .admin-plan-rate {
  color: #475569 !important;
}
body.light-theme #adminTab-cms .admin-plan-validity {
  color: #0284C7 !important;
}
body.light-theme #adminTab-cms .admin-plan-benefits-list,
body.light-theme #adminTab-cms .admin-plan-benefits-list li {
  color: #1E293B !important;
}
body.light-theme #adminTab-cms .admin-plan-benefits-list i {
  color: #10B981 !important;
}
body.light-theme #adminTab-cms .admin-plan-card label,
body.light-theme #adminTab-cms .admin-plan-card span[style*="color: #64748B"] {
  color: #475569 !important;
}
body.light-theme #adminTab-cms .admin-benefits-section {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
}
body.light-theme #adminTab-cms .admin-benefits-preview-wrap {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
}
body.light-theme #adminTab-cms .admin-benefits-preview-wrap div,
body.light-theme #adminTab-cms .admin-benefits-preview-wrap span,
body.light-theme #adminTab-cms .admin-benefits-preview-wrap strong {
  color: #0F172A !important;
}
body.light-theme #adminTab-cms .admin-benefits-preview-wrap [style*="color: #94A3B8"],
body.light-theme #adminTab-cms .admin-benefits-preview-wrap [style*="color:#94A3B8"] {
  color: #475569 !important;
}

/* 6. APIS TAB (#adminTab-apis) */
body.light-theme #adminTab-apis .map-preview-card {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
}
body.light-theme #adminTab-apis #mapDisplayProviderTitle {
  color: #0F172A !important;
}
body.light-theme #adminTab-apis #mapDisplayProviderDesc {
  color: #475569 !important;
}
body.light-theme #adminTab-apis .map-preview-card div[style*="background: rgba(255,255,255,0.03)"],
body.light-theme #adminTab-apis .map-preview-card div[style*="background:rgba(255,255,255,0.03)"] {
  background: #F8FAFC !important;
  border: 1px solid #CBD5E1 !important;
  color: #92400E !important;
}
body.light-theme #adminTab-apis #mapDisplayEndpoint {
  color: #92400E !important;
}
body.light-theme #adminTab-apis .map-preview-card div[style*="background: rgba(15, 23, 42"],
body.light-theme #adminTab-apis .map-preview-card div[style*="background:rgba(15, 23, 42"] {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
}
body.light-theme #adminTab-apis #btnTestMapConnectivity {
  background: #F1F5F9 !important;
  border-color: #CBD5E1 !important;
  color: #0F172A !important;
}
body.light-theme #adminTab-apis .gateway-tier-card {
  background: #FFFFFF !important;
  border: 1.5px solid #CBD5E1 !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05) !important;
}
body.light-theme #adminTab-apis .gateway-tier-card span[id*="Name"] {
  color: #0F172A !important;
}
body.light-theme #adminTab-apis .gateway-tier-card span[id*="Domain"],
body.light-theme #adminTab-apis .gateway-tier-card div[style*="color: #94A3B8"] {
  color: #475569 !important;
}
body.light-theme #adminTab-apis .gateway-tier-card div[style*="border-top: 1px solid"] {
  border-top-color: #E2E8F0 !important;
}
body.light-theme #adminTab-apis .gateway-tier-card span[id*="Options"] {
  color: #0F172A !important;
}
body.light-theme #adminTab-apis .gateway-tier-card select {
  background: #F8FAFC !important;
  color: #0F172A !important;
  border-color: #CBD5E1 !important;
}
body.light-theme #adminTab-apis .gateway-tier-card select option {
  background: #FFFFFF !important;
  color: #0F172A !important;
}
body.light-theme #adminTab-apis .gateway-tier-card div[id*="Desc"],
body.light-theme #adminTab-apis .gateway-tier-card div[id*="desc"] {
  color: #64748B !important;
}

/* 7. HUMAN RESOURCE TAB (#adminTab-hr) */
body.light-theme #adminTab-hr .admin-kpi-card {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
}
body.light-theme #adminTab-hr .admin-kpi-card div[style*="font-size: 0.72rem"][style*="color: #94A3B8"] {
  color: #475569 !important;
}
body.light-theme #adminTab-hr #hrKpiActiveCount {
  color: #0F172A !important;
}
body.light-theme #adminTab-hr #adminCpfPolicyBanner {
  background: linear-gradient(135deg, #FFFDF0 0%, #FEF9C3 100%) !important;
  border: 1.5px solid #EAB308 !important;
  box-shadow: 0 4px 14px rgba(234, 179, 8, 0.15) !important;
}
body.light-theme #adminTab-hr #adminCpfPolicyBanner span[style*="color: #F59E0B"] {
  color: #92400E !important;
}
body.light-theme #adminTab-hr #adminCpfPolicyBanner .badge-fin-cat {
  background: #FFFFFF !important;
  border: 1px solid #EAB308 !important;
  color: #78350F !important;
}
body.light-theme #adminTab-hr .table-search-bar,
body.light-theme #adminTab-hr div[style*="background: #0B192C"] {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
}

/* 8. FINANCE TAB (#adminTab-finance) */
body.light-theme #adminTab-finance #adminGstConfigPanel {
  background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%) !important;
  border: 1.5px solid #CBD5E1 !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05) !important;
}
body.light-theme #adminTab-finance #adminGstConfigPanel span[style*="color: #CBD5E1"],
body.light-theme #adminTab-finance #adminGstConfigPanel span[style*="color: #94A3B8"] {
  color: #475569 !important;
}
body.light-theme #adminTab-finance #adminGstConfigPanel strong[style*="color: #F8FAFC"],
body.light-theme #adminTab-finance #adminGstConfigPanel span[id*="EffectiveDate"] {
  color: #0F172A !important;
}
body.light-theme #adminTab-finance #adminGstConfigPanel label {
  color: #1E293B !important;
}
body.light-theme #adminTab-finance #adminGstConfigPanel input {
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  color: #0F172A !important;
}
body.light-theme #adminTab-finance .admin-fin-filter-toolbar {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
}
body.light-theme #adminTab-finance .fin-period-btn {
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  color: #334155 !important;
}
body.light-theme #adminTab-finance .fin-period-btn.active {
  background: #0284C7 !important;
  border-color: #0284C7 !important;
  color: #FFFFFF !important;
}
body.light-theme #adminTab-finance select.form-control-admin {
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  color: #0F172A !important;
}
body.light-theme #adminTab-finance .admin-kpi-card {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
}
body.light-theme #adminTab-finance .admin-kpi-card div[style*="font-size: 0.72rem"][style*="color: #94A3B8"] {
  color: #475569 !important;
}
body.light-theme #adminTab-finance .admin-table-wrap {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
}
body.light-theme #adminTab-finance .admin-table thead tr {
  background: #F8FAFC !important;
  border-bottom: 1px solid #CBD5E1 !important;
  color: #475569 !important;
}
body.light-theme #adminTab-finance .admin-table thead th {
  color: #475569 !important;
}
body.light-theme #adminTab-finance .admin-table tbody td {
  color: #0F172A !important;
  border-bottom: 1px solid #E2E8F0 !important;
}
body.light-theme #adminTab-finance .admin-table tbody tr:hover td {
  background: #F1F5F9 !important;
}

/* 9. CYBERSECURITY TAB (#adminTab-security) */
body.light-theme #adminTab-security .cyber-kpi-card {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04) !important;
}
body.light-theme #adminTab-security .cyber-kpi-card div[style*="color: #94A3B8"] {
  color: #475569 !important;
}
body.light-theme #adminTab-security #ipKpiTotalVisitors {
  color: #0F172A !important;
}
body.light-theme #adminTab-security #cyberSubContentThreats > div[style*="background: #0B192C"],
body.light-theme #adminTab-security #cyberSubContentVisitors > div[style*="background: #0B192C"],
body.light-theme #adminTab-security div[style*="background: #0B192C"] {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
}
body.light-theme #adminTab-security h4[style*="color: #F8FAFC"] {
  color: #0F172A !important;
}
body.light-theme #adminTab-security .cyber-threat-card {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04) !important;
}
body.light-theme #adminTab-security .cyber-threat-card span[style*="color: #F8FAFC"] {
  color: #0F172A !important;
}
body.light-theme #adminTab-security .cyber-threat-card div[style*="grid-template-columns: 1fr 1fr"] {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
}
body.light-theme #adminTab-security .cyber-threat-card div[style*="color: #64748B"] {
  color: #64748B !important;
  font-weight: 700 !important;
}
body.light-theme #adminTab-security .cyber-threat-endpoint {
  background: #F1F5F9 !important;
  border: 1px solid #CBD5E1 !important;
  color: #0F172A !important;
}
body.light-theme #adminTab-security .cyber-threat-ip {
  color: #0284C7 !important;
}
body.light-theme #adminTab-security .cyber-threat-dns {
  color: #64748B !important;
}
body.light-theme #adminTab-security .cyber-threat-card div[style*="color: #CBD5E1"] {
  color: #1E293B !important;
}
body.light-theme #adminTab-security .cyber-threat-card div[style*="border-top: 1px solid"] {
  border-top-color: #E2E8F0 !important;
}

/* 10. HIGH CONTRAST TYPOGRAPHY & SVG OVERRIDES (LIGHT MODE) */
body.light-theme #donutCenterVal {
  fill: #0F172A !important;
}
body.light-theme #donutCenterLbl {
  fill: #475569 !important;
}
body.light-theme .donut-slice {
  stroke: #FFFFFF !important;
}

/* HR High-Contrast Typography */
body.light-theme #adminTab-hr #hrKpiMonthlyBase {
  color: #047857 !important;
}
body.light-theme #adminTab-hr #hrKpiMonthlyCpf {
  color: #B45309 !important;
}
body.light-theme #adminTab-hr #hrKpiTotalExpense {
  color: #B45309 !important;
}
body.light-theme #adminTab-hr .hr-personnel-row {
  border-bottom: 1px solid #E2E8F0 !important;
}
body.light-theme #adminTab-hr .hr-personnel-row:hover {
  background: #F8FAFC !important;
}
body.light-theme #adminTab-hr .hr-personnel-row td div[style*="color: #F8FAFC"] {
  color: #0F172A !important;
}
body.light-theme #adminTab-hr .hr-personnel-row td div[style*="color: #F5D061"] {
  color: #B45309 !important;
}
body.light-theme #adminTab-hr .hr-personnel-row td div[style*="color: #F59E0B"] {
  color: #B45309 !important;
}
body.light-theme #adminTab-hr .hr-personnel-row td div[style*="color: #10B981"] {
  color: #047857 !important;
}
body.light-theme #adminTab-hr .hr-personnel-row td[style*="color: #CBD5E1"] {
  color: #1E293B !important;
}
body.light-theme #adminTab-hr .btn-backend-action.btn-backend-sm {
  background: rgba(180, 83, 9, 0.1) !important;
  color: #B45309 !important;
  border-color: rgba(180, 83, 9, 0.3) !important;
}

/* Finance High-Contrast Typography */
body.light-theme #adminTab-finance div[style*="color: #10B981"],
body.light-theme #adminTab-finance span[style*="color: #10B981"] {
  color: #047857 !important;
}
body.light-theme #adminTab-finance div[style*="color: #F5D061"],
body.light-theme #adminTab-finance div[style*="color: #F59E0B"],
body.light-theme #adminTab-finance span[style*="color: #F5D061"],
body.light-theme #adminTab-finance span[style*="color: #F59E0B"] {
  color: #B45309 !important;
}
body.light-theme #adminTab-finance span[style*="color: #F87171"],
body.light-theme #adminTab-finance div[style*="color: #EF4444"] {
  color: #DC2626 !important;
}

/* CyberSecurity High-Contrast Typography */
body.light-theme #adminTab-security div[style*="color: #10B981"] {
  color: #047857 !important;
}
body.light-theme #adminTab-security div[style*="color: #F59E0B"],
body.light-theme #adminTab-security div[style*="color: #F5D061"] {
  color: #B45309 !important;
}
body.light-theme #adminTab-security .cyber-threat-card div[style*="grid-template-columns: 1fr 1fr"] > div {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
}

/* ==========================================================================
   11. UNIVERSAL BACKEND LIGHT-THEME YELLOW TEXT REPLACEMENT (#92400E / BROWN)
   Replaces all hard-to-read yellow / gold text in backend with dark golden-brown
   ========================================================================== */

/* Universal inline-style yellow text matchers for Admin Modal & Backend Submodals */
body.light-theme #adminModal [style*="color:#F5D061" i],
body.light-theme #adminModal [style*="color: #F5D061" i],
body.light-theme #adminModal [style*="color:#F59E0B" i],
body.light-theme #adminModal [style*="color: #F59E0B" i],
body.light-theme #adminModal [style*="color:#FBBF24" i],
body.light-theme #adminModal [style*="color: #FBBF24" i],
body.light-theme #adminModal [style*="color:#EAB308" i],
body.light-theme #adminModal [style*="color: #EAB308" i],
body.light-theme #adminModal [style*="color:#FACC15" i],
body.light-theme #adminModal [style*="color: #FACC15" i],
body.light-theme #adminModal [style*="color:#E5A93C" i],
body.light-theme #adminModal [style*="color: #E5A93C" i],
body.light-theme #adminModal [style*="color:#D97706" i],
body.light-theme #adminModal [style*="color: #D97706" i],
body.light-theme #adminModal [style*="color:#FEF08A" i],
body.light-theme #adminModal [style*="color: #FEF08A" i],
body.light-theme #adminModal [style*="color:#FEF9C3" i],
body.light-theme #adminModal [style*="color: #FEF9C3" i],
body.light-theme #adminModal [style*="color:gold" i],
body.light-theme #adminModal [style*="color: gold" i],
body.light-theme #adminModal [style*="color:yellow" i],
body.light-theme #adminModal [style*="color: yellow" i],
body.light-theme #adminModal [style*="245, 208, 97" i],
body.light-theme #adminModal [style*="245, 158, 11" i],
body.light-theme .admin-modal [style*="color:#F5D061" i],
body.light-theme .admin-modal [style*="color: #F5D061" i],
body.light-theme .admin-modal [style*="color:#F59E0B" i],
body.light-theme .admin-modal [style*="color: #F59E0B" i],
body.light-theme .admin-modal [style*="color:#FBBF24" i],
body.light-theme .admin-modal [style*="color: #FBBF24" i],
body.light-theme #adminAddHrModal [style*="color:#F5D061" i],
body.light-theme #adminAddHrModal [style*="color: #F5D061" i],
body.light-theme #adminAddHrModal [style*="color:#F59E0B" i],
body.light-theme #adminAddExpenseModal [style*="color:#F5D061" i],
body.light-theme #adminAddExpenseModal [style*="color: #F5D061" i],
body.light-theme #adminAddRevenueModal [style*="color:#F5D061" i],
body.light-theme #adminAddRevenueModal [style*="color: #F5D061" i],
body.light-theme #adminPayslipModal [style*="color:#F5D061" i],
body.light-theme #adminPayslipModal [style*="color: #F5D061" i],
body.light-theme #adminCreditPackModal [style*="color:#F5D061" i],
body.light-theme #adminCreditPackModal [style*="color: #F5D061" i] {
  color: #92400E !important;
}

/* Specific Component & Class Replacements across Backend */
/* 1. Publishing Tab */
body.light-theme #adminModal .admin-pack-price-gold {
  color: #92400E !important;
}
body.light-theme #adminModal .admin-plan-quota {
  color: #92400E !important;
}
body.light-theme #adminModal .admin-plan-badge.gold {
  background: #FEF3C7 !important;
  color: #92400E !important;
  border: 1px solid #F59E0B !important;
}
body.light-theme #adminModal .badge-all-packs {
  background: #FEF3C7 !important;
  color: #92400E !important;
  border: 1px solid #F59E0B !important;
}
body.light-theme #adminModal .admin-benefits-preview-item i {
  color: #92400E !important;
}

/* 2. Performance Tab */
body.light-theme #adminTab-analytics .metrics-kpi-val[style*="F5D061" i],
body.light-theme #adminTab-analytics .metrics-kpi-val[style*="F59E0B" i],
body.light-theme #adminTab-analytics .metrics-kpi-card:nth-child(3) .metrics-kpi-val {
  color: #92400E !important;
}
body.light-theme #adminTab-analytics .metrics-kpi-chip[style*="F5D061" i],
body.light-theme #adminTab-analytics .metrics-kpi-card:nth-child(3) .metrics-kpi-chip {
  background: #FEF3C7 !important;
  color: #92400E !important;
  border-color: #F59E0B !important;
}
body.light-theme #adminTab-analytics .district-bar-info span:last-child {
  color: #92400E !important;
}
body.light-theme #adminTab-analytics .listing-type-card div[style*="F5D061" i] {
  color: #92400E !important;
}
body.light-theme #adminTab-analytics #adminSocialPerformanceTableBody span[style*="F5D061" i] {
  color: #92400E !important;
}
body.light-theme #adminTab-analytics .weekly-report-narrative span[style*="F5D061" i] {
  color: #92400E !important;
}

/* 3. APIs Tab */
body.light-theme #adminTab-apis #mapDisplayProviderBadge {
  background: #FEF3C7 !important;
  color: #92400E !important;
  border-color: #F59E0B !important;
}
body.light-theme #adminTab-apis span[id*="ApiKey"] {
  color: #92400E !important;
}
body.light-theme #adminTab-apis div[class*="-icon-box"] {
  background: #FEF3C7 !important;
  color: #92400E !important;
}
body.light-theme #adminTab-apis .wa-field-input {
  color: #92400E !important;
}

/* 4. Human Resource Tab */
body.light-theme #adminTab-hr #hrKpiMonthlyCpf {
  color: #92400E !important;
}
body.light-theme #adminTab-hr #hrKpiTotalExpense {
  color: #92400E !important;
}
body.light-theme #adminTab-hr .hr-personnel-row td div[style*="F5D061" i],
body.light-theme #adminTab-hr .hr-personnel-row td div[style*="F59E0B" i] {
  color: #92400E !important;
}
body.light-theme #adminTab-hr .btn-backend-action.btn-backend-sm {
  background: #FEF3C7 !important;
  color: #92400E !important;
  border-color: #F59E0B !important;
}
body.light-theme #adminTab-hr #adminCpfPolicyBanner span[style*="color: #F59E0B" i],
body.light-theme #adminTab-hr #adminCpfPolicyBanner span[style*="color:#F59E0B" i] {
  color: #92400E !important;
}
body.light-theme #adminTab-hr #adminCpfPolicyBanner .badge-fin-cat[style*="F5D061" i],
body.light-theme #adminTab-hr #adminCpfPolicyBanner .badge-fin-cat:first-child {
  background: #FEF3C7 !important;
  color: #92400E !important;
  border-color: #F59E0B !important;
}
body.light-theme #adminTab-hr button[onclick*="openAdminCpfRatesModal"] {
  background: #FEF3C7 !important;
  color: #92400E !important;
  border-color: #F59E0B !important;
}

/* 5. Finance Tab */
body.light-theme #adminTab-finance #adminKpiReceiptsCount,
body.light-theme #adminTab-finance .admin-kpi-card:last-child div[style*="F5D061" i],
body.light-theme #adminTab-finance .admin-kpi-card:last-child div[style*="F59E0B" i] {
  color: #92400E !important;
}
body.light-theme #adminTab-finance #adminGstConfigPanel span[style*="F5D061" i],
body.light-theme #adminTab-finance #adminGstConfigPanel span[style*="F59E0B" i],
body.light-theme #adminTab-finance #adminGstConfigPanel span[style*="245, 208, 97" i] {
  color: #92400E !important;
}
body.light-theme #adminTab-finance .expense-row td[style*="F5D061" i] {
  color: #92400E !important;
}
body.light-theme #adminTab-finance .revenue-row td[style*="F5D061" i] {
  color: #92400E !important;
}
body.light-theme #adminTab-finance .btn-backend-action.btn-backend-sm[style*="F5D061" i] {
  background: #FEF3C7 !important;
  color: #92400E !important;
  border-color: #F59E0B !important;
}

/* 6. CyberSecurity Tab */
body.light-theme #adminTab-security #ipKpiSuspicious,
body.light-theme #adminTab-security #ipKpiBotMitigation,
body.light-theme #adminTab-security .cyber-kpi-card div[style*="F59E0B" i],
body.light-theme #adminTab-security .cyber-kpi-card div[style*="F5D061" i],
body.light-theme #adminTab-security .cyber-kpi-card div[style*="D97706" i] {
  color: #92400E !important;
}
body.light-theme #adminTab-security .agent-status-pill[style*="F5D061" i],
body.light-theme #adminTab-security .agent-status-pill[style*="F59E0B" i] {
  background: #FEF3C7 !important;
  color: #92400E !important;
  border-color: #F59E0B !important;
}
body.light-theme #adminTab-security .badge-threat-medium {
  background: #FEF3C7 !important;
  color: #92400E !important;
  border-color: #B45309 !important;
}

/* 7. Pagination & Form Inputs in Admin Modal */
body.light-theme #adminModal select[style*="F5D061" i],
body.light-theme #adminModal select[id*="PageSelect"] {
  color: #92400E !important;
}
body.light-theme #adminModal select[id*="PageSelect"] option {
  color: #92400E !important;
}
body.light-theme #adminModal input[style*="F5D061" i] {
  color: #92400E !important;
}
body.light-theme #adminModal strong[style*="F5D061" i] {
  color: #92400E !important;
}
body.light-theme #adminModal i[style*="F5D061" i],
body.light-theme #adminModal i[style*="F59E0B" i] {
  color: #92400E !important;
}

/* 8. Accounting Expense Category Select & Optgroups */
.form-control-admin optgroup {
  background: #0B192C;
  color: #F5D061;
  font-weight: 700;
  font-style: normal;
  padding: 4px 0;
}
.form-control-admin optgroup option {
  background: #0F172A;
  color: #F8FAFC;
  font-weight: 400;
  padding: 4px 8px;
}

body.light-theme select.form-control-admin optgroup,
body.light-theme #adminModal select.form-control-admin optgroup {
  background: #F1F5F9 !important;
  color: #1E3E62 !important;
  font-weight: 700;
  font-style: normal;
}
body.light-theme select.form-control-admin optgroup option,
body.light-theme #adminModal select.form-control-admin optgroup option {
  background: #FFFFFF !important;
  color: #0F172A !important;
  font-weight: 400;
}

/* ==============================================================================
   MY RES PROFILE & CONTACT MODAL (#agentProfileModal)
   ============================================================================== */
#agentProfileModal .modal-card {
  max-width: 480px;
  width: 92%;
  border-radius: 14px;
}

#agentProfileModal .admin-section-card {
  background: rgba(0, 0, 0, 0.18) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: none !important;
}

#agentProfileModal #profileCeaReg[readonly] {
  color: var(--text-main, #FFFFFF) !important;
  font-weight: 500 !important;
  font-family: inherit !important;
  font-size: 0.85rem !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  cursor: default !important;
}

#agentProfileModal #profileAgency {
  color: var(--text-main, #FFFFFF) !important;
}

/* Light Theme Styling for #agentProfileModal */
body.light-theme #agentProfileModal .modal-card {
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.15) !important;
}

body.light-theme #agentProfileModal .modal-header {
  border-bottom: 1px solid #E2E8F0 !important;
}

body.light-theme #agentProfileModal .modal-title {
  color: #0F172A !important;
}

body.light-theme #agentProfileModal .caption-text {
  color: #64748B !important;
}

body.light-theme #agentProfileModal #agentProfileDisplayName {
  color: #0F172A !important;
}

body.light-theme #agentProfileModal .admin-section-card {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: none !important;
}

body.light-theme #agentProfileModal .subtitle-text {
  color: #475569 !important;
}

body.light-theme #agentProfileModal #profileCeaReg[readonly] {
  color: #0F172A !important;
  font-family: inherit !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  background: #F1F5F9 !important;
  border: 1px solid #CBD5E1 !important;
}

body.light-theme #agentProfileModal #profileAgency {
  color: #0F172A !important;
}

body.light-theme #agentProfileModal .form-input {
  background: #FFFFFF !important;
  color: #0F172A !important;
  border: 1px solid #CBD5E1 !important;
}

body.light-theme #agentProfileModal #profilePhone:focus,
body.light-theme #agentProfileModal #profileEmail:focus {
  border-color: #0284C7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
}

/* ==============================================================================
   GUEST MODE MENU & MOBILE SLIDE-IN DRAWER STYLES
   ============================================================================== */
.text-gold {
  color: var(--text-gold, #F5D061) !important;
}

body.light-theme .text-gold {
  color: var(--text-gold, #D97706) !important;
}

.guest-menu-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 12px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
}

.guest-menu-row:hover {
  background: rgba(245, 208, 97, 0.12) !important;
}

body.light-theme .guest-menu-row:hover {
  background: #FEF3C7 !important;
}

body.light-theme .guest-menu-row span {
  color: #0F172A !important;
}

/* Deprecated Mobile Hamburger & Drawer - Disabled to enforce exact same laptop dropdown menu style on all viewports */
.mobile-hamburger-btn,
#mobileHamburgerBtn,
.mobile-nav-drawer-backdrop,
.mobile-nav-drawer-panel {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Ensure Nav Profile Dropdown Menus adapt seamlessly to reduced screens without clipping */
.nav-profile-dropdown,
.agent-dropdown-menu {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  right: 0 !important;
  left: auto !important;
  width: 275px !important;
  max-width: calc(100vw - 16px) !important;
  box-sizing: border-box !important;
  z-index: 100000 !important;
}

@media (max-width: 991px) {
  .nav-profile-dropdown,
  .agent-dropdown-menu {
    right: 0 !important;
    left: auto !important;
  }
}

.mobile-nav-drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 86vw;
  background: #0B192C;
  border-left: 1px solid #1E3E62;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.75);
  z-index: 100001;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-drawer-backdrop.open .mobile-nav-drawer-panel {
  transform: translateX(0);
}

body.light-theme .mobile-nav-drawer-panel {
  background: #FFFFFF !important;
  border-left-color: #CBD5E1 !important;
  box-shadow: -8px 0 25px rgba(15, 23, 42, 0.15) !important;
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.light-theme .mobile-drawer-header {
  border-bottom-color: #E2E8F0;
}

.mobile-drawer-quick-bar {
  display: flex;
  gap: 8px;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.45);
}

body.light-theme .mobile-drawer-quick-bar {
  background: #F8FAFC;
  border-bottom-color: #E2E8F0;
}

.drawer-quick-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s ease;
}

.drawer-quick-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

body.light-theme .drawer-quick-btn {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: #0F172A;
}

.drawer-nav-section-title {
  font-size: 0.70rem;
  font-weight: 800;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 16px 20px 6px 20px;
}

body.light-theme .drawer-nav-section-title {
  color: #64748B;
}

.drawer-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 20px;
  background: transparent;
  border: none;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.drawer-nav-item:hover {
  background: rgba(245, 208, 97, 0.1);
  color: #F5D061;
}

body.light-theme .drawer-nav-item {
  color: #1E293B;
}

body.light-theme .drawer-nav-item:hover {
  background: #FEF3C7;
  color: #B45309;
}

.mobile-drawer-footer {
  margin-top: auto;
  padding: 18px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.55);
}

body.light-theme .mobile-drawer-footer {
  background: #F8FAFC;
  border-top-color: #E2E8F0;
}

.drawer-btn-auth.btn-login {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px;
  font-size: 0.90rem;
  font-weight: 700;
  border-radius: 8px;
  background: linear-gradient(135deg, #F5D061 0%, #E5A93C 100%);
  color: #012B40;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(245, 208, 97, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.drawer-btn-auth.btn-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(245, 208, 97, 0.4);
}

/* ==============================================================================
   RESPONSIVE MODAL CLOSE BUTTONS & GUEST MODE CAPTURE ENGINE
   ============================================================================== */

/* Ensure modal cards and dialogs establish a positioning context */
.modal-card,
.admin-modal-card,
.directory-modal-card,
.admin-credit-modal-card,
.admin-promo-modal-card,
.modal-details-suite {
  position: relative !important;
}

/* Modal headers keep close button anchored top-right */
.modal-header,
.admin-modal-header {
  position: relative !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
}

.modal-header .modal-close-btn,
.admin-modal-header .modal-close-btn,
.modal-card > .modal-close-btn,
.modal-details-suite > .modal-close-btn {
  flex-shrink: 0 !important;
  margin-left: auto !important;
}

/* Close window buttons should always be at the top right corner of every modal window */
.modal-card,
.modal-details-suite,
.admin-modal-card,
.directory-modal-card,
.admin-credit-modal-card,
.admin-promo-modal-card,
.modal-backdrop > div {
  position: relative !important;
}

.modal-close-btn,
.modal-card > .modal-close-btn,
.modal-details-suite > .modal-close-btn,
.modal-card .modal-close-btn,
.modal-header .modal-close-btn,
.admin-modal-header .modal-close-btn {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  z-index: 100 !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}

@media (max-width: 768px) {
  .modal-card,
  .admin-modal-card,
  .modal-details-suite {
    position: relative !important;
  }
  
  .modal-close-btn,
  .modal-header .modal-close-btn,
  .admin-modal-header .modal-close-btn,
  .modal-card > .modal-close-btn,
  .modal-details-suite > .modal-close-btn {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    z-index: 100 !important;
  }

  .modal-header,
  .admin-modal-header {
    padding-right: 48px !important;
  }
}

@media (max-width: 480px) {
  .modal-header .modal-close-btn,
  .admin-modal-header .modal-close-btn,
  .modal-card > .modal-close-btn,
  .modal-details-suite > .modal-close-btn {
    top: 10px !important;
    right: 10px !important;
    width: 32px !important;
    height: 32px !important;
    font-size: 0.95rem !important;
  }

  .modal-header,
  .admin-modal-header {
    padding-right: 42px !important;
  }
}

/* Guest Mode Capture Helper (expands full card height & hides extraneous controls during screenshot capture) */
.guest-mode-capture {
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
  overflow-y: visible !important;
}

.guest-mode-capture .btn-add-client,
.guest-mode-capture .owner-controls-grid,
.guest-mode-capture .my-listing-social-details,
.guest-mode-capture .dummy-detail-banner,
.guest-mode-capture .dummy-badge-pill,
.guest-mode-capture [class*="owner-controls"],
.guest-mode-capture details.my-listing-social-details,
.guest-mode-capture .detail-agent-box > div:has(.btn-action-edit),
.guest-mode-capture > .modal-close-btn,
.guest-mode-capture .modal-close-btn,
.guest-mode-capture .detail-utility-row {
  display: none !important;
}

/* Unhide agent contact number when screen capture is triggered */
.guest-mode-capture #detailAgentContactHover,
.guest-mode-capture .detail-agent-contact-hover {
  display: inline-block !important;
}

body.light-theme .detail-agent-contact-hover {
  color: #0369A1 !important;
  background: rgba(2, 132, 199, 0.1) !important;
  border-color: rgba(2, 132, 199, 0.3) !important;
}

/* ==============================================================================
   RESPONSIVE HERO BANNER & CENTRALLY ALIGNED PILLS SUITE
   ============================================================================== */

/* Ensure category pills and elements are centrally aligned by default */
.category-pills-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  text-align: center !important;
}

.category-pill-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  flex: 0 0 auto !important;
}

.intent-toggle-group {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.intent-toggle-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.goods-access-box {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  flex-wrap: nowrap !important;
  gap: 4px !important;
  padding: 10px 16px !important;
}

.goods-access-item {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex: 1 1 0px !important;
  white-space: nowrap !important;
  text-align: left !important;
  font-size: clamp(0.66rem, 0.8vw, 0.74rem) !important;
  padding: 3px 6px !important;
  border-radius: 6px !important;
  gap: 5px !important;
  cursor: pointer !important;
  transition: background 0.15s ease, color 0.15s ease !important;
}

.goods-access-item:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}

body.light-theme .goods-access-item:hover {
  background: rgba(2, 132, 199, 0.08) !important;
}

@media (max-width: 1080px) and (min-width: 769px) {
  .goods-access-box {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    justify-content: start !important;
    gap: 8px 12px !important;
    padding: 10px 16px !important;
  }
  .goods-access-item {
    flex: none !important;
    width: 100% !important;
    min-width: 0 !important;
    justify-content: flex-start !important;
    text-align: left !important;
    font-size: 0.72rem !important;
    padding: 3px 6px !important;
  }
}

@media (max-width: 991px) {
  .hero-banner {
    padding: clamp(26px, 3.8vw, 36px) 0 clamp(30px, 4.5vw, 42px) 0 !important;
    min-height: auto !important;
  }
  .hero-content {
    width: 96vw !important;
    max-width: 96vw !important;
    padding: 0 10px !important;
  }
  .category-pills-bar {
    justify-content: center !important;
    gap: 7px !important;
  }
}

@media (max-width: 768px) {
  .hero-banner {
    padding: 24px 0 30px 0 !important;
    min-height: auto !important;
  }
  .hero-title {
    font-size: clamp(1.20rem, 4.2vw, 1.60rem) !important;
    line-height: 1.25 !important;
    margin-bottom: 8px !important;
    text-align: center !important;
  }
  .hero-subtitle {
    font-size: clamp(0.72rem, 2.4vw, 0.82rem) !important;
    margin: 0 auto 14px auto !important;
    text-align: center !important;
    padding: 0 8px !important;
  }
  .category-pills-bar {
    justify-content: center !important;
    gap: 6px !important;
    padding: 2px 0 12px 0 !important;
    margin-bottom: 14px !important;
  }
  .category-pill-btn {
    height: 31px !important;
    padding: 0 11px !important;
    font-size: 0.72rem !important;
    gap: 5px !important;
  }
  .filter-panel-card {
    padding: 18px 16px !important;
    border-radius: 14px !important;
    margin-top: 14px !important;
  }
  .intent-toggle-group {
    height: 38px !important;
  }
  .intent-toggle-btn {
    height: 32px !important;
    font-size: 0.73rem !important;
    padding: 0 6px !important;
  }
  .goods-access-box {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    justify-content: start !important;
    gap: 8px 10px !important;
    padding: 10px 12px !important;
  }
  .goods-access-item {
    flex: none !important;
    width: 100% !important;
    min-width: 0 !important;
    justify-content: flex-start !important;
    text-align: left !important;
    font-size: 0.71rem !important;
    gap: 5px !important;
    padding: 3px 6px !important;
  }
}

@media (max-width: 480px) {
  .hero-banner {
    padding: 18px 0 24px 0 !important;
  }
  .hero-content {
    width: 98vw !important;
    max-width: 98vw !important;
    padding: 0 6px !important;
  }
  .hero-title {
    font-size: clamp(1.10rem, 5.2vw, 1.35rem) !important;
    letter-spacing: -0.01em !important;
  }
  .hero-subtitle {
    font-size: 0.72rem !important;
    margin-bottom: 12px !important;
    line-height: 1.4 !important;
  }
  .category-pills-bar {
    gap: 5px !important;
  }
  .category-pill-btn {
    height: 29px !important;
    padding: 0 9px !important;
    font-size: 0.68rem !important;
    gap: 4px !important;
  }
  .filter-panel-card {
    padding: 14px 10px !important;
    border-radius: 12px !important;
  }
  .filter-label {
    font-size: 0.68rem !important;
    margin-bottom: 6px !important;
  }
  .intent-toggle-group {
    height: 36px !important;
    padding: 2px !important;
  }
  .intent-toggle-btn {
    height: 30px !important;
    font-size: 0.69rem !important;
    padding: 0 4px !important;
  }
  .form-select {
    height: 38px !important;
    font-size: 0.78rem !important;
    padding: 0 28px 0 10px !important;
  }
  .goods-access-box {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    justify-content: start !important;
    gap: 7px 10px !important;
    padding: 8px 10px !important;
  }
  .goods-access-item {
    flex: none !important;
    width: 100% !important;
    min-width: 0 !important;
    justify-content: flex-start !important;
    text-align: left !important;
    font-size: 0.68rem !important;
    padding: 3px 6px !important;
  }
  .nl-query-input {
    height: 40px !important;
    font-size: 0.75rem !important;
  }
  .btn-nl-search-white {
    height: 40px !important;
    font-size: 0.82rem !important;
  }
}

@media (max-width: 360px) {
  .category-pill-btn {
    height: 27px !important;
    padding: 0 7px !important;
    font-size: 0.65rem !important;
    gap: 3px !important;
  }
  .intent-toggle-btn {
    font-size: 0.65rem !important;
    padding: 0 2px !important;
  }
  .goods-access-box {
    gap: 6px 8px !important;
    padding: 6px 6px !important;
  }
  .goods-access-item {
    font-size: 0.66rem !important;
    justify-content: flex-start !important;
    text-align: left !important;
    padding: 3px 4px !important;
  }
}

/* ==============================================================================
   CREDIT LEDGER PAGINATION & RETENTION SUITE (100 ENTRIES / PAGE)
   ============================================================================== */
.credit-ledger-pagination-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.light-theme .credit-ledger-pagination-wrap {
  border-top-color: #D6EBF8;
}

.credit-ledger-counter {
  font-size: 0.80rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.credit-ledger-pagination-controls {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.btn-ledger-page {
  height: 30px;
  min-width: 30px;
  padding: 0 8px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text-main);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.18s ease;
  user-select: none;
}

body.light-theme .btn-ledger-page {
  background: #FFFFFF;
  border-color: #D6EBF8;
  color: #0F172A;
}

.btn-ledger-page:hover:not(:disabled) {
  border-color: #F5D061;
  color: #F5D061;
  transform: translateY(-1px);
}

.btn-ledger-page.active {
  background: var(--gold-gradient);
  color: #080E21 !important;
  border-color: #B45309;
  font-weight: 900;
  box-shadow: 0 2px 6px rgba(245, 208, 97, 0.3);
}

.btn-ledger-page:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.ledger-page-indicator {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0 6px;
}

/* =========================================================
   CONTACT US MODAL (#contactModal) RESPONSIVE DESIGN & THEME
   ========================================================= */
.contact-modal-card {
  max-width: 680px !important;
  width: 94vw !important;
  border-radius: 14px;
}

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

@media (max-width: 640px) {
  .contact-form-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
}

.contact-form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main, #E2E8F0);
  margin-bottom: 6px;
}

.contact-form-input,
.contact-form-select {
  width: 100%;
  height: 40px;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 0.88rem;
  background: var(--navy-input, #080E21);
  border: 1px solid var(--border, #1E293B);
  color: var(--text-main, #FFFFFF);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.contact-form-textarea {
  width: 100%;
  min-height: 110px;
  border-radius: 8px;
  padding: 12px;
  font-size: 0.88rem;
  line-height: 1.5;
  background: var(--navy-input, #080E21);
  border: 1px solid var(--border, #1E293B);
  color: var(--text-main, #FFFFFF);
  outline: none;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.contact-form-input:focus,
.contact-form-select:focus,
.contact-form-textarea:focus {
  border-color: #F5D061 !important;
  box-shadow: 0 0 0 2px rgba(245, 208, 97, 0.25) !important;
}

/* Light Mode Overrides for Contact Form */
body.light-theme .contact-form-label {
  color: #0F172A !important;
}

body.light-theme .contact-form-input,
body.light-theme .contact-form-select,
body.light-theme .contact-form-textarea {
  background: #FFFFFF !important;
  border: 1.5px solid #CBD5E1 !important;
  color: #0F172A !important;
  box-shadow: 0 1px 3px rgba(11, 34, 56, 0.05) !important;
}

body.light-theme .contact-form-input:focus,
body.light-theme .contact-form-select:focus,
body.light-theme .contact-form-textarea:focus {
  border-color: #0284C7 !important;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2) !important;
}

body.light-theme .contact-form-input::placeholder,
body.light-theme .contact-form-textarea::placeholder {
  color: #94A3B8 !important;
}

/* ==========================================================================
   ADMIN PORTAL AUTHENTICATION MODAL (#adminLoginModal)
   Harmonize background with standard dark mode pop-up theme (#023D5B -> #012235)
   and recessed form input surface (--navy-input / #011E2D)
   ========================================================================== */
#adminLoginModal .modal-card {
  background: linear-gradient(180deg, #023D5B 0%, #012235 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-top: 1.5px solid rgba(255, 255, 255, 0.45) !important;
  border-radius: var(--radius-lg, 20px) !important;
  color: var(--text-main, #FFFFFF) !important;
}

body:not(.light-theme) #adminLoginModal .form-input,
body:not(.light-theme) #adminLoginModal input[type="email"],
body:not(.light-theme) #adminLoginModal input[type="password"],
body:not(.light-theme) #adminLoginModal #adminLoginEmail,
body:not(.light-theme) #adminLoginModal #adminLoginPassword {
  background: var(--navy-input, #011E2D) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #FFFFFF !important;
}

body:not(.light-theme) #adminLoginModal .form-input:focus,
body:not(.light-theme) #adminLoginModal #adminLoginEmail:focus,
body:not(.light-theme) #adminLoginModal #adminLoginPassword:focus {
  background: var(--navy-input, #011E2D) !important;
  border-color: #38BDF8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25) !important;
  color: #FFFFFF !important;
}

/* Ensure browser autofill in dark theme matches the dark mode input background */
body:not(.light-theme) #adminLoginModal input:-webkit-autofill,
body:not(.light-theme) #adminLoginModal input:-webkit-autofill:hover,
body:not(.light-theme) #adminLoginModal input:-webkit-autofill:focus,
body:not(.light-theme) #adminLoginModal input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #011E2D inset !important;
  -webkit-text-fill-color: #FFFFFF !important;
  caret-color: #FFFFFF !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* ==============================================================================
   10.33 PROPERTY WATERMARK OVERLAY (GUEST MODE)
   Applied over main photo viewport, 16:9 videos, and 360 virtual tours
   ============================================================================== */
.property-watermark-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  pointer-events: none !important;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 14px;
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
}

.property-watermark-overlay .watermark-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  opacity: 0.70;
  pointer-events: none !important;
  transition: opacity 0.2s ease;
}

.property-watermark-overlay .watermark-agent-badge {
  align-self: flex-start;
  gap: 9px;
  padding: 5px 12px 5px 6px;
  border-radius: 28px;
  max-width: 80%;
}

.property-watermark-overlay .watermark-agent-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid #F5D061;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.property-watermark-overlay .watermark-agent-info {
  display: flex;
  flex-direction: column;
  line-height: 1.22;
  text-align: left;
  min-width: 0;
}

.property-watermark-overlay .watermark-agent-name {
  font-size: 0.80rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.property-watermark-overlay .watermark-agent-cea {
  font-size: 0.70rem;
  font-weight: 600;
  color: #F5D061;
  font-family: 'SF Mono', Consolas, monospace;
  letter-spacing: 0.4px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
  white-space: nowrap;
}

.property-watermark-overlay .watermark-bottom-row {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

/* 10.33.1 Video Watermark: Shift wukplace.sg logo to top right to keep video controls unobstructed */
.detail-yt-box .property-watermark-overlay .watermark-bottom-row,
.property-watermark-overlay.watermark-video-layout .watermark-bottom-row,
.detail-yt-box.video-playing .property-watermark-overlay .watermark-bottom-row {
  position: absolute;
  top: 12px;
  right: 14px;
  bottom: auto;
  left: auto;
  width: auto;
  margin: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  transition: top 0.25s ease, right 0.25s ease;
}

.detail-yt-box .property-watermark-overlay .watermark-agent-badge,
.property-watermark-overlay.watermark-video-layout .watermark-agent-badge {
  max-width: calc(100% - 150px);
}

.property-watermark-overlay .watermark-logo-badge {
  padding: 5px 10px;
  border-radius: 6px;
}

.property-watermark-overlay .watermark-logo-img {
  height: 18px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.9));
}

@media (max-width: 600px) {
  .property-watermark-overlay {
    padding: 8px 10px;
  }
  .property-watermark-overlay .watermark-agent-badge {
    padding: 4px 10px 4px 5px;
    gap: 7px;
  }
  .property-watermark-overlay .watermark-agent-avatar {
    width: 28px;
    height: 28px;
  }
  .property-watermark-overlay .watermark-agent-name {
    font-size: 0.74rem;
  }
  .property-watermark-overlay .watermark-agent-cea {
    font-size: 0.64rem;
  }
  .property-watermark-overlay .watermark-logo-img {
    height: 15px;
  }
  .detail-yt-box .property-watermark-overlay .watermark-bottom-row,
  .property-watermark-overlay.watermark-video-layout .watermark-bottom-row,
  .detail-yt-box.video-playing .property-watermark-overlay .watermark-bottom-row {
    top: 8px;
    right: 10px;
  }
  .detail-yt-box .property-watermark-overlay .watermark-agent-badge,
  .property-watermark-overlay.watermark-video-layout .watermark-agent-badge {
    max-width: calc(100% - 120px);
  }
}

/* ==============================================================================
   FOOTER NAVIGATION BAR & DYNAMIC SITEMAP STYLING
   ============================================================================== */
.footer-nav-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 18px 0 16px 0;
  padding-top: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.footer-nav-link {
  color: var(--text-main, #E2E8F0);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.footer-nav-link:hover {
  color: #F5D061 !important;
  transform: translateY(-1px);
}

body.light-theme .footer-nav-bar {
  border-top-color: #D6EBF8 !important;
}

body.light-theme .footer-nav-link {
  color: #0F172A !important;
}

body.light-theme .footer-nav-link:hover {
  color: #0284C7 !important;
}

body.light-theme #sitemapModal .modal-card {
  background: #FFFFFF !important;
  color: #0F172A !important;
  border-color: #D6EBF8 !important;
}

body.light-theme #sitemapModal .modal-header,
body.light-theme #sitemapModal .modal-footer {
  background: #F8FAFC !important;
  border-color: #E2E8F0 !important;
}

body.light-theme #sitemapModal [style*="background:var(--navy-input"] {
  background: #F1F5F9 !important;
  border-color: #E2E8F0 !important;
}

body.light-theme #sitemapModal button[type="button"] {
  background: #FFFFFF !important;
  border-color: #CBD5E1 !important;
  color: #0F172A !important;
}

body.light-theme #sitemapModal button[type="button"]:hover {
  background: #E0F2FE !important;
  border-color: #0284C7 !important;
}
