/* ============================================================
   RoomRental — Design System
   Font: Be Vietnam Pro (Google Fonts)
   Palette: Sky Blue (#0EA5E9 core)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Sky Blue palette */
  --lb-50:  #f0f9ff;
  --lb-100: #e0f2fe;
  --lb-200: #bae6fd;
  --lb-300: #7dd3fc;
  --lb-400: #38bdf8;
  --lb-500: #0ea5e9;
  --lb-600: #0284c7;
  --lb-700: #0369a1;
  --lb-800: #075985;
  --lb-900: #0c4a6e;

  /* Neutrals */
  --gray-50:  #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* Semantic */
  --success: #22c55e;
  --warning: #f59e0b;
  --danger:  #ef4444;
  --info:    var(--lb-500);

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(14,165,233,.08), 0 1px 2px rgba(14,165,233,.04);
  --shadow-md:  0 4px 16px rgba(14,165,233,.12), 0 2px 8px rgba(0,0,0,.06);
  --shadow-lg:  0 8px 32px rgba(14,165,233,.16), 0 4px 16px rgba(0,0,0,.08);
  --shadow-xl:  0 20px 60px rgba(14,165,233,.2), 0 8px 24px rgba(0,0,0,.1);

  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 999px;

  --transition: 0.22s cubic-bezier(0.4,0,0.2,1);
  --font: 'Be Vietnam Pro', sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--lb-300); border-radius: 3px; }

/* ── Typography ── */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.3; color: var(--gray-900); }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
p  { color: var(--gray-600); }
a  { color: var(--lb-600); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--lb-700); }

/* ── Layout ── */
.container { max-width: 1240px; margin: 0 auto; padding: 0 1.25rem; }
.section    { padding: 4rem 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.35rem;
  font-family: var(--font); font-size: 0.9rem; font-weight: 600;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  cursor: pointer; transition: all var(--transition);
  white-space: nowrap; user-select: none;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary {
  background: var(--lb-500); color: #fff; border-color: var(--lb-500);
  box-shadow: 0 2px 8px rgba(14,165,233,.3);
}
.btn-primary:hover { background: var(--lb-600); border-color: var(--lb-600); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(14,165,233,.35); }
.btn-ghost {
  background: transparent; color: var(--gray-700); border-color: var(--gray-200);
}
.btn-ghost:hover { background: var(--gray-100); border-color: var(--gray-300); }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: #dc2626; }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.82rem; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-loading { pointer-events: none; }
.btn-loading::after {
  content: ''; width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff;
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Cards ── */
.card {
  background: #fff; border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200); box-shadow: var(--shadow-sm);
  overflow: hidden; transition: all var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); }
.card-body { padding: 1.5rem; }
.card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-100);
  display: flex; align-items: center; justify-content: space-between;
}
.card-title { font-size: 1rem; font-weight: 700; color: var(--gray-900); }

/* ── Badges ── */
.badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.25rem 0.7rem;
  font-size: 0.75rem; font-weight: 600;
  border-radius: var(--radius-full);
}
.badge-success { background: #dcfce7; color: #15803d; }
.badge-warning { background: #fef9c3; color: #a16207; }
.badge-danger  { background: #fee2e2; color: #b91c1c; }
.badge-info    { background: var(--lb-100); color: var(--lb-700); }
.badge-gray    { background: var(--gray-100); color: var(--gray-600); }

/* ── Forms ── */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--gray-700); margin-bottom: 0.4rem; }
.form-control {
  width: 100%; padding: 0.65rem 1rem;
  font-family: var(--font); font-size: 0.9rem; color: var(--gray-800);
  background: #fff; border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md); outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
  border-color: var(--lb-400);
  box-shadow: 0 0 0 3px rgba(14,165,233,.12);
}
.form-control::placeholder { color: var(--gray-400); }
.form-hint { font-size: 0.78rem; color: var(--gray-400); margin-top: 0.3rem; }
.form-error { font-size: 0.78rem; color: var(--danger); margin-top: 0.3rem; }

select.form-control { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; padding-right: 2.5rem; appearance: none; }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-check { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.form-check input[type=checkbox], .form-check input[type=radio] { width: 16px; height: 16px; accent-color: var(--lb-500); cursor: pointer; }

/* Input with icon */
.input-group { position: relative; }
.input-group .input-icon { position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%); color: var(--gray-400); pointer-events: none; }
.input-group .form-control { padding-left: 2.5rem; }

/* ── Navbar ── */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  height: 64px; background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid var(--gray-100);
  box-shadow: 0 1px 0 rgba(14,165,233,.08);
}
.navbar-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 1.25rem;
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.navbar-brand {
  display: flex; align-items: center; gap: 0.55rem;
  font-size: 1.25rem; font-weight: 800; color: var(--gray-900);
  text-decoration: none;
}
.navbar-brand .brand-icon {
  width: 36px; height: 36px; background: var(--lb-500);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem;
}
.navbar-brand span.accent { color: var(--lb-500); }
.navbar-links { display: flex; align-items: center; gap: 0.25rem; flex: 1; }
.navbar-links a {
  padding: 0.45rem 0.85rem; border-radius: var(--radius-md);
  font-size: 0.9rem; font-weight: 500; color: var(--gray-600);
  transition: all var(--transition);
}
.navbar-links a:hover, .navbar-links a.active { background: var(--lb-50); color: var(--lb-700); }
.navbar-actions { display: flex; align-items: center; gap: 0.6rem; }
.bell-btn {
  position: relative; z-index: 10;
  position: relative; width: 38px; height: 38px;
  background: var(--gray-100); border: none; border-radius: var(--radius-md);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--gray-600); font-size: 1rem; transition: all var(--transition);
}
.bell-btn:hover { background: var(--lb-100); color: var(--lb-700); }
.bell-badge {
  position: absolute; top: -4px; right: -4px;
  width: 18px; height: 18px; background: var(--danger);
  border-radius: 50%; border: 2px solid #fff;
  font-size: 0.65rem; font-weight: 700; color: #fff;
  display: flex; align-items: center; justify-content: center;
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--lb-900) 0%, var(--lb-700) 45%, var(--lb-500) 100%);
  position: relative; overflow: hidden;
  padding: 5rem 0 4rem;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,.06) 1px, transparent 0);
  background-size: 28px 28px;
}
.hero::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--gray-50));
}
.hero-content { position: relative; z-index: 1; text-align: center; color: #fff; }
.hero-content h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }
.hero-content p { color: rgba(255,255,255,.82); font-size: 1.1rem; margin-bottom: 2.5rem; }

.hero-search {
  background: rgba(255,255,255,.12); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  display: flex; gap: 0.75rem; flex-wrap: wrap;
  max-width: 700px; margin: 0 auto;
}
.hero-search .form-control {
  background: rgba(255,255,255,.9);
  border-color: rgba(255,255,255,.5);
  flex: 2; min-width: 200px;
}
.hero-search select.form-control { flex: 1; min-width: 140px; }

/* ── Stats Strip ── */
.stats-strip {
  background: var(--lb-50);
  border-top: 1px solid var(--lb-100);
  border-bottom: 1px solid var(--lb-100);
  padding: 1.75rem 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.stat-item .stat-num { font-size: 2rem; font-weight: 800; color: var(--lb-700); line-height: 1; }
.stat-item .stat-label { font-size: 0.82rem; color: var(--gray-500); margin-top: 0.25rem; }

/* ── Room Cards ── */
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.room-card {
  background: #fff; border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200); box-shadow: var(--shadow-sm);
  overflow: hidden; cursor: pointer; transition: all var(--transition);
  animation: fadeInUp 0.5s both;
}
.room-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--lb-200); }
.room-card-img {
  position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--gray-100);
}
.room-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.room-card:hover .room-card-img img { transform: scale(1.04); }
.room-card-badge { position: absolute; top: 0.75rem; left: 0.75rem; }
.room-card-body { padding: 1.1rem; }
.room-card-price { font-size: 1.2rem; font-weight: 800; color: var(--lb-700); }
.room-card-name { font-size: 0.9rem; font-weight: 600; color: var(--gray-800); margin: 0.25rem 0; }
.room-card-address { font-size: 0.78rem; color: var(--gray-400); display: flex; align-items: center; gap: 0.3rem; margin-bottom: 0.75rem; }
.room-card-specs { display: flex; gap: 0.75rem; font-size: 0.78rem; color: var(--gray-500); }
.room-card-spec { display: flex; align-items: center; gap: 0.3rem; }
.room-card-rating { display: flex; align-items: center; gap: 0.25rem; font-size: 0.78rem; color: var(--gray-500); }
.rating-star { color: #fbbf24; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.room-card:nth-child(1) { animation-delay: 0.05s; }
.room-card:nth-child(2) { animation-delay: 0.10s; }
.room-card:nth-child(3) { animation-delay: 0.15s; }
.room-card:nth-child(4) { animation-delay: 0.20s; }
.room-card:nth-child(5) { animation-delay: 0.25s; }
.room-card:nth-child(6) { animation-delay: 0.30s; }
.room-card:nth-child(7) { animation-delay: 0.35s; }
.room-card:nth-child(8) { animation-delay: 0.40s; }

/* ── How it works ── */
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.how-card { text-align: center; padding: 1.75rem 1rem; }
.how-icon {
  width: 64px; height: 64px; background: var(--lb-50);
  border: 2px solid var(--lb-100); border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem; font-size: 1.6rem; color: var(--lb-600);
}
.how-step { font-size: 0.75rem; font-weight: 700; color: var(--lb-500); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 0.4rem; }
.how-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.how-card p { font-size: 0.85rem; }

/* ── Section Header ── */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.75rem; }
.section-title { font-size: 1.35rem; font-weight: 800; color: var(--gray-900); }
.section-link { font-size: 0.875rem; font-weight: 600; color: var(--lb-600); display: flex; align-items: center; gap: 0.25rem; }
.section-link:hover { color: var(--lb-700); }

/* ── Dashboard Layout ── */
.dashboard-layout { display: flex; min-height: calc(100vh - 64px); }
.sidebar {
  width: 240px; flex-shrink: 0;
  background: #fff; border-right: 1px solid var(--gray-200);
  position: sticky; top: 64px; height: calc(100vh - 64px);
  overflow-y: auto; padding: 1.5rem 1rem;
  display: flex; flex-direction: column; gap: 0.25rem;
}
.sidebar-section-label {
  font-size: 0.68rem; font-weight: 700; color: var(--gray-400);
  text-transform: uppercase; letter-spacing: .1em;
  padding: 0.75rem 0.75rem 0.35rem;
}
.sidebar-link {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.6rem 0.75rem; border-radius: var(--radius-md);
  font-size: 0.875rem; font-weight: 500; color: var(--gray-600);
  transition: all var(--transition); text-decoration: none;
}
.sidebar-link:hover { background: var(--lb-50); color: var(--lb-700); }
.sidebar-link.active { background: var(--lb-50); color: var(--lb-700); font-weight: 700; }
.sidebar-link .sidebar-icon { font-size: 1rem; width: 20px; text-align: center; }

.dashboard-main { flex: 1; padding: 2rem; overflow: auto; }
.dashboard-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
.dashboard-greeting { font-size: 1.5rem; font-weight: 800; }
.dashboard-date { font-size: 0.85rem; color: var(--gray-500); margin-top: 0.25rem; }

/* KPI Grid */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-bottom: 1.75rem; }
.kpi-card {
  background: #fff; border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200); padding: 1.5rem;
  border-left: 4px solid; transition: all var(--transition);
}
.kpi-card:hover { box-shadow: var(--shadow-md); }
.kpi-card.blue   { border-left-color: var(--lb-500); }
.kpi-card.green  { border-left-color: var(--success); }
.kpi-card.yellow { border-left-color: var(--warning); }
.kpi-card.red    { border-left-color: var(--danger); }
.kpi-label { font-size: 0.78rem; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: .06em; }
.kpi-value { font-size: 1.75rem; font-weight: 800; color: var(--gray-900); margin: 0.35rem 0; line-height: 1; }
.kpi-sub   { font-size: 0.78rem; color: var(--gray-500); }
.kpi-trend { display: inline-flex; align-items: center; gap: 0.2rem; font-size: 0.78rem; font-weight: 600; }
.kpi-trend.up   { color: var(--success); }
.kpi-trend.down { color: var(--danger); }

/* Charts row */
.charts-row { display: grid; grid-template-columns: 2fr 1fr; gap: 1.25rem; margin-bottom: 1.75rem; }
.chart-card { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--gray-200); padding: 1.5rem; }

/* Tables */
.tables-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

/* ── Table ── */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th {
  padding: 0.75rem 1rem; text-align: left;
  font-size: 0.75rem; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: .06em;
  border-bottom: 2px solid var(--gray-100); background: var(--gray-50);
}
tbody td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--gray-100); font-size: 0.875rem; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--lb-50); }

/* ── Filter Tabs ── */
.filter-tabs { display: flex; gap: 0.35rem; margin-bottom: 1.5rem; }
.filter-tab {
  padding: 0.45rem 1.1rem; border-radius: var(--radius-full);
  font-size: 0.85rem; font-weight: 600;
  border: 1.5px solid var(--gray-200); background: #fff; color: var(--gray-600);
  cursor: pointer; transition: all var(--transition);
}
.filter-tab:hover { border-color: var(--lb-300); color: var(--lb-700); background: var(--lb-50); }
.filter-tab.active { background: var(--lb-500); color: #fff; border-color: var(--lb-500); }

/* ── Search Bar ── */
.search-bar { display: flex; gap: 0.75rem; flex-wrap: wrap; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--gray-200); padding: 1.25rem; margin-bottom: 1.25rem; box-shadow: var(--shadow-sm); }
.search-bar .form-control { border-color: var(--gray-200); }

/* Filter chips */
.filter-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.chip {
  padding: 0.35rem 0.9rem; border-radius: var(--radius-full);
  font-size: 0.8rem; font-weight: 600;
  border: 1.5px solid var(--gray-200); background: #fff; color: var(--gray-600);
  cursor: pointer; transition: all var(--transition);
}
.chip:hover, .chip.active { background: var(--lb-50); border-color: var(--lb-400); color: var(--lb-700); }

/* ── Pagination ── */
.pagination { display: flex; gap: 0.35rem; align-items: center; justify-content: center; padding-top: 2rem; }
.page-btn {
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md); border: 1.5px solid var(--gray-200);
  background: #fff; color: var(--gray-600); font-size: 0.875rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition);
}
.page-btn:hover { border-color: var(--lb-300); color: var(--lb-700); }
.page-btn.active { background: var(--lb-500); color: #fff; border-color: var(--lb-500); }
.page-btn.disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Room Detail ── */
.detail-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 1.75rem; align-items: start; }
.sticky-sidebar { position: sticky; top: 80px; }

.gallery-main { aspect-ratio: 16/9; border-radius: var(--radius-lg); overflow: hidden; background: var(--gray-100); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 0.5rem; margin-top: 0.75rem; overflow-x: auto; }
.gallery-thumb {
  width: 72px; height: 54px; flex-shrink: 0;
  border-radius: var(--radius-sm); overflow: hidden; cursor: pointer;
  border: 2px solid transparent; transition: border-color var(--transition);
}
.gallery-thumb.active { border-color: var(--lb-500); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.amenity-tag {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.35rem 0.85rem; border-radius: var(--radius-full);
  background: var(--lb-50); border: 1px solid var(--lb-200);
  font-size: 0.8rem; font-weight: 500; color: var(--lb-700);
}
.amenities-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* Star rating */
.star-input { display: flex; gap: 0.25rem; }
.star-input .star {
  font-size: 1.5rem; cursor: pointer; color: var(--gray-300); transition: color var(--transition);
}
.star-input .star:hover, .star-input .star.active { color: #fbbf24; }

/* Review item */
.review-item { padding: 1rem 0; border-bottom: 1px solid var(--gray-100); }
.review-item:last-child { border-bottom: none; }
.review-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--lb-100); color: var(--lb-700);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; flex-shrink: 0;
}
.review-meta { display: flex; align-items: flex-start; gap: 0.75rem; }
.review-stars { color: #fbbf24; font-size: 0.85rem; }
.review-name { font-size: 0.875rem; font-weight: 600; }
.review-date { font-size: 0.75rem; color: var(--gray-400); }
.review-comment { font-size: 0.875rem; color: var(--gray-600); margin-top: 0.5rem; padding-left: 2.75rem; }

/* Nearby mini card */
.nearby-card {
  display: flex; gap: 0.75rem; padding: 0.75rem;
  border-radius: var(--radius-md); border: 1px solid var(--gray-100);
  cursor: pointer; transition: all var(--transition);
  text-decoration: none; color: inherit;
}
.nearby-card:hover { background: var(--lb-50); border-color: var(--lb-200); }
.nearby-img { width: 60px; height: 48px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; }
.nearby-img img { width: 100%; height: 100%; object-fit: cover; }
.nearby-info .nearby-name { font-size: 0.8rem; font-weight: 600; color: var(--gray-800); }
.nearby-info .nearby-price { font-size: 0.8rem; font-weight: 700; color: var(--lb-700); }
.nearby-info .nearby-dist { font-size: 0.72rem; color: var(--gray-400); }

/* ── Auth Pages ── */
.auth-page {
  min-height: 100vh; background: linear-gradient(135deg, var(--lb-900) 0%, var(--lb-700) 40%, var(--lb-400) 100%);
  display: flex; align-items: center; justify-content: center; padding: 2rem;
}
.auth-card {
  background: #fff; border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl); padding: 2.5rem;
  width: 100%; max-width: 440px;
}
.auth-logo { text-align: center; margin-bottom: 1.75rem; }
.auth-title { font-size: 1.5rem; font-weight: 800; text-align: center; margin-bottom: 0.35rem; }
.auth-subtitle { font-size: 0.875rem; color: var(--gray-500); text-align: center; margin-bottom: 2rem; }

/* Role selector */
.role-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 1.25rem; }
.role-option {
  padding: 1rem; border: 2px solid var(--gray-200); border-radius: var(--radius-lg);
  cursor: pointer; transition: all var(--transition); text-align: center;
}
.role-option:hover { border-color: var(--lb-300); background: var(--lb-50); }
.role-option.selected { border-color: var(--lb-400); background: var(--lb-50); }
.role-option .role-icon { font-size: 1.75rem; margin-bottom: 0.5rem; }
.role-option .role-name { font-size: 0.875rem; font-weight: 700; color: var(--gray-800); }
.role-option .role-desc { font-size: 0.75rem; color: var(--gray-500); }

/* ── Flash Message ── */
.flash {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.9rem 1.25rem; border-radius: var(--radius-md);
  font-size: 0.875rem; font-weight: 500;
  margin-bottom: 1.25rem;
  animation: slideDown 0.3s ease;
}
.flash-success { background: #dcfce7; border: 1px solid #86efac; color: #166534; }
.flash-error   { background: #fee2e2; border: 1px solid #fca5a5; color: #991b1b; }
.flash-info    { background: var(--lb-100); border: 1px solid var(--lb-300); color: var(--lb-800); }
.flash-close   { margin-left: auto; cursor: pointer; opacity: 0.6; font-size: 1.1rem; }
.flash-close:hover { opacity: 1; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* ── Empty State ── */
.empty-state { text-align: center; padding: 4rem 2rem; }
.empty-icon { font-size: 3.5rem; margin-bottom: 1rem; opacity: 0.4; }
.empty-title { font-size: 1.1rem; font-weight: 700; color: var(--gray-700); margin-bottom: 0.5rem; }
.empty-desc  { font-size: 0.875rem; color: var(--gray-500); margin-bottom: 1.5rem; }

/* ── Breadcrumb ── */
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--gray-500); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--lb-600); }
.breadcrumb-sep { color: var(--gray-300); }

/* ── Divider ── */
.divider { height: 1px; background: var(--gray-200); margin: 1.5rem 0; }
.divider-text { display: flex; align-items: center; gap: 1rem; color: var(--gray-400); font-size: 0.82rem; margin: 1.5rem 0; }
.divider-text::before, .divider-text::after { content: ''; flex: 1; height: 1px; background: var(--gray-200); }

/* ── Amenity checkbox grid ── */
.amenity-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.6rem; }
.amenity-check {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 0.85rem; border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md); cursor: pointer;
  font-size: 0.85rem; font-weight: 500; color: var(--gray-600);
  transition: all var(--transition); user-select: none;
}
.amenity-check:hover { border-color: var(--lb-300); color: var(--lb-700); }
.amenity-check.selected { background: var(--lb-50); border-color: var(--lb-400); color: var(--lb-700); }
.amenity-check input { display: none; }

/* ── Notification dropdown ── */
.notif-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: 340px; background: #fff;
  border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,.15); z-index: 9999;
  overflow: hidden; display: none;
  pointer-events: auto;
}
.notif-dropdown.open { display: block; animation: fadeIn .2s ease; }
.notif-header { padding: 1rem 1.25rem; border-bottom: 1px solid var(--gray-100); font-weight: 700; }
.notif-item { padding: 0.85rem 1.25rem; border-bottom: 1px solid var(--gray-50); transition: background var(--transition); cursor: pointer; }
.notif-item:hover { background: var(--lb-50); }
.notif-item.unread { background: var(--lb-50); }
.notif-item.unread::before { content: ''; display: inline-block; width: 6px; height: 6px; background: var(--lb-500); border-radius: 50%; margin-right: 0.5rem; vertical-align: middle; }
.notif-text { font-size: 0.85rem; color: var(--gray-700); }
.notif-time { font-size: 0.72rem; color: var(--gray-400); margin-top: 0.2rem; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── Contract / Bill status ── */
.contract-status { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.75rem; border-radius: var(--radius-full); font-size: 0.8rem; font-weight: 600; }
.status-active     { background: #dcfce7; color: #166534; }
.status-expired    { background: var(--gray-100); color: var(--gray-600); }
.status-terminated { background: #fee2e2; color: #991b1b; }
.status-paid   { background: #dcfce7; color: #166534; }
.status-unpaid { background: #fef9c3; color: #a16207; }
.status-overdue{ background: #fee2e2; color: #991b1b; }

/* Urgency badges */
.urgency-red    { background: #fee2e2; color: #991b1b; }
.urgency-yellow { background: #fef9c3; color: #a16207; }
.urgency-gray   { background: var(--gray-100); color: var(--gray-600); }

/* ── Footer ── */
.footer {
  background: var(--gray-900); color: var(--gray-400);
  padding: 3rem 0 1.5rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2rem; }
.footer-brand { color: #fff; font-size: 1.1rem; font-weight: 800; margin-bottom: 0.75rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { font-size: 0.875rem; color: var(--gray-400); transition: color var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-label { font-size: 0.75rem; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 0.75rem; }
.footer-bottom { border-top: 1px solid var(--gray-800); padding-top: 1.5rem; text-align: center; font-size: 0.8rem; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .charts-row { grid-template-columns: 1fr; }
  .tables-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-layout { grid-template-columns: 1fr; }
  .sticky-sidebar { position: static; }
  .sidebar { display: none; }
  .dashboard-layout { flex-direction: column; }
  .navbar-links { display: none; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .role-selector { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .how-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .kpi-grid { grid-template-columns: 1fr; }
}

/* ── Utility ── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.text-sm  { font-size: 0.875rem; }
.text-xs  { font-size: 0.75rem; }
.text-muted { color: var(--gray-500); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.text-blue    { color: var(--lb-600); }
.font-bold    { font-weight: 700; }
.text-right   { text-align: right; }
.hidden  { display: none !important; }
.visible { display: block !important; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
