﻿:root {
  --bg: #f9fafb;
  --off: #ffffff;
  --br: #e2e8f0;
  --tx: #0f172a;
  --txs: #334155;
  --gr: #64748b;
  --p: #1a5f5c; /* HOMUtopia Deep Teal */
  --pl: #247a76;
  --pll: #f0fdfa;
  --s: #10b981;
  --su: #059669;
  --sul: #ecfdf5;
  --wa: #f59e0b;
  --wal: #fffbeb;
  --da: #e11d48;
  --dal: #fff1f2;
  --rs: 12px;
  --rf: 50px;
  --sh: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.dark-mode {
  --bg: #0f172a;
  --off: #1e293b;
  --br: #334155;
  --tx: #f7fafc;
  --txs: #e2e8f0;
  --gr: #94a3b8;
  --pll: #0d2e2d;
  --sul: #064e3b;
  --wal: #78350f;
  --dal: #4c0519;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  font-family:
    'Inter',
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 16px;
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  transition: all 0.3s ease;
  min-height: 100vh;
}
/* Premium Typography & Spacing */
/* Premium Typography & Spacing */
.ph {
  padding: 0 0 32px 0;
}
.pt {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--tx);
  line-height: 1.2;
}
.ps {
  font-size: 15px;
  color: var(--gr);
  margin-top: 8px;
  font-weight: 500;
}

/* ============================================================
   POLISHED AIRBNB-STYLE SEARCH BAR
   ============================================================ */
.search-bar-modern {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 50px;
  padding: 8px 8px 8px 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.07);
  margin-bottom: 18px;
  transition:
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}
.search-bar-modern:hover {
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
  border-color: #cbd5e1;
}
.search-bar-row {
  display: flex;
  align-items: center;
}
.search-segment {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6px 14px;
  flex: 1;
  min-width: 0;
  position: relative;
  cursor: pointer;
  border-radius: 40px;
  transition: background 0.15s ease;
}
.search-segment:hover {
  background: #f1f5f9;
}
.search-segment:focus-within {
  background: #f8fafc;
}
.search-segment.search-location {
  flex: 2;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 6px 18px;
}
.search-divider {
  width: 1px;
  height: 34px;
  background: #e2e8f0;
  flex-shrink: 0;
}
.search-field-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: #0d5c3a;
  text-transform: uppercase;
  margin-bottom: 1px;
  line-height: 1.2;
}
.search-input-clean {
  border: none;
  outline: none;
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
  background: transparent;
  width: 100%;
  padding: 0;
  line-height: 1.4;
}
.search-input-clean::placeholder {
  color: #94a3b8;
  font-weight: 400;
}
.search-select-clean {
  border: none;
  outline: none;
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
  background: transparent;
  cursor: pointer;
  appearance: none;
  padding: 0 22px 0 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  width: 100%;
  line-height: 1.4;
}
.search-btn-modern {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #0d5c3a;
  color: #ffffff;
  border: none;
  border-radius: 40px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition:
    background 0.2s ease,
    transform 0.15s ease;
}
.search-btn-modern:hover {
  background: #083c26;
  transform: scale(1.02);
}
.search-btn-modern:active {
  transform: scale(0.97);
}

/* Filter Chips Row */
.search-filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 8px 4px;
  flex-wrap: wrap;
}
.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}
.chip-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  line-height: 1.3;
}
.chip-btn:hover {
  border-color: #0d5c3a;
  color: #0d5c3a;
  background: #f0fdf4;
}
.chip-btn.active {
  background: #0d5c3a;
  color: #ffffff;
  border-color: #0d5c3a;
}
.filter-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.filter-toggle {
  font-size: 12px;
  color: #64748b;
  padding: 5px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  line-height: 1.3;
}
.filter-toggle.on {
  color: #0d5c3a;
  border-color: #0d5c3a;
  background: #f0fdf4;
}
.sort-clean {
  border: none;
  outline: none;
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  background: transparent;
  cursor: pointer;
  padding: 5px 20px 5px 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  line-height: 1.3;
}
.badge-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 7px;
  height: 7px;
  background: #0d5c3a;
  border-radius: 50%;
  border: 2px solid #ffffff;
}

/* More Filters Inline Panel */
.more-filters-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 20px;
  margin: 10px 6px 0;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}
.panel-section {
  margin-bottom: 18px;
}
.panel-section:last-child {
  margin-bottom: 0;
}
.panel-label {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: block;
  margin-bottom: 10px;
}
.panel-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 768px) {
  .search-bar-modern {
    border-radius: 20px;
    padding: 10px 12px;
  }
  .search-bar-row {
    flex-wrap: wrap;
    gap: 6px;
  }
  .search-segment.search-location {
    flex: 1 1 100%;
    padding: 6px 4px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 4px;
  }
  .search-segment {
    flex-direction: column;
    align-items: flex-start;
    padding: 4px 8px;
    gap: 1px;
    flex: 1 1 40%;
  }
  .search-divider {
    display: none;
  }
  .search-btn-modern {
    width: 100%;
    justify-content: center;
    margin-top: 6px;
    padding: 14px 28px;
  }
  .search-filter-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
.filter-right {
  justify-content: space-between;
  flex-wrap: wrap;
}
}

/* Public Listings Header */
.public-listings-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 40;
}
.public-listings-logo {
  width: 52px;
  height: 52px;
  cursor: pointer;
  border-radius: 10px;
  transition: opacity 0.15s;
}
.public-listings-logo:hover {
  opacity: 0.8;
}
.public-listings-actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}
.public-listings-body {
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Smart Search Wrapper */
.smart-search-wrapper {
  position: relative;
}
.smart-search-input {
  width: 100%;
  padding: 16px 48px 16px 48px !important;
  font-size: 16px !important;
  border: 2px solid var(--br) !important;
  border-radius: 14px !important;
  transition: all 0.2s ease;
}
.smart-search-input:focus {
  border-color: var(--p) !important;
  box-shadow: 0 0 0 4px var(--pll) !important;
}
.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  color: var(--gr);
  pointer-events: none;
}

/* Location Suggestions */
.location-suggestions.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  z-index: 100;
  max-height: 300px;
  overflow-y: auto;
  display: none;
  padding: 6px;
}
.location-suggestion {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 10px;
  transition: background 0.15s;
}
.location-suggestion:hover {
  background: #f1f5f9;
}
.location-suggestion .icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: #f1f5f9;
  color: #475569;
}
.location-suggestion .text {
  flex: 1;
  min-width: 0;
}
.location-suggestion .label {
  font-weight: 600;
  font-size: 14px;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.location-suggestion .subtext {
  font-size: 12px;
  color: #64748b;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.location-suggestion .type-badge {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: capitalize;
  flex-shrink: 0;
}

/* Filter Action Button */
.filter-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  height: 48px;
  min-width: 160px;
  justify-content: center;
  border: 1.5px solid var(--br);
  border-radius: 12px;
  background: var(--off);
  color: var(--txs);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover {
  border-color: var(--p);
  color: var(--p);
  background: var(--pll);
}
.filter-indicator {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--p);
  border-radius: 50%;
}

/* More Filters Modal fpill */
#more-filters-modal .fpill {
  font-size: 12px;
  padding: 6px 12px;
}

/* Premium Progress Bars */
.pbar {
  background: var(--br);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.pfill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.pfill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
}

/* Premium Card System */
.card {
  padding: 32px;
  margin-bottom: 20px;
  background: var(--off);
  border: 1px solid var(--br);
  border-radius: var(--rs);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 1px 2px rgba(0, 0, 0, 0.02);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card:hover {
  box-shadow: var(--sh);
  border-color: var(--p);
}

/* Premium Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1.5px solid transparent;
  gap: 8px;
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
}
.btn-p {
  background: var(--p);
  color: white;
  border: none;
  box-shadow: 0 1px 2px rgba(26, 95, 92, 0.2);
}
.btn-p:hover {
  background: var(--pl);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 95, 92, 0.3);
}
.btn-o {
  background: var(--off);
  border-color: var(--br);
  color: var(--txs);
}
.btn-o:hover {
  border-color: var(--p);
  color: var(--p);
  background: var(--pll);
}
.btn-s {
  background: var(--s);
  color: white;
  border: none;
  box-shadow: 0 1px 2px rgba(16, 185, 129, 0.2);
}
.btn-s:hover {
  background: var(--su);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Button Size Variants */
.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
  border-radius: 8px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
}

.listing-gallery {
  margin-bottom: 20px;
}
.main-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--rs);
  cursor: pointer;
  transition: transform 0.2s;
}
.main-image:hover {
  transform: scale(1.02);
}
.thumbnail-strip {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 5px;
}
.thumbnail {
  width: 100px;
  height: 75px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}
.thumbnail:hover,
.thumbnail.active {
  border-color: var(--p);
}

.gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-modal img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}
.gallery-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.3);
  color: white;
  border: none;
  font-size: 30px;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 8px;
}
.gallery-nav.prev {
  left: 20px;
}
.gallery-nav.next {
  right: 20px;
}

.input-with-icon {
  position: relative;
  width: 100%;
}
.input-with-icon .form-input {
  padding-left: 44px;
  padding-right: 56px;
}
.input-with-icon > i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gr);
  pointer-events: none;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--br);
  border-radius: 10px;
  background: var(--pll);
  color: var(--tx);
  outline: none;
  transition: all 0.2s;
  font-size: 14px;
}
.form-input:focus {
  border-color: var(--p);
  box-shadow: 0 0 0 4px var(--pll);
}
.form-input:disabled {
  background: #f1f5f9;
  color: #475569;
  cursor: not-allowed;
  opacity: 1;
}
.dark-mode .form-input:disabled {
  background: #1e293b;
  color: #94a3b8;
}

/* Profile & Settings layout */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1000px;
}
@media (max-width: 768px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
}

/* Danger Zone card */
.danger-zone {
  border: 1px solid #fecaca;
  background: #fffbfb;
}
.dark-mode .danger-zone {
  border-color: #7f1d1d;
  background: #1a0a0a;
}
.danger-zone-header {
  font-size: 18px;
  font-weight: 800;
  color: var(--da);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.danger-zone-desc {
  font-size: 13px;
  color: var(--gr);
  margin: 0 0 16px 0;
  line-height: 1.5;
}

/* Danger button */
.btn-d {
  background: var(--off);
  border-color: var(--da);
  color: var(--da);
}
.btn-d:hover {
  background: var(--da);
  border-color: var(--da);
  color: white;
}

/* Delete confirmation modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.2s ease;
}
.modal-box {
  background: var(--off);
  border-radius: var(--rs);
  padding: 32px;
  max-width: 440px;
  width: 90%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: slideUp 0.25s ease;
}
.modal-box h3 {
  margin: 0 0 8px 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--da);
}
.modal-box p {
  margin: 0 0 20px 0;
  font-size: 14px;
  color: var(--gr);
  line-height: 1.6;
}
.modal-box .form-input {
  margin-bottom: 16px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.modal-actions {
  display: flex;
  gap: 12px;
}
.modal-actions .btn {
  flex: 1;
  justify-content: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-fade-in-up {
  animation: fadeInUp 0.4s ease-out forwards;
}

.trial-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  border-bottom: 1px solid;
  flex-shrink: 0;
}
.trial-banner--active {
  background: #0f172a;
  color: #e2e8f0;
  border-color: #1e293b;
}
.trial-banner--expired {
  background: #e11d48;
  color: #fff;
  border-color: #be123c;
}
.trial-banner__content {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.trial-banner__icon {
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}
.trial-banner--active .trial-banner__icon {
  color: #34d399;
}
.trial-banner__text strong {
  font-weight: 700;
}
.trial-banner--active .trial-banner__text strong {
  color: #34d399;
}
.trial-banner__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  transition: all 0.15s;
  flex-shrink: 0;
}
.trial-banner--active .trial-banner__btn {
  background: #10b981;
  color: #0f172a;
}
.trial-banner--active .trial-banner__btn:hover {
  background: #34d399;
}
.trial-banner--expired .trial-banner__btn {
  background: #fff;
  color: #e11d48;
}
.trial-banner--expired .trial-banner__btn:hover {
  background: #f1f5f9;
}

.hero-banner {
  background:
    linear-gradient(135deg, rgba(26, 95, 92, 0.85) 0%, rgba(13, 66, 64, 0.9) 100%),
    url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1600&q=80')
      center/cover no-repeat;
  color: white;
  border-radius: 0 0 60px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-bottom: 120px;
}

.pc {
  background: white;
  border: 1px solid var(--br);
  border-radius: var(--rs);
  flex: 1 1 300px;
  overflow: hidden;
  transition: transform 0.2s;
}
.pc:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh);
}
.pc-thumb {
  height: 180px;
  position: relative;
}
.pc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pc-info {
  padding: 15px;
}

.favorite-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.3);
  color: white;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.favorite-btn:hover {
  background: rgba(0, 0, 0, 0.5);
  transform: scale(1.1);
}
.favorite-btn.active {
  background: var(--da);
  color: white;
}
.favorite-btn.active i {
  fill: white;
}

.social-btn {
  padding: 8px;
  flex: 1;
}
.social-btn.facebook:hover {
  background-color: #1877f2;
  color: white;
  border-color: #1877f2;
}
.social-btn.twitter:hover {
  background-color: #1da1f2;
  color: white;
  border-color: #1da1f2;
}
.social-btn.whatsapp:hover {
  background-color: #25d366;
  color: white;
  border-color: #25d366;
}
.social-btn i {
  width: 16px;
  height: 16px;
}

.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}

/* Premium Grid System with Better Breathing Room */
.g2,
.g3,
.g4 {
  display: grid;
  gap: 20px;
  margin-bottom: 24px;
}
.g2 {
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
}
.g3 {
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}
.g4 {
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
}

/* Enhanced Listing Card Styles */
.lcard .pc-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #111827;
  overflow: hidden;
}
.lcard .pc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
  background: #111827;
}
.lcard .pc-thumb img[src=''],
.lcard .pc-thumb img.img-fallback {
  opacity: 0.4;
  object-fit: contain;
  max-height: 50px;
  width: auto;
  margin: auto;
}
.lcard .pc-thumb img[src=''] + .price-badge,
.lcard .pc-thumb img.img-fallback + .price-badge {
  display: none;
}
.lcard .pc-info {
  padding: 16px;
}
.lcard .pc-name {
  font-family: inherit;
  font-weight: 800;
  margin-bottom: 6px;
}
.lcard .pc-loc {
  font-size: 13px;
  color: var(--gr);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.lcard .pc-price {
  font-weight: 700;
  color: var(--tx);
}
.lcard .pc-price span {
  font-size: 12px;
  font-weight: 400;
  color: var(--gr);
}
.lcard .btn {
  width: 100%;
  justify-content: center;
}

.price-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.65);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  backdrop-filter: blur(4px);
}
.price-badge span {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.8;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 8px;
  transform: translateY(-50%);
  pointer-events: none;
}
.gallery-nav button {
  pointer-events: auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.2s;
  opacity: 0;
}
.lcard:hover .gallery-nav button {
  opacity: 1;
}
.gallery-nav button:hover {
  background: white;
  transform: scale(1.1);
}

.gallery-dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}
.gallery-dot {
  pointer-events: auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.gallery-dot.active {
  background: white;
  transform: scale(1.3);
}

.verified-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #0d5c3a;
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.vacating-badge {
  position: absolute;
  top: 36px;
  left: 10px;
  background: #f59e0b;
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
}

/* Amenity Tags */
.amenity-tag {
  font-size: 10.5px;
  background: var(--off);
  padding: 3px 8px;
  border-radius: var(--rf);
  font-weight: 600;
  border: 1px solid var(--br);
}

/* Skeleton Loaders */
.skeleton {
  background: linear-gradient(90deg, var(--br) 25%, var(--off) 50%, var(--br) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--rf);
}
@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.unit-hero {
  padding: 40px;
  background: linear-gradient(135deg, #1a5f5c 0%, #247a76 100%);
  color: white;
  border-radius: var(--rs);
  box-shadow: 0 20px 25px -5px rgba(26, 95, 92, 0.2);
}

/* Premium Metric Cards - Unified Design */
.stat-c {
  padding: 28px;
  background: var(--off);
  border: 1px solid var(--br);
  border-radius: var(--rs);
  text-align: left;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.stat-c::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--p);
  opacity: 0.15;
}
.stat-c:hover {
  transform: translateY(-4px);
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 8px 10px -6px rgba(0, 0, 0, 0.1);
  border-color: var(--p);
}
.stat-c:hover::before {
  opacity: 0.3;
}
.stat-val {
  font-size: 36px;
  font-weight: 800;
  color: var(--tx);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 4px 0;
}
.stat-lbl {
  font-size: 12px;
  font-weight: 600;
  color: var(--gr);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.stat-sub {
  font-size: 13px;
  color: var(--gr);
  opacity: 0.7;
  font-weight: 500;
}

/* Vibrant badges */
.badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.bg {
  background: #dcfce7;
  color: #166534;
}
.bw {
  background: #fef3c7;
  color: #92400e;
}
.bb {
  background: #e0e7ff;
  color: #3730a3;
}
.bgr {
  background: #fee2e2;
  color: #991b1b;
}
.ba {
  background: #f3e8ff;
  color: #6b21a8;
}

/* Auth Specific Styles */
.auth-page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  background: var(--bg);
}
/* KYC screens (kyc.js) use .auth-wrap â€” it had NO styles, so the
   "Under Review" / verification screens collapsed. Mirror .auth-page-wrap. */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  background: var(--bg);
  box-sizing: border-box;
}
.auth-header {
  display: none;
}
.auth-card {
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  background: var(--off);
  border-radius: 20px;
  box-shadow:
    0 10px 40px rgba(15, 23, 42, 0.08),
    0 2px 8px rgba(15, 23, 42, 0.04);
  border: 1px solid var(--br);
  padding: 44px 40px;
}

/* ==========================================================================
   Premium Auth Form Styling
   ========================================================================== */

/* Password row layout with label and forgot link side by side */
.password-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

/* Premium, clean styling for Forgot Password (no cheap borders!) */
.forgot-password-link {
  font-size: 13px;
  font-weight: 500;
  color: #1a3224; /* HOMUtopia signature deep green */
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

.forgot-password-link:hover {
  color: #2e5940;
  text-decoration: underline;
  opacity: 0.9;
}

/* Modern Show/Hide Button placement inside the input field */
.password-toggle-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #64748b; /* Cool grey tint */
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease;
}

.password-toggle-btn:hover {
  color: #1a3224; /* Brand green on hover */
}

/* Input wrapper for password toggle button positioning */
.input-with-icon {
  position: relative;
}

.input-with-icon .form-input {
  padding-right: 56px;
}

/* Premium button link style for auth forms */
.btn-link {
  font-size: 13px;
  font-weight: 500;
  color: #1a3224;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

.btn-link:hover {
  color: #2e5940;
  text-decoration: underline;
  opacity: 0.9;
}

/* Password wrapper for toggle button */
.pw-wrap {
  position: relative;
}

.pw-wrap .form-input {
  padding-right: 56px;
}

.pw-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease;
}

.pw-toggle:hover {
  color: #1a3224;
}

@media (max-width: 480px) {
  .auth-page-wrap {
    padding: 24px 14px;
  }
  .auth-wrap {
    padding: 24px 14px;
  }
  .auth-card {
    padding: 32px 22px;
    border-radius: 18px;
  }
  #google-signin-btn iframe,
  #google-signin-btn > div {
    width: 100% !important;
  }
}

/* Centered Stepper */
.auth-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 36px;
  width: 100%;
  max-width: 440px;
}
.auth-stepper .step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.auth-stepper .step-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  background: var(--bg);
  color: var(--gr);
  border: 2px solid var(--br);
  transition: all 0.25s ease;
}
.auth-stepper .step-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gr);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.auth-stepper .step-line {
  flex: 1 1 auto;
  height: 2px;
  background: var(--br);
  margin: 0 6px;
  margin-bottom: 24px;
  min-width: 18px;
}
.auth-stepper .step.done .step-dot {
  background: var(--p);
  color: #fff;
  border-color: var(--p);
}
.auth-stepper .step.done .step-label {
  color: var(--txs);
}
.auth-stepper .step.active .step-dot {
  background: var(--p);
  color: #fff;
  border-color: var(--p);
  box-shadow: 0 0 0 5px var(--pll);
}
.auth-stepper .step.active .step-label {
  color: var(--p);
  font-weight: 700;
}
.auth-stepper .step.done .step-line {
  background: var(--p);
}

.auth-logo {
  text-align: center;
  margin-bottom: 28px;
}
.auth-logo img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  margin: 0 auto 12px;
  display: block;
  box-shadow: 0 8px 20px rgba(26, 95, 92, 0.18);
}
.auth-logo-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--pll);
  color: var(--p);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  margin: 0 auto 10px;
}
.auth-logo-name {
  font-size: 24px;
  font-weight: 800;
  color: var(--tx);
  margin-bottom: 4px;
}
.auth-logo-sub {
  font-size: 15px;
  color: var(--gr);
}

/* OTP Method Choice (single-select) â€” flex so tabs wrap instead of crushing on narrow screens */
.otp-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  background: var(--bg);
  border-radius: 12px;
  padding: 5px;
}
.otp-choice-btn {
  flex: 1 1 140px;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 8px;
  border: 2px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--txs);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.otp-choice-btn i {
  width: 18px;
  height: 18px;
}
.otp-choice-btn:hover {
  color: var(--p);
}
.otp-choice-btn.on {
  background: #fff;
  border-color: var(--p);
  color: var(--p);
  box-shadow: 0 2px 8px rgba(26, 95, 92, 0.15);
}

/* OTP Verify Screen */
.otp-verify-screen {
  text-align: center;
  padding: 24px;
}
.otp-verify-screen .otp-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
}
.otp-input-group {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 20px 0;
}
.otp-input-group input {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  border: 2px solid var(--br);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s;
}
.otp-input-group input:focus {
  border-color: var(--p);
  box-shadow: 0 0 0 3px var(--pll);
}

.auth-tab-row {
  display: flex;
  margin-bottom: 24px;
  background: var(--bg);
  border-radius: 10px;
  padding: 4px;
}
.auth-tab {
  flex: 1;
  padding: 12px 0;
  text-align: center;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--txs);
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
.auth-tab.on {
  background: var(--p);
  color: white;
  box-shadow: 0 2px 8px rgba(26, 95, 92, 0.2);
}

.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--txs);
  margin-bottom: 8px;
}

/* Legacy support for existing pw-toggle */
.pw-wrap {
  position: relative;
}
.pw-toggle {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--p);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

/* Lockout alert banner shown when account is locked */
.lockout-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 16px;
}
.lockout-alert-icon {
  font-size: 18px;
  line-height: 1.4;
  flex-shrink: 0;
}
.lockout-alert-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lockout-alert-msg {
  font-size: 13px;
  color: #991b1b;
  line-height: 1.4;
}
.lockout-alert-btn {
  align-self: flex-start;
  background: #991b1b;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}
.lockout-alert-btn:hover {
  background: #7f1d1d;
}

.error-msg {
  color: var(--da);
  font-size: 12px;
  margin-top: 6px;
}

/* Premium Section Titles */
.st {
  font-size: 18px;
  font-weight: 700;
  color: var(--tx);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.02em;
}

/* Premium Table Styles */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gr);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--br);
  background: var(--bg);
}
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--br);
  color: var(--txs);
}
tr:last-child td {
  border-bottom: none;
}
tr:hover td {
  background: var(--bg);
}

/* Ticket Item Styles */
.tki {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg);
  border-radius: 10px;
  border: 1px solid var(--br);
  transition: all 0.2s;
}
.tki:hover {
  border-color: var(--p);
  background: var(--pll);
}
.tk-ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.tk-body {
  flex: 1;
  min-width: 0;
}
.tk-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--tx);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tk-meta {
  font-size: 12px;
  color: var(--gr);
}
.tdn {
  font-weight: 600;
  color: var(--tx);
}

/* Theme Toggle Button - Compact Style */
.theme-btn {
  background: var(--off);
  border: 1px solid var(--br);
  color: var(--txs);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s;
  width: 36px;
  height: 36px;
}
.theme-btn:hover {
  background-color: var(--pll);
}

/* Modern Role Card Styles */
.role-card-modern {
  position: relative;
}
.role-card-modern .role-card-icon {
  background: var(--bg);
  transition: all 0.2s ease;
}
.role-card-modern .role-card-icon i {
  color: var(--gr);
  transition: all 0.2s ease;
}
.role-card-modern .role-card-title {
  color: var(--txs);
  transition: color 0.2s ease;
}
.role-card-modern:hover {
  border-color: var(--p);
  box-shadow: 0 6px 18px rgba(26, 95, 92, 0.12);
  transform: translateY(-2px);
}
.role-card-modern.on {
  border-color: var(--p);
  background: var(--pll);
  box-shadow: 0 6px 18px rgba(26, 95, 92, 0.2);
}
.role-card-modern.on .role-card-icon {
  background: var(--p);
}
.role-card-modern.on .role-card-icon i {
  color: white;
}
.role-card-modern.on .role-card-title {
  color: var(--p);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
  vertical-align: middle;
}
.btn-loading {
  opacity: 0.8;
  pointer-events: none;
  cursor: not-allowed;
}
.btn-loading .spinner {
  margin-right: 6px;
}
.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
}
/* Custom Scrollbar Styles */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--br);
  border-radius: 10px;
  border: 3px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--p);
}

/* Firefox Support */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--p) transparent;
}

/* App Layout */
/* ==========================================================================
   Modern App Layout â€” Slide-out Sidebar Drawer
   ========================================================================== */

#app {
  display: flex;
  width: 100%;
  min-height: 100vh;
  display: none; /* shown by JS when view === 'app' */
}

/* Slide-out sidebar drawer â€” fixed, hidden off-screen by default */
#sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width, 280px);
  height: 100vh;
  background: linear-gradient(135deg, #122914 0%, #1e3f20 100%);
  color: white;
  z-index: 1000;
  padding: 30px 16px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.15);
}

#sidebar.active {
  transform: translateX(0);
}

#sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

#sidebar-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Main content area â€” takes full width, sidebar is absolutely positioned over it */
#main-content {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  width: 100%;
  min-width: 0;
  min-height: 100vh;
  box-sizing: border-box;
}

#topbar {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  background: var(--off);
  border-bottom: 1px solid var(--br);
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 12px;
}

.topbar-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--p);
}

.topbar-user {
  margin-left: auto;
  text-align: right;
}

.verif-badge {
  margin-left: 10px;
}

/* Hamburger menu button */
.hamburger-menu {
  display: none;
  background: var(--pll);
  border: none;
  color: var(--p);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.sidebar-toggle-btn {
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--p);
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.sidebar-toggle-btn:hover {
  background: var(--pll);
}

.sidebar-toggle-btn svg {
  display: block;
}

/* Dashboard work area */
#main-area {
  flex: 1;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 32px;
  overflow-y: auto;
}

/* Prevent body scroll when sidebar is open on mobile */
.sidebar-open-body {
  overflow: hidden;
}

/* Premium Sidebar Navigation */
.sb-label {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  overflow: hidden;
  margin: 24px 0 12px 16px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
  border: none;
  box-sizing: border-box;
  width: 100%;
  text-align: left;
  margin-bottom: 6px;
  position: relative;
}
.nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transform: translateX(4px);
}
.nav-item.on {
  background: white;
  color: var(--p);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.nav-item.on::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--p);
  border-radius: 0 3px 3px 0;
}
.nav-item.on .nav-icon {
  color: var(--p);
  opacity: 1;
}
.nav-label {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-icon {
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  flex-shrink: 0;
}
.nav-icon i {
  width: 20px;
  height: 20px;
}
.sb-user-info {
  margin-top: auto;
  padding: 16px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.sb-user-info .badge {
  font-size: 9px !important;
  padding: 2px 6px;
  display: inline-block;
}

/* Sidebar Logo */
.sidebar-logo-container {
  padding: 12px 16px 24px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 8px;
}
.sidebar-logo-container img {
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: transform 0.2s;
}
.sidebar-logo-container img:hover {
  transform: scale(1.05);
}
.sidebar-logo-container .nav-label {
  flex: 1;
}
.sidebar-brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: white;
}

/* Premium Empty State */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--gr);
}
.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.4;
}
.empty-state-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--txs);
  margin-bottom: 8px;
}
.empty-state-desc {
  font-size: 14px;
  color: var(--gr);
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Premium Badge Styles */
.badge {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.bg {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.bw {
  background: #fef3c7;
  color: #92400e;
}
.bb {
  background: #e0e7ff;
  color: #3730a3;
}
.bgr {
  background: #fee2e2;
  color: #991b1b;
}
.ba {
  background: #f3e8ff;
  color: #6b21a8;
}

/* Premium Verified Badge */
.verif-badge {
  margin-left: 10px;
}
.verif-badge .badge {
  background: linear-gradient(135deg, #dcfce7 0%, #d1fae5 100%);
  color: #065f46;
  border: 1px solid #a7f3d0;
  box-shadow: 0 1px 2px rgba(16, 185, 129, 0.1);
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Country Toggle in Topbar - Premium Dropdown Style */
.ctoggle {
  position: relative;
  display: inline-block;
  margin-left: 12px;
}
.ctoggle-dropdown {
  position: relative;
  display: inline-block;
}
.ctoggle-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--off);
  border: 1px solid var(--br);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--txs);
}
.ctoggle-btn:hover {
  border-color: var(--p);
  background: var(--pll);
}
.ctoggle-btn i {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}
.ctoggle-dropdown.open .ctoggle-btn i {
  transform: rotate(180deg);
}
.ctoggle-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--off);
  border: 1px solid var(--br);
  border-radius: 10px;
  box-shadow: var(--sh);
  min-width: 140px;
  z-index: 100;
  overflow: hidden;
}
.ctoggle-dropdown.open .ctoggle-menu {
  display: block;
}
.ctoggle-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--txs);
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
}
.ctoggle-item:hover {
  background: var(--pll);
  color: var(--p);
}
.ctoggle-item.on {
  background: var(--pll);
  color: var(--p);
  font-weight: 600;
}

/* Close button inside sidebar for mobile */
.sidebar-close {
  display: none;
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 8px;
  line-height: 1;
  z-index: 21;
}

.sidebar-open-body {
  overflow: hidden; /* Prevent scrolling when sidebar is open on mobile */
}

/* Toggle switch for Settings */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #cbd5e1;
  border-radius: 26px;
  transition: 0.3s;
}
.toggle-slider:before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}
.toggle-switch input:checked + .toggle-slider {
  background: var(--p);
}
.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(22px);
}

/* Center and expand Add Property form */
.add-property-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  #main-area {
    padding: 20px 16px;
  }
  #sidebar-overlay.show {
    display: block;
    opacity: 1;
  }
  .topbar-title {
    display: none; /* Hide title on small screens to save space */
  }
  .ctoggle {
    margin-left: 0;
  }
}

/* Deed Gate / Verification Required Styles */
.deed-gate {
  text-align: center;
  padding: 40px 20px;
  background: var(--off);
  border: 1px solid var(--br);
  border-radius: var(--rs);
  margin-top: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.deed-gate-icon {
  font-size: 64px;
  margin-bottom: 20px;
}
.deed-gate-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--tx);
}
.deed-gate-sub {
  font-size: 15px;
  color: var(--gr);
  line-height: 1.6;
  max-width: 400px;
  margin: 0 auto 20px;
}

/* KYC stepper uses the shared .auth-stepper styling but should fill the card.
   overflow-x:auto lets it scroll internally on very narrow screens instead of
   pushing the whole page wide (horizontal squeeze). */
.kyc-stepper {
  max-width: 100%;
  margin: 0 auto 28px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}


/* Toast Notification Container (bottom-right floating) */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.custom-toast {
  pointer-events: auto;
  min-width: 300px;
  max-width: 450px;
  background: #ffffff;
  border-left: 5px solid #eab308;
  border-radius: 8px;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -4px rgba(0, 0, 0, 0.1);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(120%);
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.3s ease;
  opacity: 0;
}

.custom-toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-icon {
  font-size: 20px;
  display: flex;
  align-items: center;
}

.toast-message {
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
}

/* Image upload dropzone */
.image-uploader-wrapper {
  margin-bottom: 20px;
}

.upload-dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s;
  background: var(--off);
}

.upload-dropzone:hover,
.upload-dropzone.drag-over {
  border-color: var(--p);
  background: var(--pll);
}

.upload-dropzone p {
  margin: 0;
  font-size: 14px;
  color: var(--gr);
}

.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.preview-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--br);
}

.preview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-card .remove-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}

/* Block & Unit cards */
.block-card {
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  background-color: #f8fafc;
}

.block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.block-header h4 {
  margin: 0;
  color: #1a3224;
  font-size: 15px;
}

.btn-remove-block,
.btn-remove-unit {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s;
}

.btn-remove-block {
  color: #ef4444;
}
.btn-remove-block:hover {
  background: #fef2f2;
}
.btn-remove-unit {
  color: #ef4444;
}
.btn-remove-unit:hover {
  background: #fef2f2;
}

.btn-add-unit {
  background: #e2e8f0;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  color: var(--tx);
  transition: background 0.15s;
}

.btn-add-unit:hover {
  background: #cbd5e1;
}

.btn-add-block {
  background: var(--pll);
  border: 1.5px solid var(--p);
  color: var(--p);
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s;
}

.btn-add-block:hover {
  background: var(--p);
  color: #fff;
}

.block-empty-warning {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 6px;
  font-size: 12px;
  color: #92400e;
  margin-bottom: 10px;
}
.block-empty-warning.hidden {
  display: none;
}

.unit-row {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.unit-config-header {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Floor management */
.floor-section {
  margin-top: 8px;
  margin-left: 16px;
  padding-left: 12px;
  border-left: 2.5px solid #10b981;
}

.floor-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.floor-section-label {
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.btn-add-floor {
  background: none;
  border: 1px dashed #10b981;
  color: #10b981;
  padding: 3px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  transition: all 0.15s;
}

.btn-add-floor:hover {
  background: #10b981;
  color: #fff;
  border-style: solid;
}

.floor-row {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 4px;
}

.floor-row input {
  font-size: 12px !important;
  padding: 5px 8px !important;
}

.btn-remove-floor {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1;
}

.btn-remove-floor:hover {
  background: #fef2f2;
}

/* Mobile */
@media (max-width: 480px) {

  /* Shrink the KYC stepper on small phones so 4 steps (landlord) fit without scrolling */
  .kyc-stepper .step-dot {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  .kyc-stepper .step-label {
    font-size: 12px;
  }
  .kyc-stepper .step-line {
    min-width: 8px;
    margin: 0 4px;
    margin-bottom: 22px;
  }
  .auth-card {
    padding: 32px 22px;
  }
}

/* Extra-small phones */
@media (max-width: 360px) {
  .kyc-stepper .step-label {
    font-size: 10px;
  }
  .otp-choice-btn {
    flex-basis: 100%;
  } /* force Email / Phone onto separate rows */
}

/* County combobox */
.combobox-wrapper {
  position: relative;
}
.combobox-input {
  position: relative;
  cursor: pointer;
}
.combobox-input input {
  cursor: pointer;
}
.combobox-option:hover,
.geocoder-result:hover {
  background: var(--pll) !important;
}
.combobox-chevron {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 10px;
  color: var(--gr);
}

/* ==========================================================================
   Cookie Consent Banner
   ========================================================================== */

#cookie-banner-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 480px;
  margin: 0 auto;
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

#cookie-banner-container.show {
  opacity: 1;
  transform: translateY(0);
}

#cookie-banner-container .cookie-banner-inner {
  pointer-events: auto;
  background: var(--off);
  border: 1px solid var(--br);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--sh);
  background-image: linear-gradient(180deg, rgba(26, 95, 92, 0.02) 0%, transparent 100%);
}

#cookie-banner-container h4 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--tx);
}

#cookie-banner-container p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--txs);
}

#cookie-banner-container .policy-link {
  color: var(--p);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}

#cookie-banner-container .policy-link:hover {
  color: var(--pl);
  text-decoration: underline;
}

#cookie-banner-container .cookie-buttons-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

#cookie-banner-container .btn-cookie-primary {
  background: var(--p);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

#cookie-banner-container .btn-cookie-primary:hover {
  background: var(--pl);
  transform: translateY(-1px);
}

#cookie-banner-container .btn-cookie-secondary {
  background: var(--off);
  color: var(--txs);
  border: 1.5px solid var(--br);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

#cookie-banner-container .btn-cookie-secondary:hover {
  border-color: var(--p);
  color: var(--p);
  background: var(--pll);
}

#cookie-banner-container .btn-cookie-link {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 16px;
  padding: 10px;
  background: none;
  border: none;
  color: var(--p);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.15s;
}

#cookie-banner-container .btn-cookie-link:hover {
  color: var(--pl);
}

/* Preferences Modal Styles */
#cookie-banner-container .cookie-banner-inner.preferences-mode {
  max-height: 70vh;
  overflow-y: auto;
}

#cookie-banner-container .cookie-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--gr);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.15s;
}

#cookie-banner-container .cookie-close-btn:hover {
  color: var(--tx);
}

#cookie-banner-container .preference-toggles {
  margin: 16px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#cookie-banner-container .toggle-item {
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--br);
  border-radius: 12px;
  transition: all 0.15s;
}

#cookie-banner-container .toggle-item.essential {
  opacity: 0.6;
  border-color: var(--br);
  background: var(--bg);
}

#cookie-banner-container .toggle-item:hover:not(.essential) {
  border-color: var(--p);
  box-shadow: 0 0 0 3px var(--pll);
}

#cookie-banner-container .toggle-item label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: var(--tx);
}

#cookie-banner-container .toggle-item.essential label {
  cursor: not-allowed;
  color: var(--gr);
}

#cookie-banner-container .toggle-item input[type='checkbox'] {
  width: 20px;
  height: 20px;
  accent-color: var(--p);
  flex-shrink: 0;
}

#cookie-banner-container .toggle-desc {
  margin: 8px 0 0 32px;
  font-size: 12px;
  color: var(--gr);
  line-height: 1.4;
}

#cookie-banner-container .cookie-buttons-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 8px;
}

/* Floating Revoke Icon */
#cookie-revoke-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--off);
  border: 1px solid var(--br);
  box-shadow: var(--sh);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  transition: all 0.3s ease;
  color: var(--txs);
}

#cookie-revoke-btn.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

#cookie-revoke-btn:hover {
  border-color: var(--p);
  color: var(--p);
  transform: scale(1.05);
}

#cookie-revoke-btn svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 480px) {
  #cookie-banner-container {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  #cookie-banner-container .cookie-banner-inner {
    padding: 20px 16px;
  }

  #cookie-banner-container .cookie-buttons-group {
    flex-direction: column;
  }

  #cookie-banner-container .btn-cookie-primary,
  #cookie-banner-container .btn-cookie-secondary {
    width: 100%;
    justify-content: center;
  }

  #cookie-revoke-btn {
    width: 44px;
    height: 44px;
    bottom: 16px;
    right: 16px;
  }
}

#property-map,
#edit-property-map,
#listing-map {
  z-index: 1;
}

/* ===========================================================
   Admin Action Buttons â€” color-coded approve/reject/docs
   =========================================================== */
.admin-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.admin-action-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.admin-action-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Docs / Details â€” gray */
.admin-action-btn.action-docs {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}
.admin-action-btn.action-docs:hover {
  background: #e2e8f0;
}

/* Approve / Verify â€” green */
.admin-action-btn.action-approve {
  background: #059669;
  color: #fff;
}
.admin-action-btn.action-approve:hover {
  background: #047857;
}

/* Reject / Decline â€” red */
.admin-action-btn.action-reject {
  background: #dc2626;
  color: #fff;
}
.admin-action-btn.action-reject:hover {
  background: #b91c1c;
}

/* Unlock â€” amber */
.admin-action-btn.action-unlock {
  background: #d97706;
  color: #fff;
}
.admin-action-btn.action-unlock:hover {
  background: #b45309;
}

/* Staff â€” indigo */
.admin-action-btn.action-staff {
  background: #6366f1;
  color: #fff;
}
.admin-action-btn.action-staff:hover {
  background: #4f46e5;
}

/* Reset PW â€” slate */
.admin-action-btn.action-reset {
  background: #64748b;
  color: #fff;
}
.admin-action-btn.action-reset:hover {
  background: #475569;
}

/* ============ Notifications UI ============ */
.notif-wrap {
  position: relative;
  display: inline-block;
}
.notif-bell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--br);
  background: var(--off);
  color: var(--txs);
  cursor: pointer;
  transition: all 0.2s;
}
.notif-bell:hover {
  border-color: var(--p);
  background: var(--pll);
  color: var(--p);
}
.notif-badge {
  position: absolute;
  top: -5px;
  right: -6px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--da);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 0 0 2px var(--off);
}
.notif-panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 360px;
  max-width: calc(100vw - 32px);
  background: var(--off);
  border: 1px solid var(--br);
  border-radius: 12px;
  box-shadow: var(--sh);
  z-index: 1200;
  overflow: hidden;
}
.notif-panel.open {
  display: block;
}
.notif-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--br);
  background: var(--pll);
}
.notif-panel-markall {
  background: none;
  border: none;
  color: var(--p);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.notif-panel-list {
  max-height: 360px;
  overflow-y: auto;
}
.notif-panel-empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--grs);
  font-size: 13px;
}
.notif-panel-foot {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--br);
}
.notif-panel-foot .btn {
  flex: 1;
  justify-content: center;
}
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--br);
  transition: background 0.15s;
}
.notif-item:last-child {
  border-bottom: none;
}
.notif-item:hover {
  background: var(--pll);
}
.notif-item.unread {
  background: rgba(99, 102, 241, 0.05);
}
.notif-item-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.notif-item-body {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  display: block;
}
.notif-item-title {
  font-weight: 700;
  font-size: 13px;
  color: var(--tx);
}
.notif-item-msg {
  font-size: 12.5px;
  color: var(--grs);
  margin-top: 2px;
  line-height: 1.4;
}
.notif-item-time {
  font-size: 12px;
  color: var(--grs);
  margin-top: 4px;
}
.notif-item-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}
.notif-item-mark,
.notif-item-dismiss {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: none;
  background: var(--pll);
  color: var(--grs);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.notif-item-mark:hover {
  background: var(--su);
  color: #fff;
}
.notif-item-dismiss:hover {
  background: var(--da);
  color: #fff;
}
.notif-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}
.notif-list .notif-item {
  border: 1px solid var(--br);
  border-radius: 10px;
}
.notif-screen-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.nav-badge {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--da);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Notch / home-bar safe area for standalone & fullscreen apps */
body {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
}
@supports (padding: max(0px)) {
  body {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
    padding-bottom: max(0px, env(safe-area-inset-bottom));
  }
}
