/* =========================================================
 * YT HOME – CSS DÙNG CHUNG
 * - Áp dụng cho: index.html, room.html, tenant.html
 * - Một số phần được scope theo body (vd: body.tenant-body)
 * =======================================================*/

/* ==== RESET & NỀN CHUNG ==== */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #22c55e;
  --bg: #0b1120;
  --text: #0f172a;
  --muted: #6b7280;
  --card-bg: #ffffff;
  --border: #e5e7eb;
  --radius: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.2), transparent 50%),
    radial-gradient(circle at top right, rgba(129, 140, 248, 0.2), transparent 55%),
    radial-gradient(circle at bottom, rgba(45, 212, 191, 0.25), transparent 55%),
    var(--bg);
  color: #e5e7eb;
  line-height: 1.6;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ==== CONTAINER CHUNG ==== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ==== LOGO CHUNG ==== */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: conic-gradient(from 120deg, #38bdf8, #22c55e, #6366f1, #38bdf8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b1120;
  font-size: 0.9rem;
  font-weight: 800;
}

.logo-sub {
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(148, 163, 184, 0.9);
}

/* ==== BUTTON CHUNG ==== */
.btn {
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  background: radial-gradient(circle at top left, #38bdf8, #2563eb);
  color: #f9fafb;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.5);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, background 0.16s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.8);
  filter: brightness(1.05);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.7);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.8);
  box-shadow: none;
  color: #e5e7eb;
}

/* ==== SECTION / CARD CHUNG ==== */
.section-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 10px 0 6px;
}

.card {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 1));
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.95);
  padding: 12px;
  font-size: 0.9rem;
  color: #e5e7eb;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.95);
  border-color: rgba(56, 189, 248, 0.9);
}

/* ==== RATING CHUNG ==== */
.rating {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 4px;
  font-size: 0.9rem;
}

.rating .star {
  cursor: pointer;
  color: #fbbf24;
  opacity: 0.35;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.rating .star.active {
  opacity: 1;
}

.rating .star:hover {
  transform: translateY(-1px) scale(1.05);
  opacity: 1;
}

/* ==== FORM CHUNG ==== */
.form-group {
  margin-bottom: 8px;
  font-size: 0.85rem;
}

.form-group label {
  display: block;
  margin-bottom: 2px;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: rgba(15, 23, 42, 0.96);
  color: #e5e7eb;
  font-size: 0.85rem;
  outline: none;
}

.form-control:focus {
  border-color: #38bdf8;
}

textarea.form-control {
  min-height: 80px;
  resize: vertical;
}

/* ==== QUICK LINKS CHUNG ==== */
.quick-links {
  margin-top: 8px;
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.96);
}

.quick-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

/* =========================================================
 * TRANG INDEX (DANH SÁCH PHÒNG) – index.html
 * =======================================================*/

/* Header sticky, navbar */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.9),
    rgba(15, 23, 42, 0.7),
    transparent
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 0.9rem;
}

.nav-links a {
  color: rgba(209, 213, 219, 0.9);
  font-weight: 500;
  padding: 4px 0;
  position: relative;
  transition: color 0.12s ease, transform 0.12s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8, #22c55e);
  transition: width 0.18s ease;
}

.nav-links a:hover {
  color: #f9fafb;
  transform: translateY(-1px);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Hero section index */
.hero {
  padding: 32px 0 26px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
  transition: 0.25s ease;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.3);
  display: inline-block;
  margin-right: 6px;
}

.hero-title {
  font-size: clamp(2rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 10px;
  color: #f9fafb;
}

.hero-highlight {
  background: linear-gradient(120deg, #38bdf8, #4f46e5, #22c55e);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 0.98rem;
  color: rgba(148, 163, 184, 0.95);
  max-width: 480px;
  margin-bottom: 16px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-note {
  font-size: 0.82rem;
  color: rgba(148, 163, 184, 0.9);
}

.hero-note strong {
  color: #e5e7eb;
}

/* Hero stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.stat-card {
  border-radius: 14px;
  padding: 10px 12px;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.94));
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
}

.stat-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: #e5e7eb;
}

.stat-label {
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.9);
}

/* Hero card */
.hero-card {
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.2), rgba(15, 23, 42, 0.98));
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: var(--shadow-md);
  padding: 16px;
  color: #e5e7eb;
  transform: translateZ(0);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.hero-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.9);
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.hero-card-title {
  font-size: 0.9rem;
  font-weight: 600;
}

.hero-pill {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.12);
  color: #4ade80;
  font-weight: 600;
  border: 1px solid rgba(74, 222, 128, 0.4);
}

/* Hero chart nhỏ */
.hero-chart {
  font-size: 0.78rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.hero-chart-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hero-chart-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.hero-chart-label {
  color: rgba(148, 163, 184, 0.96);
}

.hero-chart-value {
  color: #e5e7eb;
  font-weight: 500;
}

.hero-chart-bar-bg {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(51, 65, 85, 0.9);
  overflow: hidden;
}

.hero-chart-bar-fill {
  height: 100%;
  border-radius: 999px;
  width: 0;
  transition: width 0.4s ease-out;
}

.hero-chart-bar-available {
  background: linear-gradient(90deg, #22c55e, #4ade80);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.7);
}

.hero-chart-bar-liked {
  background: linear-gradient(90deg, #fb923c, #f97316);
  box-shadow: 0 0 12px rgba(251, 146, 60, 0.7);
}

.hero-chart-bar-highrated {
  background: linear-gradient(90deg, #facc15, #eab308);
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.7);
}

.hero-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  margin-top: 6px;
}

.hero-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.hero-badge {
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px dashed rgba(148, 163, 184, 0.8);
  background: rgba(15, 23, 42, 0.9);
}

/* Section, filter, grid phòng */
section {
  padding: 28px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  gap: 10px;
}

.section-subtitle {
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 0.95);
  max-width: 420px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.filter-advanced {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  margin-top: 4px;
}

.filter-select {
  min-width: 130px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.95);
  color: rgba(229, 231, 235, 0.96);
  font-size: 0.8rem;
  outline: none;
}

.filter-select:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.4);
}

.filter-pill {
  font-size: 0.8rem;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.9);
  color: rgba(209, 213, 219, 0.9);
  cursor: pointer;
  transition: all 0.16s ease;
}

.filter-pill:hover {
  border-color: #38bdf8;
  color: #e5e7eb;
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.28), rgba(15, 23, 42, 0.98));
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.9);
  transform: translateY(-1px);
}

.filter-pill.active {
  border-color: #38bdf8;
  color: #e0f2fe;
  background: linear-gradient(120deg, rgba(56, 189, 248, 0.26), rgba(15, 23, 42, 0.96));
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.9);
}

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}

.room-card {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.98));
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.9);
  padding: 8px 9px;
  font-size: 0.78rem;
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: #e5e7eb;
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.room-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.12), transparent 65%);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.room-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.95);
  border-color: rgba(56, 189, 248, 0.9);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 1));
}

.room-card:hover::before {
  opacity: 1;
  transform: translateY(0);
}

.room-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
}

.room-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  gap: 4px;
}

.room-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.room-footer-buttons {
  display: flex;
  gap: 4px;
  justify-content: center;
}

.rating-text {
  font-size: 0.7rem;
  color: rgba(148, 163, 184, 0.95);
  margin-left: 4px;
}

/* Icon & button nhỏ trong card phòng */
.icon-btn {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  color: rgba(229, 231, 235, 0.95);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.9);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease,
    background 0.16s ease, filter 0.16s ease;
}

.icon-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.95);
  border-color: rgba(56, 189, 248, 0.9);
  filter: brightness(1.05);
}

.icon-btn:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.9);
}

.icon-btn.like-btn-liked {
  background: #fb923c;
  border-color: #fed7aa;
  color: #0b1120;
}

.like-count {
  font-size: 0.7rem;
  min-width: 18px;
  text-align: right;
}

/* Nút trong card phòng */
.room-btn {
  font-size: 0.74rem;
  padding: 4px 9px;
  border-radius: 999px;
  border: none;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.22), rgba(37, 99, 235, 0.96));
  color: #e5e7eb;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.7);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.room-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.9);
  filter: brightness(1.05);
}

.room-btn:active {
  transform: translateY(0);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.9);
}

.room-btn-secondary {
  font-size: 0.74rem;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.98);
  color: #e5e7eb;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.8);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease,
    border-color 0.16s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.room-btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.95);
  filter: brightness(1.05);
  border-color: rgba(56, 189, 248, 0.9);
}

.room-btn-secondary:disabled,
.room-btn-secondary.room-btn-secondary-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  border-color: rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.7);
}

.room-btn-secondary.room-btn-secondary-disabled:hover {
  transform: none;
  box-shadow: none;
  filter: none;
  border-color: rgba(148, 163, 184, 0.5);
}

.room-status-chip {
  font-size: 0.68rem;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.9);
  background: rgba(15, 23, 42, 0.95);
  white-space: nowrap;
}

.room-status-chip.status-available {
  background: #22c55e;
  color: #022c22;
  border-color: #22c55e;
}

.room-status-chip.status-rented {
  background: #4b5563;
  color: #e5e7eb;
  border-color: #6b7280;
}

/* Feature / process cards */
.feature-grid,
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.card-title {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.card-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.22), rgba(37, 99, 235, 0.95));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 6px;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.75);
}

.card ul {
  padding-left: 18px;
  margin-top: 4px;
}

.card li {
  margin-bottom: 2px;
}

/* Contact section index */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 16px;
}

.contact-info p {
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 0.98);
  margin-bottom: 4px;
}

.contact-highlight {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #e5e7eb;
}

.contact-form {
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.98));
  border-radius: 16px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.75);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.96);
  font-size: 0.85rem;
}

/* Footer + video modal index */
footer {
  padding: 18px 0 22px;
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.95);
  border-top: 1px solid rgba(148, 163, 184, 0.6);
  margin-top: 12px;
}

footer .footer-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
}

.video-modal.show {
  display: block;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(3px);
}

.video-modal-content {
  position: relative;
  max-width: 840px;
  width: 92%;
  max-height: 80vh;
  margin: 40px auto;
  background: #000;
  border-radius: 16px;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.95);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.video-modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  border: none;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 1rem;
  cursor: pointer;
  z-index: 2;
  background: rgba(15, 23, 42, 0.85);
  color: #f9fafb;
}

#videoContainer {
  width: 100%;
  padding-top: 56.25%;
  position: relative;
}

#videoContainer iframe,
#videoContainer video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* =========================================================
 * TRANG ROOM (CHI TIẾT PHÒNG) – room.html
 * (tái sử dụng nhiều class chung + thêm layout riêng)
 * =======================================================*/

main {
  padding-bottom: 24px;
}

.breadcrumb {
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.9);
  margin-bottom: 12px;
}

.breadcrumb a {
  text-decoration: underline;
}

.layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
}

.room-title-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.room-title {
  font-size: 1.3rem;
  font-weight: 700;
}

.room-sub {
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 0.95);
  margin-bottom: 8px;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.price {
  font-size: 1.15rem;
  font-weight: 700;
}

.status-chip {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.9);
  background: rgba(15, 23, 42, 0.95);
  white-space: nowrap;
}

.status-available {
  background: #22c55e;
  border-color: #22c55e;
  color: #022c22;
}

.status-rented {
  background: #4b5563;
  border-color: #6b7280;
  color: #e5e7eb;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.82rem;
}

.meta-item span {
  display: block;
}

.meta-label {
  color: rgba(148, 163, 184, 0.95);
}

.meta-value {
  font-weight: 600;
}

.room-desc {
  font-size: 0.9rem;
  color: rgba(209, 213, 219, 0.98);
}

/* Danh sách tài sản / tiện ích */
.asset-list {
  padding-left: 18px;
  margin-top: 4px;
  font-size: 0.85rem;
  color: rgba(209, 213, 219, 0.98);
}

.asset-list li {
  margin-bottom: 2px;
}

/* Gallery hình & video */
.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.gallery-main img,
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.gallery-thumb-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  height: 100%;
}

.gallery-placeholder {
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.95);
  padding: 18px;
  border-radius: 12px;
  border: 1px dashed rgba(148, 163, 184, 0.8);
  text-align: center;
}

/* Video container room – dùng chung ID với index nhưng layout riêng vẫn ok */
#videoContainer {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  margin-top: 8px;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

/* Bảng phí dịch vụ */
.fee-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-top: 6px;
}

.fee-table th,
.fee-table td {
  border: 1px solid rgba(55, 65, 81, 0.9);
  padding: 6px 8px;
  vertical-align: top;
}

.fee-table th {
  background: rgba(15, 23, 42, 0.9);
}

.fee-table th:nth-child(1),
.fee-table td:nth-child(1) {
  width: 38%;
}

.fee-table th:nth-child(2),
.fee-table td:nth-child(2) {
  width: 27%;
  white-space: nowrap;
  text-align: right;
}

.fee-table th:nth-child(3),
.fee-table td:nth-child(3) {
  width: 35%;
}

.service-icon {
  margin-right: 6px;
  font-size: 1rem;
  display: inline-block;
  transition: transform 0.15s;
}

.fee-table tr:hover .service-icon {
  transform: scale(1.1);
}

/* Badge gợi ý & nhóm icon */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.badge {
  font-size: 0.78rem;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px dashed rgba(148, 163, 184, 0.9);
  background: rgba(15, 23, 42, 0.95);
}

/* Form liên hệ room */
#formStatus {
  font-size: 0.8rem;
  margin-top: 4px;
  color: rgba(148, 163, 184, 0.96);
}

/* =========================================================
 * TRANG PORTAL TÀI KHOẢN PHÒNG – tenant.html
 * Dùng: <body class="tenant-body">
 * =======================================================*/

/* Nền & layout chung cho tenant */
body.tenant-body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.2), transparent 50%),
    radial-gradient(circle at top right, rgba(129, 140, 248, 0.2), transparent 55%),
    radial-gradient(circle at bottom, rgba(45, 212, 191, 0.25), transparent 55%),
    #0b1120;
  color: #e5e7eb;
  min-height: 100vh;
  padding: 12px 16px 20px;
}

body.tenant-body .container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

/* Header + logo tenant */
body.tenant-body .header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

body.tenant-body .logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.tenant-body .logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: conic-gradient(from 120deg, #38bdf8, #22c55e, #6366f1, #38bdf8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: #0b1120;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.8), 0 10px 30px rgba(15, 23, 42, 0.8);
}

body.tenant-body .logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

body.tenant-body .logo-text-main {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.tenant-body .logo-text-sub {
  font-size: 0.75rem;
  color: rgba(148, 163, 184, 0.9);
}

body.tenant-body .header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Nút trên trang tenant (thu nhỏ so với index) */
body.tenant-body .btn {
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: radial-gradient(circle at top left, #38bdf8, #2563eb);
  color: #f9fafb;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.5);
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    filter 0.16s ease;
  white-space: nowrap;
}

body.tenant-body .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.75);
  filter: brightness(1.03);
}

body.tenant-body .btn-outline {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.8);
  box-shadow: none;
  color: #e5e7eb;
}

body.tenant-body .btn-outline:hover {
  background: rgba(15, 23, 42, 0.98);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.98);
}

/* Text + status */
body.tenant-body a {
  color: #38bdf8;
  text-decoration: none;
}

body.tenant-body a:hover {
  text-decoration: underline;
}

body.tenant-body .page-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

body.tenant-body .page-subtitle {
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 0.96);
  margin-bottom: 6px;
}

body.tenant-body .portal-status {
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.96);
  margin-bottom: 14px;
  min-height: 16px;
}

/* Lưới 2 cột: form + hướng dẫn */
body.tenant-body .grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

/* Card trong tenant */
body.tenant-body .card {
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.99));
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.75);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 1);
  padding: 12px;
  font-size: 0.85rem;
}

body.tenant-body .card-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
}

/* Badge & info bên phải */
body.tenant-body .badge {
  display: inline-block;
  font-size: 0.78rem;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.85);
  background: rgba(15, 23, 42, 0.96);
  margin-bottom: 4px;
}

body.tenant-body .info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

body.tenant-body .info-label {
  color: rgba(148, 163, 184, 0.96);
  font-size: 0.8rem;
}

body.tenant-body .info-value {
  font-weight: 500;
  font-size: 0.85rem;
}

body.tenant-body .list {
  margin-top: 4px;
  padding-left: 16px;
  font-size: 0.82rem;
  color: rgba(209, 213, 219, 0.96);
}

body.tenant-body .list li {
  margin-bottom: 2px;
}

body.tenant-body .small-note {
  font-size: 0.75rem;
  color: rgba(148, 163, 184, 0.96);
  margin-top: 6px;
}

body.tenant-body .section-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
  margin-top: 4px;
}

body.tenant-body .table-like {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  margin-top: 4px;
}

body.tenant-body .table-like th,
body.tenant-body .table-like td {
  padding: 6px 6px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.9);
}

body.tenant-body .table-like th {
  text-align: left;
  font-weight: 600;
  color: rgba(148, 163, 184, 0.98);
  font-size: 0.78rem;
}

body.tenant-body .table-like td {
  color: rgba(229, 231, 235, 0.96);
}

body.tenant-body .muted {
  color: rgba(148, 163, 184, 0.9);
  font-style: italic;
}

/* ===== Footer dưới form + nút Đăng xuất / Đổi phòng ===== */

body.tenant-body .tenant-footer-actions {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
}

body.tenant-body .tenant-back-link {
  color: #bfdbfe;
  text-decoration: underline;
  cursor: pointer;
  opacity: 0.9;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

body.tenant-body .tenant-back-link:hover {
  opacity: 1;
  transform: translateY(-1px);
}

/* Nút “Đăng xuất / Đổi phòng” dạng chip nổi bật */
body.tenant-body .btn-logout {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(248, 113, 113, 0.85);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fecaca;
  background:
    radial-gradient(circle at top left, rgba(248, 113, 113, 0.18), transparent 55%),
    rgba(15, 23, 42, 0.95);
  box-shadow:
    0 0 0 1px rgba(148, 27, 109, 0.5),
    0 14px 32px rgba(127, 29, 29, 0.6);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

/* Glow viền mềm */
body.tenant-body .btn-logout::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: conic-gradient(
    from 160deg,
    rgba(248, 113, 113, 0.7),
    rgba(251, 146, 60, 0.7),
    rgba(244, 63, 94, 0.7),
    rgba(248, 113, 113, 0.9)
  );
  opacity: 0;
  z-index: -1;
  filter: blur(6px);
  transition: opacity 0.2s ease;
}

/* Icon tròn bên trái nút */
body.tenant-body .btn-logout-icon {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  background: radial-gradient(circle at top left, #fecaca, #fb7185);
  color: #111827;
  box-shadow: 0 6px 14px rgba(248, 113, 113, 0.7);
}

/* Hover + active */
body.tenant-body .btn-logout:hover {
  transform: translateY(-2px);
  background:
    radial-gradient(circle at top left, rgba(248, 113, 113, 0.25), transparent 55%),
    rgba(15, 23, 42, 1);
  color: #fee2e2;
  box-shadow:
    0 0 0 1px rgba(248, 113, 113, 0.9),
    0 18px 40px rgba(127, 29, 29, 0.9);
}

body.tenant-body .btn-logout:hover::before {
  opacity: 1;
}

body.tenant-body .btn-logout:active {
  transform: translateY(0);
  box-shadow:
    0 0 0 1px rgba(248, 113, 113, 0.9),
    0 10px 24px rgba(17, 24, 39, 0.9);
}

/* Responsive riêng cho tenant */
@media (max-width: 768px) {
  body.tenant-body .grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  body.tenant-body {
    padding: 10px 10px 18px;
  }

  body.tenant-body .card {
    padding: 10px;
  }
}

/* =========================================================
 * RESPONSIVE CHUNG
 * =======================================================*/

@media (max-width: 900px) {
  .hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .rooms-grid,
  .feature-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 22px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .rooms-grid,
  .feature-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }
}

/************************************************************
 * SKELETON LOADING – hiệu ứng "đang tải" cho text & ô dữ liệu
 ************************************************************/
/* Dùng class .skeleton cho những vùng đang loading (span, td, li, v.v.) */
.skeleton {
  position: relative;
  background: #e5e7eb;          /* nền xám nhạt, hợp với theme trắng xanh */
  color: transparent !important; /* ẩn chữ thực đi */
  border-radius: 6px;
  overflow: hidden;
  min-height: 1em;              /* tránh bị co lại quá thấp */
}

/* Hiệu ứng ánh sáng quét ngang */
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.8),
    transparent
  );
  animation: skeleton-loading 1.2s infinite;
}

@keyframes skeleton-loading {
  100% {
    transform: translateX(100%);
  }
}

/* Nếu cần skeleton cho cả dòng table (tr), có thể dùng thêm: */
tr .skeleton {
  display: block;
  width: 100%;
}

/************************************************************
 * BADGE TRẠNG THÁI HỢP ĐỒNG – đồng bộ phong cách YT Home
 ************************************************************/
/* Badge gốc – có sẵn (.badge) – mình nhẹ nhàng tinh chỉnh lại một chút */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;        /* pill */
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: rgba(37, 99, 235, 0.06); /* xanh primary nhạt */
  color: #1d4ed8;              /* xanh primary đậm */
}

/* Trạng thái hợp đồng: Còn hiệu lực / Đang thuê */
.badge-success {
  background: rgba(34, 197, 94, 0.12);  /* xanh lá nhạt */
  color: #15803d;                        /* xanh lá đậm */
}

/* Trạng thái: Sắp hết hạn, Chờ gia hạn */
.badge-warning {
  background: rgba(249, 115, 22, 0.12); /* cam nhạt */
  color: #c2410c;                        /* cam đậm */
}

/* Trạng thái: Hết hạn, Thanh lý, Ngưng */
.badge-danger {
  background: rgba(239, 68, 68, 0.12);  /* đỏ nhạt */
  color: #b91c1c;                        /* đỏ đậm */
}

/* Trạng thái mặc định / không xác định */
.badge-neutral {
  background: rgba(107, 114, 128, 0.12); /* xám nhạt */
  color: #4b5563;                         /* xám trung tính */
}

/************************************************************
 * NÚT GIA HẠN HỢP ĐỒNG – biến thể theo trạng thái
 * (dùng kèm với class .btn gốc đang có)
 ************************************************************/
/* Mặc định .btn đã có style chung, chỉ thêm màu trạng thái */

.btn-warning {
  background-color: #f97316;
  border-color: #f97316;
  color: #ffffff;
}

.btn-warning:hover {
  background-color: #ea580c;
  border-color: #ea580c;
}

.btn-danger {
  background-color: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
}

.btn-danger:hover {
  background-color: #dc2626;
  border-color: #dc2626;
}

/* Nếu muốn trạng thái "không bấm được" dùng cho nút khác */
.btn-disabled {
  opacity: 0.6;
  pointer-events: none;
}

.days-left-yellow {
  color: #f59e0b;       /* vàng đậm */
  font-weight: 600;
}

.days-left-red {
  color: #dc2626;       /* đỏ đậm */
  font-weight: 700;
}

/* Nếu muốn thêm dạng trung tính thì mở comment: */
.days-left-neutral {
  color: #64748b;
  font-weight: 500;
}

/************************************************************
 * GỢI Ý: tinh chỉnh nhỏ cho info-value để skeleton đẹp hơn
 ************************************************************/
.info-value.skeleton,
.list li.skeleton,
.muted.skeleton {
  display: inline-block;
  width: 100%;
}

/************************************************************
 * TÊN CHỦ PHÒNG – nổi bật hơn
 ************************************************************/
#ownerName {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent); /* dùng màu xanh lá accent của YT Home */
}

/************************************************************
 * STATUS DƯỚI DẠNG NÚT / CHIP
 ************************************************************/
.status-text {
  font-size: 0.9rem;
}

.status-chip {
  border: none;
  outline: none;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.05s ease, box-shadow 0.1s ease, background-color 0.1s ease;
}

/* trạng thái "chưa", "còn thiếu", "chưa đăng ký" */
.status-chip-warning {
  background: rgba(248, 250, 252, 0.1);
  color: #facc15; /* vàng nổi bật trên nền tối */
  border: 1px solid rgba(250, 204, 21, 0.4);
}

.status-chip-warning:hover {
  background: rgba(250, 204, 21, 0.12);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.35);
}

/************************************************************
 * THÔNG TIN HÓA ĐƠN – label thường, Phải thu nổi bật
 ************************************************************/
#invoiceSummary p {
  margin: 2px 0;
}

.inv-label {
  opacity: 0.85;
  font-weight: 400;
}

.inv-value {
  font-weight: 500;
}

.inv-total-row {
  margin-top: 6px;
  padding-top: 4px;
  border-top: 1px dashed rgba(148, 163, 184, 0.5);
}

.inv-total {
  font-weight: 700;
  font-size: 1.05rem;
  color: #f97373;   /* đỏ tươi kiểu warning */
}

/* Cảnh báo hợp đồng sắp hết hạn */
.contract-alert-yellow {
  color: #facc15 !important; /* vàng */
}

.contract-alert-red {
  color: #ef4444 !important; /* đỏ */
}

/* Nút gia hạn màu nổi */
.btn-accent {
  background-color: #3b82f6;
  border-color: #3b82f6;
  color: #fff;
}

.btn-accent:hover {
  background-color: #2563eb;
  border-color: #2563eb;
}

/************************************************************
 * NEW: TAB HỢP ĐỒNG / THANH TOÁN – tenant portal
 ************************************************************/
.hidden {
  display: none !important;
}

body.tenant-body .tab-row {
  display: flex;
  gap: 6px;
  margin: 6px 0 8px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.9);
}

body.tenant-body .tab-btn {
  border: none;
  background: transparent;
  padding: 4px 10px 6px;
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.9);
  cursor: pointer;
  border-radius: 999px 999px 0 0;
  transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

body.tenant-body .tab-btn:hover {
  color: #e5e7eb;
  transform: translateY(-1px);
}

body.tenant-body .tab-btn.active {
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.98);
  border-bottom: 2px solid #38bdf8;
}

/************************************************************
 * NEW: BẢNG CHI TIẾT DỊCH VỤ HÓA ĐƠN
 ************************************************************/
body.tenant-body #invoiceDetailTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  margin-top: 6px;
}

body.tenant-body #invoiceDetailTable th,
body.tenant-body #invoiceDetailTable td {
  padding: 6px 6px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.9);
}

body.tenant-body #invoiceDetailTable th {
  text-align: left;
  font-weight: 600;
  color: rgba(148, 163, 184, 0.98);
  font-size: 0.78rem;
}

body.tenant-body #invoiceDetailTable td {
  color: rgba(229, 231, 235, 0.96);
}

body.tenant-body #invoiceDetailTable tfoot td {
  font-weight: 600;
  border-top: 1px dashed rgba(148, 163, 184, 0.7);
}

/************************************************************
 * NEW: NÚT TRẠNG THÁI THANH TOÁN
 ************************************************************/
.pay-status-btn {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.pay-status-btn:hover {
  transform: translateY(-1px);
}

.pay-status-unpaid {
  background: #b91c1c;
  color: #fee2e2;
  box-shadow: 0 8px 18px rgba(185, 28, 28, 0.6);
}

.pay-status-unpaid:hover {
  filter: brightness(1.05);
  box-shadow: 0 10px 24px rgba(185, 28, 28, 0.8);
}

.pay-status-paid {
  color: #22c55e;        /* xanh lá */
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.6);
  cursor: default;
}

/* Nút chi tiết hóa đơn nhỏ trong bảng lịch sử */
.invoice-detail-btn {
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.72rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.96);
  color: rgba(229, 231, 235, 0.96);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.invoice-detail-btn:hover {
  background: rgba(30, 64, 175, 0.9);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.8);
}

/************************************************************
 * NEW: MODAL GỬI PHIẾU THANH TOÁN
 ************************************************************/
.payment-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
}

.payment-modal-backdrop.show {
  display: flex;
}

.payment-modal {
  width: 100%;
  max-width: 420px;
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 1));
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.85);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.95);
  padding: 12px;
  font-size: 0.85rem;
}

.payment-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.payment-modal-title {
  font-size: 0.9rem;
  font-weight: 600;
}

.payment-modal-close {
  border: none;
  background: transparent;
  color: rgba(148, 163, 184, 0.95);
  font-size: 1rem;
  cursor: pointer;
}

.payment-modal-body {
  font-size: 0.8rem;
  color: rgba(209, 213, 219, 0.96);
  margin-bottom: 8px;
}

.payment-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 6px;
}

/* Input file trong modal */
.payment-modal input[type="file"] {
  width: 100%;
  margin-top: 6px;
  font-size: 0.8rem;
  color: rgba(229, 231, 235, 0.96);
}
/* ====== BẢNG DỊCH VỤ: font nhỏ hơn, không rớt dòng ====== */
.table-dv th,
.table-dv td{
  font-size: 13px;
  white-space: nowrap;
}

.table-dv td.dv-name{
  white-space: normal; /* tên dịch vụ có thể xuống dòng nhẹ */
  min-width: 140px;
}

.table-dv td.dv-money{
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Dòng tổng in đậm */
.dv-total-row td{
  font-weight: 800;
}

/* ====== PILL "Đã thanh toán" xanh lá đậm ====== */
.pill-success{
  background: #16a34a; /* xanh lá đậm */
  color: #fff;
  border: 1px solid #15803d;
  font-weight: 800;
}

/* ====== Popup thanh toán đẹp + giữa màn hình ====== */
.modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal.hidden{
  display: none;
}

.modal-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(3px);
}

.modal-card{
  position: relative;
  width: min(720px, 96vw);
  max-height: 88vh;
  overflow: auto;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(0,0,0,.35);
  border: 1px solid rgba(0,0,0,.08);
}

.modal-head{
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.modal-title{
  font-weight: 800;
  font-size: 16px;
}

.modal-x{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.modal-body{
  padding: 14px 16px 6px;
}

.modal-actions{
  position: sticky;
  bottom: 0;
  background: #fff;
  z-index: 2;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 12px 16px;
  border-top: 1px solid rgba(0,0,0,.08);
}

.payment-preview{
  margin-top: 10px;
  border: 1px dashed rgba(0,0,0,.18);
  border-radius: 14px;
  padding: 10px;
  background: rgba(2,6,23,.02);
}

.payment-proof-img{
  display: block;
  max-width: 100%;
  max-height: 360px;
  object-fit: contain;
  border-radius: 12px;
}
/* ==== PATCH ADMIN FORM ==== */
.form-control{
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: #fff;
  outline: none;
}

.form-control:focus{
  border-color: rgba(99,179,237,.55);
  box-shadow: 0 0 0 4px rgba(59,130,246,.18);
}

.btn{
  border-radius: 12px;
}

.card{
  border-radius: 18px;
}
/* ==== ADMIN DARK PATCH ==== */
.tenant-body{
  background: radial-gradient(1200px 600px at 10% -10%, #1b2a4a, #0b1220 60%);
  color: #fff;
}
/* =========================================================
 * PATCH: TRẠNG THÁI MÀU CHỮ (không nền)
 * - “Đã thanh toán”: chỉ chữ xanh
 * - “Đã đăng ký”: chỉ chữ xanh
 * =======================================================*/

/* 1) “Đã thanh toán” – chỉ chữ xanh lá */
.pay-status-paid{
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  color: #22c55e !important;    /* xanh lá */
  font-weight: 700 !important;
  cursor: default !important;
}

.pay-status-paid:hover{
  transform: none !important;
  filter: none !important;
  box-shadow: none !important;
}

/* Nếu bạn đang dùng class pill-success ở đâu đó cho “Đã thanh toán”
   thì chuyển nó thành chữ xanh luôn (để khỏi bị nền xanh) */
.pill-success{
  background: transparent !important;
  border: none !important;
  color: #22c55e !important;
  font-weight: 800 !important;
  padding: 0 !important;
}

/* 2) “Đã đăng ký” – chữ xanh lá (dùng chung) */
.status-green,
.status-registered,
.registered,
.text-success{
  color: #22c55e !important;
  font-weight: 700 !important;
}

/* Nếu bạn đang dùng chip/button cho trạng thái “Đã đăng ký”
   thì ép về chữ xanh, bỏ nền/viền */
.status-chip.status-chip-success,
.status-chip-success{
  background: transparent !important;
  border: none !important;
  color: #22c55e !important;
  font-weight: 700 !important;
  padding: 0 !important;
  cursor: default !important;
}
/* ====== TRẠNG THÁI TẠM TRÚ ====== */

/* ĐÃ ĐĂNG KÝ – chữ xanh lá, không nền */
.status-registered {
  color: #22c55e;        /* xanh lá */
  font-weight: 600;
}

/* CHƯA ĐĂNG KÝ – vàng/cảnh báo */
.status-unregistered {
  color: #facc15;        /* vàng */
  font-weight: 600;
}
/* Vá nhanh theo nội dung text */
td:contains("Đã đăng ký"),
span:contains("Đã đăng ký") {
  color: #22c55e;
  font-weight: 600;
}
.status-text-success{
  color: #22c55e;        /* xanh lá */
  font-weight: 600;
  display: inline-flex; /* canh giữa */
  align-items: center;  /* canh giữa theo trục dọc */
  justify-content: center;
  text-align: center;
}
td .status-text-success{
  width: 100%;
}
/* ===== CANH GIỮA BẢNG DANH SÁCH NGƯỜI & XE ===== */
.table-center th,
.table-center td {
  text-align: center;       /* canh giữa ngang */
  vertical-align: middle;   /* canh giữa dọc */
}

/* Nếu trong ô có span / button */
.table-center td > *,
.table-center td .status-text,
.table-center td .status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
/* ===== BẢNG NGƯỜI & XE: CANH GIỮA + FONT NHỎ ===== */
.table-center th {
  text-align: center;        /* canh giữa tiêu đề */
  vertical-align: middle;
  font-size: 0.72rem;        /* nhỏ hơn */
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(148, 163, 184, 0.95);
}

.table-center td {
  text-align: center;        /* canh giữa nội dung */
  vertical-align: middle;
  font-size: 0.8rem;
}
/* ===== BẢNG NGƯỜI & XE: GIẢM CỠ CHỮ TOÀN BỘ ===== */
.table-center {
  font-size: 0.5rem; /* cỡ chữ chung toàn bảng */
}

.table-center th {
  font-size: 0.7rem;  /* tiêu đề nhỏ hơn nội dung */
}

.table-center td {
  font-size: 0.65rem;
}
/* ===== BADGE PHÒNG + CẢNH BÁO HỢP ĐỒNG ===== */
.room-badge-row{
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.contract-alert-badge{
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

/* <= 60 ngày */
.contract-alert-yellow{
  background: rgba(250, 204, 21, 0.15);
  color: #facc15;
  border: 1px solid rgba(250, 204, 21, 0.5);
}

/* <= 30 ngày */
.contract-alert-red{
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.5);
}
.svc-icon{
  display: inline-block;
  width: 22px;
  text-align: center;
  margin-right: 6px;
}
/* Icon trước dịch vụ kèm theo */
.svc-icon{
  display:inline-block;
  width:22px;
  text-align:center;
  margin-right:6px;
  opacity: .95;
}

/* “Đã đăng ký” xanh lá */
.status-ok{
  color:#22c55e;
  font-weight:700;
}

/* Canh giữa toàn bộ bảng danh sách người & xe + tiêu đề + chữ nhỏ hơn */
#membersTable th,
#membersTable td,
body.tenant-body .table-like th,
body.tenant-body .table-like td{
  text-align:center;
  font-size:0.78rem;
}

body.tenant-body .table-like th{
  font-size:0.74rem;
}
/* Canh giữa toàn bộ bảng table-like */
.table-like {
  text-align: center;
}

/* Canh giữa tiêu đề cột */
.table-like th {
  text-align: center;
  vertical-align: middle;
}

/* Canh giữa nội dung ô */
.table-like td {
  text-align: center;
  vertical-align: middle;
}
/* Cho phép một số cột vẫn căn trái để dễ đọc */
.table-like .text-left,
.table-like td.text-left {
  text-align: left;
}
.grid{ align-items: start; }

.card{
  height: auto !important;
  min-height: 0 !important;
  align-self: start;
}
/* ===== TABLE TYPOGRAPHY – RESPONSIVE ===== */

/* Nội dung bảng */
.table-like td,
.table-like th{
  font-size: clamp(12px, 0.9vw, 14px);
  line-height: 1.4;
  padding: 8px 6px;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

/* Header nhỏ hơn nội dung chút, rõ ràng */
.table-like th{
  font-size: clamp(11px, 0.85vw, 13px);
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* Mobile: cho phép xuống dòng nếu cần */
@media (max-width: 768px){
  .table-like td,
  .table-like th{
    white-space: normal;
    font-size: 12px;
  }
}
.grid{
  align-items: start;
}

.card{
  height: auto !important;
  min-height: 0 !important;
}
.table-center,
.table-center th,
.table-center td{
  text-align: center;
}
.status-text{
  font-size: clamp(11px, 0.85vw, 13px);
}

.status-text-success{
  color: #16a34a;
  font-weight: 600;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  justify-content: center;
  align-items: center;
  z-index: 9999;

  /* ❗❗ KHÔNG set display ở đây */
 }

.modal-overlay.hidden {
  display: none !important;
}

.modal-overlay.show {
  display: flex;
}
.modal-card {
  width: 920px;
  max-width: 95%;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  padding: 20px 24px;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-size: 20px;
  margin-bottom: 4px;
}

.badge {
  display: inline-block;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 999px;
}

.badge-warning {
  background: #fff7ed;
  color: #c2410c;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
}

.section {
  margin-bottom: 28px;
}

.section h3 {
  font-size: 15px;
  margin-bottom: 12px;
  color: #1f2937;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full {
  grid-column: span 2;
}

label {
  font-size: 13px;
  color: #374151;
  margin-bottom: 4px;
}

input, select, textarea {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-size: 14px;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.modal-footer {
  padding: 16px 24px;
  background: #f8fafc;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.btn-primary {
  background: #2563eb;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 500;
}

.btn-secondary {
  background: #e5e7eb;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
}

