/* ==================== 1. RESET CHUẨN VỚI FONT APP HIỆN ĐẠI ==================== */
* { 
  box-sizing: border-box !important; 
  margin: 0; 
  padding: 0; 
  font-family: 'Be Vietnam Pro', -apple-system, sans-serif !important; 
}

body.app-body { 
  color: #1e293b; 
  line-height: 1.5; 
  background: #0f172a; 
  -webkit-tap-highlight-color: transparent;
}

/* ƯU TIÊN ẨN TUYỆT ĐỐI */
.hidden-element,
.modal-backdrop.hidden-element,
#modal-chi-tiet.hidden-element,
#modal-chon-ap.hidden-element,
#modal-category.hidden-element,
#modal-cms-item.hidden-element,
#modal-hamlet.hidden-element,
#modal-user.hidden-element,
#login-wrapper.hidden-element,
#admin-app.hidden-element { 
  display: none !important; 
}

/* Khung màn hình di động trung tâm */
.app-container {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.4);
  padding-bottom: 74px;
}

/* Các Màn hình (Views) */
.app-view {
  display: none;
  flex-direction: column;
  flex: 1;
  animation: fadeInView 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.app-view.active {
  display: flex;
}
@keyframes fadeInView {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==================== VIEW 1: TRANG CHỦ CAO CẤP ==================== */
.home-scroll-wrapper {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 74px);
  justify-content: space-between;
}

.home-header {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #fff;
  padding: 16px 16px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 10;
}
.home-brand { display: flex; align-items: center; gap: 10px; }
.brand-logo-circle {
  width: 46px !important;
  height: 46px !important;
  background: #ffffff !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2) !important;
  overflow: hidden !important;
  padding: 2px !important;
  border: 2px solid rgba(255, 255, 255, 0.8) !important;
}
.brand-logo-img { width: 100%; height: 100%; object-fit: contain; }
.sub-brand { font-size: 10.5px; color: #bae6fd; text-transform: uppercase; letter-spacing: 0.6px; font-weight: 700; }
.main-brand { font-size: 19px; font-weight: 900; line-height: 1.2; }
.btn-switch-hamlet { 
  background: #ffffff; color: #0284c7; border: none; 
  padding: 6px 14px; border-radius: 16px; font-size: 12px; 
  font-weight: 800; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: transform 0.15s;
}
.btn-switch-hamlet:active { transform: scale(0.95); }

/* BANNER PHONG CẢNH ĐỒ HỌA VECTOR NẮNG ẤM SẮC NÉT */
.home-hero-art {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 0 0 32px 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 16px 36px;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.2);
}

.vector-scenery-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 1;
}
.scenery-svg {
  width: 100%; height: 100%; display: block;
}

.hero-art-content {
  position: relative;
  z-index: 2;
  margin-top: -8px;
}

.slogan-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 4px;
}

.slogan-headline {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(2, 132, 199, 0.5);
  margin: 0 0 8px;
}

.friendly-mascot-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.92);
  padding: 4px 14px;
  border-radius: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}
.mascot-avatar { font-size: 16px; }
.mascot-text { font-size: 11.5px; font-weight: 800; color: #0284c7; }

/* ==================== 4 NÚT DASHBOARD CAO CẤP ==================== */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 0 16px;
  margin-top: -30px;
  position: relative;
  z-index: 5;
}

.dash-card {
  padding: 20px 12px;
  border-radius: 22px;
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}
.dash-card:active { transform: scale(0.96); }

/* Khay icon màu trắng tinh khiết nổi 3D */
.dash-icon-box {
  width: 54px;
  height: 54px;
  background: #ffffff;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px auto !important;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.8);
}
.svg-dash { width: 28px; height: 28px; }

/* BẢNG MÀU GRADIENT VÀ ĐỔ BÓNG NỊNH MẮT */
.card-blue { 
  background: linear-gradient(145deg, #1d72fe 0%, #0c56d0 100%); 
  box-shadow: 0 10px 22px rgba(29, 114, 254, 0.32);
}
.card-blue .svg-dash { color: #1d72fe; }

.card-orange { 
  background: linear-gradient(145deg, #ff7a18 0%, #ea580c 100%); 
  box-shadow: 0 10px 22px rgba(255, 122, 24, 0.32);
}
.card-orange .svg-dash { color: #ff7a18; }

.card-green { 
  background: linear-gradient(145deg, #00b074 0%, #059669 100%); 
  box-shadow: 0 10px 22px rgba(0, 176, 116, 0.32);
}
.card-green .svg-dash { color: #00b074; }

.card-purple { 
  background: linear-gradient(145deg, #8b5cf6 0%, #6d28d9 100%); 
  box-shadow: 0 10px 22px rgba(139, 92, 246, 0.32);
}
.card-purple .svg-dash { color: #8b5cf6; }

.dash-card h3 { 
  font-size: 15.5px; 
  font-weight: 900; 
  margin-bottom: 4px; 
  text-align: center !important;
  width: 100%;
  white-space: nowrap; /* Không cho rớt dòng */
}

.dash-card p { 
  font-size: 11.5px; 
  opacity: 0.92; 
  line-height: 1.3; 
  font-weight: 500; 
  text-align: center !important;
  width: 100%;
}

/* Khẩu hiệu hoa lá mầm xanh ở đáy trang */
.home-bottom-decor {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 14px 22px;
  margin-top: auto;
}
.bot-leaf { font-size: 20px; opacity: 0.65; }
.home-bottom-msg {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 14px; background: #e0f2fe;
  color: #0369a1; border-radius: 16px; font-size: 12px; font-weight: 800;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.1);
  text-align: center;
}
.heart-pulse { font-size: 15px; animation: pulseHeart 1.4s infinite; }
@keyframes pulseHeart { 0% { transform: scale(1); } 50% { transform: scale(1.3); } 100% { transform: scale(1); } }

/* ==================== VIEW 2: TRA CỨU ==================== */
.app-topbar {
  background: #0284c7;
  color: #fff;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.app-topbar h2 { font-size: 17px; font-weight: 800; }
.btn-back { background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; font-weight: bold; }

.search-bar-wrap {
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.search-bar-wrap input { width: 100%; border: none; outline: none; font-size: 14.5px; font-weight: 500; }
.search-content-list { padding: 14px 16px; flex: 1; overflow-y: auto; }
.section-heading { font-size: 14px; font-weight: 800; color: #475569; margin-bottom: 12px; }

.cat-group { background: #fff; border-radius: 16px; margin-bottom: 12px; overflow: hidden; border: 1.5px solid #cbd5e1; }
.cat-header { padding: 14px 16px; background: #e8edf5; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-size: 15px; font-weight: 800; }
.cat-body { display: none; padding: 10px; background: #f1f5f9; flex-direction: column; gap: 8px; }
.cat-body.show { display: flex; }
.proc-row-card {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 12px; border-radius: 12px; background: #fff; border: 1px solid #cbd5e1;
  cursor: pointer; transition: background 0.15s;
}
.proc-row-card:hover { background: #eff6ff; }
.proc-row-left { display: flex; align-items: center; gap: 10px; }
.proc-icon-circle { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; background: #e0f2fe; }
.proc-row-title strong { display: block; font-size: 14px; color: #0f172a; }
.proc-row-title small { color: #64748b; font-size: 11.5px; }

/* ==================== VIEW: CẨM NANG HƯỚNG DẪN HỒ SƠ ==================== */
.bg-green { background: #059669 !important; }
.bg-orange { background: #ea580c !important; }
.bg-purple { background: #7c3aed !important; }
.bg-blue { background: #0284c7 !important; }
.bg-gradient-orange { background: linear-gradient(135deg, #ea580c 0%, #f97316 100%) !important; }

.guide-content-scroll { padding: 16px; overflow-y: auto; }
.guide-hero-banner {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1.5px solid #a7f3d0;
  border-radius: 20px; padding: 18px 16px; text-align: center; margin-bottom: 16px;
}
.guide-badge { display: inline-block; background: #059669; color: #fff; font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 12px; margin-bottom: 6px; }
.guide-hero-banner h3 { font-size: 17px; font-weight: 900; color: #065f46; margin-bottom: 4px; }
.guide-hero-banner p { font-size: 12.5px; color: #047857; line-height: 1.4; }

.guide-steps-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.guide-step-card { background: #ffffff; border-radius: 16px; padding: 16px; border: 1px solid #cbd5e1; box-shadow: 0 2px 8px rgba(0,0,0,0.03); }
.guide-step-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.g-num { width: 28px; height: 28px; border-radius: 50%; background: #059669; color: #fff; font-weight: 900; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.guide-step-header h4 { font-size: 15px; font-weight: 800; color: #0f172a; }
.guide-step-card p { font-size: 13px; color: #475569; line-height: 1.45; }

/* ==================== VIEW 3: CHI TIẾT THỦ TỤC ==================== */
.detail-container { padding: 14px 16px; overflow-y: auto; }
.detail-hero-box {
  background: #fff; border-radius: 18px; padding: 16px; margin-bottom: 14px;
  display: flex; align-items: center; gap: 14px; border: 1px solid #cbd5e1;
}
.detail-icon-circle { width: 50px; height: 50px; border-radius: 50%; background: #fee2e2; display: flex; align-items: center; justify-content: center; font-size: 26px; }
.detail-meta h3 { font-size: 17px; font-weight: 800; color: #0f172a; }
.detail-meta p { font-size: 12.5px; color: #64748b; }
.tag-popular { background: #dcfce7; color: #166534; font-size: 11px; padding: 2px 6px; border-radius: 6px; font-weight: 700; margin-left: 4px; }

.detail-block { background: #fff; border-radius: 18px; padding: 16px; margin-bottom: 14px; border: 1px solid #cbd5e1; }
.block-title { font-size: 14.5px; font-weight: 800; color: #0f172a; margin-bottom: 12px; }
.checklist-items { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.checklist-items li { display: flex; align-items: flex-start; gap: 8px; }
.checklist-items li::before { content: "✓"; color: #10b981; font-weight: bold; background: #ecfdf5; border-radius: 50%; width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; }

.detail-files-container { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.file-download-btn {
  display: flex; align-items: center; justify-content: space-between;
  background: #ecfdf5; color: #065f46; border: 1.5px solid #10b981;
  padding: 10px 14px; border-radius: 12px; text-decoration: none; font-size: 13.5px; font-weight: 700;
}

.timeline-steps { display: flex; flex-direction: column; gap: 14px; }
.timeline-step { display: flex; align-items: flex-start; gap: 12px; font-size: 13px; }
.step-num { width: 24px; height: 24px; border-radius: 50%; background: #0284c7; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 12px; flex-shrink: 0; }
.timeline-step strong { display: block; font-size: 13.5px; color: #0f172a; }
.timeline-step p { color: #64748b; font-size: 12px; }

.btn-big-action {
  width: 100%; padding: 14px; border-radius: 14px; border: none;
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
  color: #fff; font-size: 15px; font-weight: 800; cursor: pointer;
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.3);
}

/* ==================== VIEW 4: ĐIỀN THÔNG TIN ==================== */
.booking-container { padding: 14px 16px; overflow-y: auto; }
.booking-intro-card {
  background: #eff6ff; border-radius: 16px; padding: 14px;
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
  border: 1px solid #bfdbfe;
}
.intro-icon { font-size: 28px; }
.booking-intro-card strong { display: block; font-size: 13.5px; color: #1e40af; }
.booking-intro-card p { font-size: 12px; color: #475569; }

.booking-form { background: #fff; border-radius: 18px; padding: 16px; border: 1px solid #cbd5e1; }
.booking-form .form-group { margin-bottom: 14px; }
.booking-form label { display: block; font-size: 13px; font-weight: 700; color: #334155; margin-bottom: 6px; }
.booking-form input { width: 100%; height: 44px; padding: 0 14px; border: 1.5px solid #cbd5e1; border-radius: 10px; font-size: 14px; outline: none; }
.booking-form input:focus { border-color: #0284c7; }
.input-readonly { background: #f1f5f9; font-weight: 700; color: #0284c7; }

.choice-two-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice-card { border: 2px solid #cbd5e1; border-radius: 12px; padding: 12px 8px; text-align: center; cursor: pointer; position: relative; background: #fff; }
.choice-card input { position: absolute; opacity: 0; }
.choice-card .c-icon { font-size: 24px; display: block; margin-bottom: 4px; }
.choice-card strong { display: block; font-size: 13.5px; color: #0f172a; margin-bottom: 2px; }
.choice-card small { font-size: 11px; color: #64748b; }
.choice-card.active { border-color: #0284c7; background: #f0f9ff; }
.choice-card.active strong { color: #0284c7; }

.btn-submit-booking {
  width: 100%; padding: 14px; background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #fff; border: none; border-radius: 12px; font-size: 15px; font-weight: 800; cursor: pointer;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3); margin-top: 10px;
}

/* ==================== VIEW 5: XÁC NHẬN THÀNH CÔNG ==================== */
.success-container { padding: 40px 20px; text-align: center; }
.success-icon-wrap { font-size: 56px; margin-bottom: 10px; }
.success-container h2 { font-size: 22px; font-weight: 900; color: #059669; margin-bottom: 6px; }
.success-desc { font-size: 13.5px; color: #64748b; margin-bottom: 24px; line-height: 1.4; }
.success-info-card {
  background: #fff; border-radius: 18px; padding: 18px; text-align: left;
  border: 1px solid #cbd5e1; margin-bottom: 24px; display: flex; flex-direction: column; gap: 10px;
}
.info-row { display: flex; justify-content: space-between; font-size: 13.5px; border-bottom: 1px dashed #f1f5f9; padding-bottom: 8px; }
.info-row span { color: #64748b; }
.info-row strong { color: #0f172a; }

/* ==================== VIEW 6: LIÊN HỆ ==================== */
.contact-container { padding: 16px; overflow-y: auto; }
.contact-hero { text-align: center; margin-bottom: 20px; }
.contact-agent-avatar { font-size: 48px; margin-bottom: 6px; }
.contact-hero h3 { font-size: 17px; font-weight: 800; color: #0f172a; margin-bottom: 4px; }
.contact-hero p { font-size: 13px; color: #64748b; }

.contact-actions-list { display: flex; flex-direction: column; gap: 12px; }
.contact-item-card {
  background: #fff; border-radius: 16px; padding: 16px; display: flex;
  align-items: center; gap: 14px; text-decoration: none; color: inherit;
  border: 1px solid #cbd5e1; box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}
.card-call { background: #ecfdf5; border-color: #10b981; }
.c-item-icon { font-size: 26px; }
.c-item-info { flex: 1; }
.c-item-info strong { display: block; font-size: 14px; color: #0f172a; margin-bottom: 2px; }
.c-item-info p { font-size: 12.5px; color: #64748b; margin: 0; line-height: 1.3; }
.card-call .c-item-info p { color: #059669; font-weight: 700; }
.c-arrow { font-size: 14px; color: #94a3b8; }

/* ==================== BOTTOM NAVIGATION BAR KÍNH MỜ ==================== */
.app-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: 68px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
}
.nav-item {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  flex: 1;
}
.svg-nav { width: 22px; height: 22px; transition: transform 0.2s, color 0.2s; }
.nav-item.active { color: #0284c7; }
.nav-item.active .svg-nav { color: #0284c7; transform: translateY(-2px); }

/* ==================== MODAL CHỌN ẤP ==================== */
.modal-backdrop { 
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; 
  background: rgba(15, 23, 42, 0.75); display: flex; align-items: center; 
  justify-content: center; z-index: 9999; padding: 16px; 
}
.select-ap-box { 
  background: #fff; width: 100%; max-width: 380px; 
  border-radius: 20px; padding: 26px 20px; text-align: center; 
}
.welcome-icon { font-size: 40px; margin-bottom: 6px; }
.select-ap-box h2 { font-size: 20px; font-weight: 900; margin-bottom: 4px; }
.select-ap-box p { font-size: 13px; color: #64748b; }
.ap-grid-select { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.btn-ap-choice { 
  display: flex; align-items: center; justify-content: center; gap: 8px; 
  background: #e0f2fe; border: 2px solid #0284c7; padding: 12px; 
  border-radius: 12px; font-size: 15px; font-weight: 800; color: #0369a1; cursor: pointer; 
}

/* ==================== CSS ADMIN PORTAL GIỮ NGUYÊN ==================== */
.admin-page { background-color: #f1f5f9; min-height: 100vh; }
.auth-loading { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #0f172a; display: flex; flex-direction: column; justify-content: center; align-items: center; z-index: 9999; color: #fff; font-size: 14px; }
.spinner { width: 36px; height: 36px; border: 4px solid rgba(255,255,255,0.2); border-top-color: #3b82f6; border-radius: 50%; animation: spin 0.6s linear infinite; margin-bottom: 12px; }
@keyframes spin { to { transform: rotate(360deg); } }

.login-wrapper { display: flex !important; justify-content: center !important; align-items: center !important; min-height: 100vh !important; padding: 20px !important; background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%) !important; }
.login-box { background: #ffffff !important; width: 100% !important; max-width: 410px !important; padding: 35px 28px !important; border-radius: 20px !important; box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3) !important; text-align: center !important; }
.login-header { text-align: center !important; margin-bottom: 25px !important; }
.badge-seal { display: inline-block !important; background: #fee2e2 !important; color: #b91c1c !important; font-size: 11.5px !important; font-weight: 700 !important; padding: 5px 12px !important; border-radius: 20px !important; margin-bottom: 10px !important; }
.login-header h2 { font-size: 22px !important; color: #0f172a !important; margin-bottom: 6px !important; font-weight: 800 !important; }
.login-header p { font-size: 13.5px !important; color: #64748b !important; }

#form-login { display: flex !important; flex-direction: column !important; gap: 16px !important; width: 100% !important; }
#form-login .form-group { display: flex !important; flex-direction: column !important; align-items: flex-start !important; width: 100% !important; margin: 0 !important; }
#form-login .form-group label { display: block !important; width: 100% !important; font-size: 13.5px !important; font-weight: 700 !important; color: #334155 !important; margin-bottom: 6px !important; text-align: left !important; }
#form-login .form-group input { display: block !important; width: 100% !important; height: 46px !important; padding: 0 14px !important; border: 1.5px solid #cbd5e1 !important; border-radius: 10px !important; font-size: 14.5px !important; background: #f8fafc !important; outline: none !important; }
#form-login .btn-primary-admin { width: 100% !important; height: 48px !important; margin-top: 6px !important; font-size: 15px !important; font-weight: 800 !important; border-radius: 10px !important; background: #2563eb !important; color: #fff !important; border: none !important; cursor: pointer !important; }

.admin-topbar { background: #fff; border-bottom: 1px solid #e2e8f0; padding: 12px 25px; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 50; }
.topbar-brand { display: flex; align-items: center; gap: 12px; }
.topbar-actions { display: flex; gap: 10px; }
.btn-topbar { padding: 8px 14px; border-radius: 6px; font-size: 13px; font-weight: 600; border: none; cursor: pointer; }
.btn-alert { background: #fef3c7; color: #b45309; }
.btn-danger { background: #fee2e2; color: #b91c1c; }

.admin-nav-tabs { display: flex; gap: 10px; max-width: 1280px; margin: 15px auto 0; padding: 0 20px; border-bottom: 2px solid #e2e8f0; }
.nav-tab-btn { padding: 12px 18px; border: none; background: none; font-size: 14px; font-weight: 700; color: #64748b; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.nav-tab-btn.active { color: #2563eb; border-bottom-color: #2563eb; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }
.admin-main-content { max-width: 1280px; margin: 25px auto; padding: 0 20px; }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 15px; margin-bottom: 25px; }
.kpi-card { background: #fff; padding: 20px; border-radius: 12px; display: flex; justify-content: space-between; align-items: center; border-left: 5px solid #cbd5e1; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.card-blue { border-left-color: #3b82f6; }
.card-purple { border-left-color: #8b5cf6; }
.card-orange { border-left-color: #f59e0b; }
.card-green { border-left-color: #10b981; }
.kpi-info span { font-size: 11px; font-weight: 700; color: #64748b; }
.kpi-info h2 { font-size: 28px; font-weight: 800; color: #0f172a; margin-top: 5px; }
.kpi-icon { font-size: 30px; opacity: 0.8; }

.panel-section { background: #fff; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); overflow: hidden; }
.panel-header { padding: 20px 20px 15px; border-bottom: 1px solid #e2e8f0; }
.status-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 15px; }
.tab-btn { background: #f1f5f9; border: 1px solid #e2e8f0; padding: 8px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; color: #475569; cursor: pointer; }
.tab-btn.active { background: #1e40af; color: #fff; border-color: #1e40af; }
.filter-toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.search-input-wrap { flex: 2; min-width: 250px; }
.search-input-wrap input, .filter-select, .date-filter-wrap input { padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px; background: #fff; }
.date-filter-wrap { display: flex; align-items: center; gap: 4px; }
.date-filter-wrap button { background: #e2e8f0; border: none; padding: 10px 12px; border-radius: 8px; cursor: pointer; }

.table-responsive { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data-table th { background: #f8fafc; padding: 12px 16px; font-weight: 700; color: #475569; border-bottom: 1px solid #e2e8f0; text-align: left; }
.data-table td { padding: 14px 16px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.badge-home { background: #dbeafe; color: #1e40af; font-size: 11px; padding: 4px 8px; border-radius: 6px; font-weight: 700; }
.badge-office { background: #fef3c7; color: #92400e; font-size: 11px; padding: 4px 8px; border-radius: 6px; font-weight: 700; }
.badge-hamlet { background: #e0e7ff; color: #3730a3; font-size: 11px; padding: 4px 8px; border-radius: 6px; font-weight: 700; }
.phone-link { color: #2563eb; text-decoration: none; font-weight: 600; font-size: 13px; }
.select-status-table { padding: 6px 10px; border-radius: 6px; font-weight: 600; font-size: 12.5px; border: 1px solid #cbd5e1; background: #fff; cursor: pointer; }
.btn-delete { background: none; border: none; font-size: 16px; cursor: pointer; padding: 4px; border-radius: 4px; opacity: 0.6; }
.btn-delete:hover { opacity: 1; background: #fee2e2; }

.cms-toolbar { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 15px; margin-bottom: 20px; }
.cms-toolbar-left { flex: 1; min-width: 300px; }
.cms-toolbar-left h3 { font-size: 17px; color: #0f172a; margin: 0; white-space: nowrap; }
.cms-toolbar-right { display: flex; gap: 8px; flex-wrap: wrap; }
.cms-search-box input { width: 100%; max-width: 450px; padding: 10px 14px; margin-top: 8px; border: 1.5px solid #cbd5e1; border-radius: 8px; font-size: 13.5px; outline: none; }
.btn-add-primary { width: auto; display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; background: #2563eb; color: #fff; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }

.cms-cat-box { background: white; border-radius: 10px; padding: 15px; margin-bottom: 15px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.cms-cat-header { cursor: pointer; user-select: none; background: #f8fafc; padding: 12px 16px; border-radius: 8px; display: flex; justify-content: space-between; align-items: center; }
.cat-title-left { display: flex; align-items: center; gap: 10px; }
.chevron-arrow { font-size: 12px; color: #64748b; width: 14px; }
.stt-main { font-size: 15px; font-weight: 800; color: #1e40af; background: #dbeafe; padding: 2px 8px; border-radius: 6px; }
.stt-sub { font-size: 12px; font-weight: 700; color: #475569; background: #e2e8f0; padding: 3px 6px; border-radius: 4px; height: fit-content; margin-top: 2px; }
.badge-count { font-size: 12px; color: #64748b; font-weight: normal; }

.hide-subs { display: none !important; }
.show-subs { display: flex !important; flex-direction: column; gap: 8px; margin-top: 10px; }
.cms-sub-item { display: flex; justify-content: space-between; align-items: center; padding: 10px; background: #f8fafc; border-radius: 6px; }
.sub-info { display: flex; align-items: flex-start; gap: 10px; flex: 1; padding-right: 15px; }

.user-management-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.simple-list { list-style: none; padding: 0; }
.list-item-row { display: flex; justify-content: space-between; align-items: center; padding: 10px; border-bottom: 1px solid #f1f5f9; font-size: 13.5px; }
.btn-group-actions { display: flex; gap: 6px; align-items: center; }
.btn-sm { padding: 5px 10px; font-size: 12px; border-radius: 6px; border: none; cursor: pointer; font-weight: 600; }
.btn-primary { background: #2563eb; color: white; }
.btn-warning { background: #f59e0b; color: white; }
.btn-danger { background: #ef4444; color: white; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.p-4 { padding: 20px; }
.mb-3 { margin-bottom: 12px; }
.text-center { text-align: center; }
.text-muted { color: #94a3b8; }
.py-4 { padding: 24px 0; }
.w-100 { width: 100% !important; }

.icon-picker-grid { display: flex; flex-wrap: wrap; gap: 6px; background: #f8fafc; padding: 10px; border-radius: 8px; border: 1px dashed #cbd5e1; }
.icon-opt { background: #fff; border: 1px solid #e2e8f0; padding: 5px 10px; border-radius: 6px; font-size: 13px; cursor: pointer; user-select: none; }

.modal-box .form-group { display: flex !important; flex-direction: column !important; align-items: stretch !important; margin-bottom: 15px !important; width: 100% !important; }
.modal-box .form-group label { display: block !important; width: 100% !important; font-size: 13.5px !important; font-weight: 700 !important; color: #334155 !important; margin-bottom: 6px !important; text-align: left !important; }
.modal-box input[type="text"], .modal-box input[type="email"], .modal-box input[type="password"], .modal-box input[type="url"], .modal-box input[type="tel"], .modal-box select { display: block !important; width: 100% !important; height: 44px !important; padding: 0 14px !important; border: 1.5px solid #cbd5e1 !important; border-radius: 10px !important; font-size: 14.5px !important; background: #f8fafc !important; outline: none !important; }
.modal-box textarea { display: block !important; width: 100% !important; padding: 12px 14px !important; border: 1.5px solid #cbd5e1 !important; border-radius: 10px !important; font-size: 14px !important; background: #f8fafc !important; outline: none !important; line-height: 1.5 !important; }

.cms-files-list { display: flex !important; flex-direction: column !important; gap: 8px !important; margin: 8px 0 !important; width: 100% !important; }
.file-input-row { display: flex !important; gap: 8px !important; align-items: center !important; width: 100% !important; }
.file-input-row .file-name-inp { flex: 1.2 !important; height: 42px !important; }
.file-input-row .file-link-inp { flex: 1.6 !important; height: 42px !important; }
.btn-del-file { width: 42px !important; height: 42px !important; background: #fee2e2 !important; color: #dc2626 !important; border: 1px solid #fecaca !important; border-radius: 8px !important; cursor: pointer !important; display: flex !important; align-items: center !important; justify-content: center !important; font-size: 16px !important; flex-shrink: 0 !important; }

.modal-actions { display: flex !important; justify-content: center !important; align-items: center !important; gap: 16px !important; margin-top: 25px !important; padding-top: 15px !important; border-top: 1px solid #f1f5f9 !important; width: 100% !important; }
.modal-actions button, .modal-actions .btn-secondary, .modal-actions .btn-primary-admin { width: auto !important; min-width: 125px !important; height: 44px !important; margin: 0 !important; padding: 0 24px !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; font-size: 14.5px !important; font-weight: 700 !important; border-radius: 10px !important; cursor: pointer !important; }
.modal-actions .btn-secondary { background: #64748b !important; color: #ffffff !important; border: none !important; }
.modal-actions .btn-primary-admin { background: #2563eb !important; color: #ffffff !important; border: none !important; }

.toast-container { position: fixed; bottom: 25px; right: 25px; z-index: 99999; display: flex; flex-direction: column; gap: 10px; }
.toast-item { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-radius: 10px; color: #fff; font-size: 14px; font-weight: 500; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards; min-width: 280px; max-width: 420px; }
.toast-item.hide { opacity: 0; transform: translateX(100%); }
.toast-success { background: #059669; border-left: 6px solid #34d399; }
.toast-error { background: #dc2626; border-left: 6px solid #f87171; }
.toast-icon { font-size: 18px; }

@keyframes slideInRight { from { opacity: 0; transform: translateX(100%); } to { opacity: 1; transform: translateX(0); } }

/* ==================== TỐI ƯU GIAO DIỆN ADMIN CHO ĐIỆN THOẠI (< 768px) ==================== */
@media (max-width: 768px) {
  .admin-topbar { padding: 12px 14px !important; flex-direction: column !important; align-items: stretch !important; gap: 10px !important; }
  .topbar-brand { justify-content: flex-start !important; }
  .topbar-brand h3 { font-size: 15px !important; }
  .topbar-brand small { font-size: 11px !important; }
  .topbar-actions { display: flex !important; justify-content: flex-end !important; gap: 8px !important; }
  .btn-topbar { padding: 6px 10px !important; font-size: 12px !important; }

  .admin-nav-tabs { padding: 0 12px !important; overflow-x: auto !important; white-space: nowrap !important; gap: 6px !important; }
  .nav-tab-btn { padding: 10px 14px !important; font-size: 13px !important; }

  .admin-main-content { padding: 0 12px !important; margin: 15px auto !important; }
  .kpi-grid { grid-template-columns: 1fr 1fr !important; gap: 10px !important; margin-bottom: 16px !important; }
  .kpi-card { padding: 14px 12px !important; border-radius: 12px !important; }
  .kpi-info span { font-size: 10px !important; }
  .kpi-info h2 { font-size: 22px !important; }
  .kpi-icon { font-size: 24px !important; }

  .panel-header { padding: 14px 12px !important; }
  .status-tabs { overflow-x: auto !important; white-space: nowrap !important; flex-wrap: nowrap !important; padding-bottom: 6px !important; }
  .tab-btn { padding: 6px 12px !important; font-size: 12px !important; }
  .filter-toolbar { flex-direction: column !important; align-items: stretch !important; gap: 8px !important; }
  .search-input-wrap, .filter-select, .date-filter-wrap { width: 100% !important; min-width: unset !important; }
  .date-filter-wrap { display: flex !important; }
  .date-filter-wrap input { flex: 1 !important; }

  /* BẢNG CHUYỂN THÀNH THẺ THÔNG MINH */
  .table-responsive { overflow: visible !important; padding: 0 10px 10px !important; }
  .data-table, .data-table tbody { display: block !important; width: 100% !important; border: none !important; }
  .data-table thead { display: none !important; }

  .data-table tbody tr {
    display: flex !important; flex-direction: column !important;
    background: #ffffff !important; border: 1.5px solid #cbd5e1 !important;
    border-radius: 16px !important; padding: 14px !important;
    margin-bottom: 12px !important; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    gap: 8px !important;
  }

  .data-table td { display: block !important; width: 100% !important; padding: 0 !important; border: none !important; text-align: left !important; white-space: normal !important; }
  .data-table td:nth-child(1) strong { font-size: 15px !important; color: #1e40af !important; display: flex !important; align-items: center !important; gap: 6px !important; }
  .data-table td:nth-child(1) strong::before { content: "⏰ "; font-size: 14px; }
  .data-table td:nth-child(2) { display: flex !important; gap: 6px !important; }
  .data-table td:nth-child(3) { background: #eff6ff !important; border: 1px solid #bfdbfe !important; border-radius: 10px !important; padding: 8px 12px !important; }
  .data-table td:nth-child(3) strong { font-size: 14.5px !important; color: #0f172a !important; }
  .data-table td:nth-child(3) .phone-link { display: inline-flex !important; align-items: center !important; gap: 4px !important; color: #1d4ed8 !important; font-size: 14px !important; font-weight: 700 !important; margin-top: 3px !important; }
  .data-table td:nth-child(4) strong { font-size: 14px !important; color: #0f172a !important; display: block !important; margin-bottom: 2px !important; }
  .data-table td:nth-child(5) { font-size: 13.5px !important; color: #334155 !important; line-height: 1.4 !important; }
  .data-table td:nth-child(5) .badge { margin-bottom: 4px !important; }
  .data-table td:nth-child(6) { display: flex !important; justify-content: space-between !important; align-items: center !important; gap: 10px !important; margin-top: 6px !important; padding-top: 10px !important; border-top: 1px dashed #cbd5e1 !important; }
  .select-status-table { flex: 1 !important; height: 42px !important; font-size: 13.5px !important; border-radius: 8px !important; }
  .btn-delete { width: 42px !important; height: 42px !important; background: #fee2e2 !important; border: 1px solid #fecaca !important; border-radius: 8px !important; display: flex !important; align-items: center !important; justify-content: center !important; opacity: 1 !important; }

  .user-management-grid { grid-template-columns: 1fr !important; gap: 14px !important; }
  .cms-toolbar { flex-direction: column !important; align-items: stretch !important; gap: 10px !important; }
  .cms-toolbar-right { display: flex !important; justify-content: flex-end !important; }
}

/* ==================== NÂNG CẤP FONT NUNITO BO TRÒN THÂN THIỆN ==================== */
h1, h2, h3, h4,
.main-brand, 
.slogan-headline, 
.slogan-badge,
.dash-card h3, 
.modal-proc-title,
.btn-submit-booking, 
.btn-big-action,
.footer-title {
  font-family: 'Nunito', 'Be Vietnam Pro', sans-serif !important;
  letter-spacing: -0.2px; /* Thu hẹp nhẹ khoảng cách chữ chuẩn giao diện Apple */
}

/* Chữ "VÌ NGƯỜI DÂN" bo tròn mềm mại, không bị thô ráp */
.slogan-headline {
  font-weight: 900 !important;
  font-size: 29px !important;
}

/* Tiêu đề 4 thẻ chức năng nổi bật, tròn trịa */
.dash-card h3 {
  font-weight: 800 !important;
  font-size: 16px !important;
}

/* Các nhãn mô tả nhẹ nhàng, thanh thoát */
.dash-card p,
.footer-slogan-compact,
.f-val,
.nav-item span {
  font-weight: 500 !important;
  letter-spacing: 0.1px;
}

/* ==================== SỬA LỖI MODAL ADMIN BỊ TRONG SUỐT ==================== */
.modal-box {
  background: #ffffff !important; /* BẮT BUỘC NỀN TRẮNG TINH */
  width: 100% !important;
  max-width: 520px !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
  border-radius: 20px !important;
  padding: 26px 22px !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45) !important;
  position: relative !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
  z-index: 10000 !important;
}

/* Đảm bảo chữ trong modal tương phản rõ ràng */
.modal-box h2, .modal-box h3 {
  color: #0f172a !important;
  font-weight: 800 !important;
  margin-bottom: 16px !important;
  text-align: center !important;
}

.modal-box .form-group label {
  color: #334155 !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  margin-bottom: 6px !important;
  display: block !important;
  text-align: left !important;
}

.modal-box input, 
.modal-box select, 
.modal-box textarea {
  background: #f8fafc !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
  border-radius: 10px !important;
}

.modal-box input:focus, 
.modal-box select:focus, 
.modal-box textarea:focus {
  background: #ffffff !important;
  border-color: #2563eb !important;
}