:root {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --border-color: #e2e8f0;
  --border-focus: #0284c7;

  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-light: #e0f2fe;
  --primary-gradient: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);

  --accent-gold: #d97706;
  --accent-gold-light: #fef3c7;
  --accent-coral: #e11d48;
  --accent-coral-light: #ffe4e6;
  --accent-emerald: #059669;
  --accent-emerald-light: #d1fae5;

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-dim: #94a3b8;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.12);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(at 0% 0%, rgba(2, 132, 199, 0.06) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(245, 158, 11, 0.05) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(37, 99, 235, 0.04) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  padding-bottom: 84px; /* Space for mobile bottom dock */
  touch-action: pan-x pan-y;
  -webkit-text-size-adjust: 100%;
}

/* Khoá zoom trên điện thoại khi nhập liệu (Safari & Chrome auto-zoom fix) */
input, select, textarea, button {
  font-size: 16px !important;
  touch-action: manipulation;
}

/* App Container - Compact */
.app-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 12px 14px 24px;
}

/* Top Hero Section - Light & Compact */
.hero-header {
  position: relative;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 16px 14px;
  margin-bottom: 12px;
}

.hero-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

/* TIÊU ĐỀ DU LỊCH ĐÀ NẴNG MWG NỔI BẬT */
.grand-hero-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #0284c7 0%, #1d4ed8 100%);
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  text-transform: uppercase;
}

.grand-hero-title .badge-icon {
  font-size: 1.15rem;
}

/* NÚT ĐỒNG BỘ CHỈ BIỂU TƯỢNG */
.btn-sync-icon-only {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  color: #0284c7;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
  flex-shrink: 0;
}

.btn-sync-icon-only:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}

.sync-spinner {
  display: inline-block;
  transition: transform 0.6s ease;
}

.btn-sync-icon-only.syncing .sync-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-title-group h1 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 4px;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.live-dot-badge {
  font-size: 0.75rem;
  color: #059669;
  font-weight: 600;
}

/* Leader Compact Box */
.leader-card-banner {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.leader-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.leader-info-block {
  display: flex;
  align-items: center;
  gap: 10px;
}

.leader-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  border: 1px solid #bae6fd;
}

.leader-titles .role-pill {
  font-size: 0.68rem;
  background: #e0f2fe;
  color: var(--primary);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.leader-titles .name {
  font-size: 0.96rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 4px;
}

.leader-titles .sub {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.leader-actions {
  display: flex;
  gap: 8px;
}

.btn-contact {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.8rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-contact.call {
  background: var(--primary-gradient);
  color: #ffffff;
}

.btn-contact.call:hover {
  opacity: 0.92;
}

.btn-contact.zalo {
  background: #0068ff;
  color: #ffffff;
}

.btn-contact.zalo:hover {
  opacity: 0.92;
}

/* Quick Stats Row - Compact */
.quick-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.stat-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 4px;
  text-align: center;
  box-shadow: var(--shadow-xs);
}

.stat-number {
  font-size: 1.18rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.66rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 1px;
}

.stat-box.cyan .stat-number { color: var(--primary); }
.stat-box.gold .stat-number { color: var(--accent-gold); }
.stat-box.emerald .stat-number { color: var(--accent-emerald); }
.stat-box.purple .stat-number { color: #7c3aed; }

/* Floating UI Banner: Tra cứu phòng của tôi */
.lookup-banner {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1.5px solid #7dd3fc;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.12);
  transition: var(--transition);
}

.lookup-banner:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.18);
}

.lookup-icon {
  font-size: 1.5rem;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-xs);
  flex-shrink: 0;
}

.lookup-content h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0369a1;
}

.lookup-content p {
  font-size: 0.76rem;
  color: #475569;
}

.lookup-btn {
  background: var(--primary-gradient);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  border: none;
  white-space: nowrap;
  box-shadow: var(--shadow-xs);
}

/* Nav Tabs - Compact (3 Tabs: Thành viên, Điểm danh, Lịch trình) */
.tab-navigation {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  background: #ffffff;
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xs);
}

.nav-tab-btn {
  flex: 1;
  padding: 8px 12px;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-tab-btn.active {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: var(--shadow-xs);
}

/* Tab Panels */
.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.2s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Search and Filters - Compact */
.search-filter-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.search-input-wrap {
  position: relative;
  width: 100%;
}

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

.search-input {
  width: 100%;
  padding: 9px 36px 9px 34px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition);
  box-shadow: var(--shadow-xs);
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.search-clear-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  display: none;
}

.filter-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.filter-chip {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.filter-chip.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

/* Member List Cards - Clean & Compact */
.member-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.member-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: var(--transition);
}

.member-card:hover {
  border-color: #94a3b8;
}

.member-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.member-main-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.member-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.member-avatar.nam {
  background: #e0f2fe;
  color: #0369a1;
}

.member-avatar.nu {
  background: #ffe4e6;
  color: #e11d48;
}

.member-name-wrap {
  display: flex;
  flex-direction: column;
}

.member-name {
  font-size: 0.94rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 5px;
}

.badge-tag {
  font-size: 0.65rem;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.badge-tag.leader {
  background: var(--accent-gold-light);
  color: var(--accent-gold);
  border: 1px solid #fde68a;
}

.member-meta-line {
  font-size: 0.74rem;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  align-items: center;
}

.member-right-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.room-badge-large {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 3px 6px;
  border-radius: 6px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  cursor: pointer;
  transition: var(--transition);
}

.room-badge-large:hover {
  background: #dbeafe;
}

.room-badge-large .room-label {
  font-size: 0.55rem;
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
}

.room-badge-large .room-num {
  font-size: 1.1rem;
  font-weight: 800;
  color: #1e3a8a;
  line-height: 1.1;
}

.chevron-expand-btn {
  font-size: 0.8rem;
  color: var(--text-muted);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: #f1f5f9;
  transition: transform 0.2s ease, background 0.2s ease;
}

.member-card.expanded .chevron-expand-btn {
  transform: rotate(180deg);
  background: #e0f2fe;
  color: #0284c7;
}

/* Ẩn chi tiết mặc định, click vào mới hiển thị */
.member-card .member-card-details,
.member-card .member-card-actions {
  display: none;
}

.member-card.expanded {
  border-color: #0284c7;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.12);
}

.member-card.expanded .member-card-details {
  display: flex;
  animation: fadeIn 0.2s ease-out;
}

.member-card.expanded .member-card-actions {
  display: flex;
  animation: fadeIn 0.2s ease-out;
}

.member-card-details {
  background: #f8fafc;
  border-radius: 6px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.76rem;
  border: 1px solid #e2e8f0;
  margin-top: 4px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}

.detail-item strong {
  color: #1e293b;
  font-weight: 600;
}

.member-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid #f1f5f9;
}

.btn-card-action {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  color: #334155;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-card-action:hover {
  background: #e2e8f0;
}

.attendance-toggle-btn {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.attendance-toggle-btn.present {
  background: var(--accent-emerald-light);
  border-color: #a7f3d0;
  color: #065f46;
}

.attendance-toggle-btn.absent {
  background: var(--accent-coral-light);
  border-color: #fecdd3;
  color: #9f1239;
}

/* Attendance Dedicated Panel - Compact */
.attendance-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.session-selector-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-xs);
}

.session-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.session-title-row h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.select-session {
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  border: 1px solid var(--border-color);
  color: #0f172a;
  font-size: 0.86rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.select-session:focus {
  border-color: var(--primary);
}

/* Attendance Progress Dashboard - Clean Light */
.attendance-dashboard {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-xs);
}

.progress-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.progress-stat-main {
  font-size: 1.55rem;
  font-weight: 800;
  color: #059669;
}

.progress-stat-main span {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 600;
}

.progress-bar-bg {
  width: 100%;
  height: 9px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #0284c7, #059669);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.attendance-counters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  text-align: center;
}

.att-counter-item {
  padding: 6px;
  background: #f8fafc;
  border-radius: 6px;
  border: 1px solid #f1f5f9;
}

.att-counter-item .num {
  font-size: 1.15rem;
  font-weight: 800;
}

.att-counter-item .lbl {
  font-size: 0.66rem;
  color: var(--text-muted);
  font-weight: 600;
}

.att-counter-item.present .num { color: #059669; }
.att-counter-item.absent .num { color: #e11d48; }
.att-counter-item.rate .num { color: #0284c7; }

/* Quick Action Toolbars for Attendance */
.attendance-tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.btn-att-action {
  flex: 1;
  min-width: 110px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: var(--transition);
}

.btn-att-action.check-all {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.btn-att-action.check-all:hover {
  background: #059669;
  color: #ffffff;
}

.btn-att-action.reset-all {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.btn-att-action.reset-all:hover {
  background: #e2e8f0;
}

.btn-att-action.copy-zalo {
  background: #0068ff;
  color: #ffffff;
  width: 100%;
  padding: 10px;
  box-shadow: 0 3px 10px rgba(0, 104, 255, 0.25);
}

.btn-att-action.copy-zalo:hover {
  background: #0056cc;
}

/* Missing list reminder banner */
.missing-warning-banner {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.missing-warning-title {
  color: #be123c;
  font-weight: 700;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.missing-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.missing-person-pill {
  background: #ffffff;
  border: 1px solid #fda4af;
  color: #9f1239;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

/* Itinerary - Clean Light */
.itinerary-day-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 10px;
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow-xs);
}

.day-badge {
  display: inline-block;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 6px;
}

.itinerary-title {
  font-size: 0.96rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
}

.itinerary-step {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 8px;
  font-size: 0.82rem;
  color: #334155;
  line-height: 1.45;
  padding: 6px 10px;
  background: #f8fafc;
  border-radius: 6px;
  border-left: 2.5px solid #0284c7;
}

.itinerary-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.itinerary-time-pill {
  color: #0284c7;
  font-weight: 800;
  font-size: 0.76rem;
}

.itinerary-note-pill {
  font-size: 0.66rem;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.notes-card {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-top: 12px;
}

.notes-title {
  color: #b45309;
  font-weight: 800;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.notes-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.78rem;
  color: #78350f;
}

.notes-list li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

/* Modal Popup - Clean Light Theme */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 440px;
  padding: 20px 16px;
  position: relative;
  transform: translateY(14px) scale(0.97);
  transition: transform 0.2s ease;
  max-height: 88vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: #f1f5f9;
  border: none;
  color: #64748b;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.modal-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* VIP Member Ticket Card inside modal */
.vip-ticket {
  background: #f0f9ff;
  border: 1.5px dashed #7dd3fc;
  border-radius: var(--radius-sm);
  padding: 16px 14px;
  text-align: center;
  margin-top: 12px;
}

.vip-ticket .room-giant-title {
  font-size: 0.76rem;
  text-transform: uppercase;
  color: #0284c7;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.vip-ticket .room-giant-number {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.1;
  color: #0369a1;
  margin: 4px 0 8px;
}

.roommates-box {
  background: #ffffff;
  border-radius: 6px;
  padding: 10px;
  text-align: left;
  margin-top: 10px;
  border: 1px solid #e0f2fe;
}

.roommates-box h4 {
  font-size: 0.74rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Rooms Grid View - SỐ PHÒNG QUAY TRỞ LẠI */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}

.room-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

.room-card:hover {
  border-color: #0284c7;
  box-shadow: var(--shadow-sm);
}

.room-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.room-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.room-theme-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.room-card-head .count-pill {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.room-tenants-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.room-tenant-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
}

.tenant-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tenant-avatar-mini {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.tenant-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: #0f172a;
}

.tenant-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Bottom Floating Navigation for Mobile - 4 buttons */
.mobile-bottom-dock {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 20px);
  max-width: 460px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 4px;
  z-index: 999;
}

.dock-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.dock-btn .dock-icon {
  font-size: 1.1rem;
}

.dock-btn.active {
  color: #ffffff;
  background: var(--primary-gradient);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
}

/* Toast Notification */
.toast-msg {
  position: fixed;
  bottom: 74px;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  background: #0f172a;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.toast-msg.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 480px) {
  .hero-title-group h1 {
    font-size: 1.35rem;
  }
  .stat-number {
    font-size: 1.1rem;
  }
}
