/* ==========================================================================
   SOLAR ĐỒNG XANH - PREMIUM V2 CSS
   Thiết kế chuẩn xác 100% theo Mẫu Ảnh 1 (Desktop) và Hình 2 (Mobile Screens)
   Font chuẩn độc quyền: Be Vietnam Pro (400, 500, 600, 700, 800)
   Tone màu: Deep Forest Teal (#082e28, #0a3434), Emerald Green (#2ec486, #10b981), Warm Gold (#f5c256, #f3bf53)
   ========================================================================== */

@font-face {
  font-family: "Be Vietnam Pro";
  src: url("/assets/fonts/be-vietnam-pro-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Be Vietnam Pro";
  src: url("/assets/fonts/be-vietnam-pro-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Be Vietnam Pro";
  src: url("/assets/fonts/be-vietnam-pro-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Be Vietnam Pro";
  src: url("/assets/fonts/be-vietnam-pro-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Be Vietnam Pro";
  src: url("/assets/fonts/be-vietnam-pro-800.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

html, body, :root {
  font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  color: #13332b;
  background-color: #ffffff;
}

button, input, select, textarea, h1, h2, h3, h4, h5, h6, p, a, span, strong, em, small {
  font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ================= HỆ THỐNG BIỂU TƯỢNG VECTOR SVG ================= */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  line-height: 1;
}
.svg-ico {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

:root {
  --color-teal-dark: #072621;
  --color-teal-deep: #0a3434;
  --color-teal-surface: #0e443c;
  --color-teal-light: #166554;
  --color-emerald: #2ec486;
  --color-emerald-dark: #15803d;
  --color-gold: #f5c256;
  --color-gold-hover: #ffcf6b;
  --color-gold-dark: #b48518;
  --color-bg-page: #ffffff;
  --color-bg-tint: #f5f8f5;
  --color-bg-card: #ffffff;
  --color-border: #e2e8e3;
  --color-text-main: #13332b;
  --color-text-muted: #536d64;
  --color-text-light: #8ba298;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --shadow-sm: 0 4px 14px rgba(10, 52, 52, 0.06);
  --shadow-md: 0 10px 28px rgba(10, 52, 52, 0.09);
  --shadow-lg: 0 20px 48px rgba(10, 52, 52, 0.14);
  --max-width: 1240px;
}

/* ================= TOPBAR (Chuẩn Ảnh 1) ================= */
.topbar {
  background: #082420;
  color: #c9dbd3;
  font-size: 11.5px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 36px;
  padding-block: 4px;
}
.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.topbar-sep {
  opacity: 0.35;
  font-size: 10px;
}
.topbar a:hover {
  color: var(--color-gold);
}

/* ================= HEADER & NAV (Chuẩn Ảnh 1) ================= */
.site-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(10, 52, 52, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
.header-main {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.brand-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.05;
}
.brand-main {
  font-size: 20px;
  font-weight: 850;
  color: #0b382d;
  letter-spacing: 0.5px;
  display: block;
}
.brand-sub {
  font-size: 13.5px;
  font-weight: 800;
  color: #128963;
  letter-spacing: 0.8px;
  display: block;
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 28px);
  height: 100%;
}
.nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}
.nav-link {
  font-size: 15.5px !important;
  font-weight: 750 !important;
  color: #0f372d !important;
  letter-spacing: -0.015em;
  padding: 10px 6px;
  transition: color 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}
.nav-chevron {
  font-size: 11px;
  opacity: 0.7;
  transition: transform 0.2s ease;
}
.nav-item:hover .nav-chevron {
  transform: rotate(180deg);
}
.nav-item.current .nav-link,
.nav-link:hover {
  color: #0c7a57 !important;
}
.nav-item.current::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-gold);
  border-radius: 3px 3px 0 0;
}
.dropdown {
  position: absolute;
  top: calc(100% - 2px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 260px;
  background: #ffffff;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 16px 38px rgba(10, 45, 38, 0.14);
  border: 1px solid #e3eae5;
  display: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.nav-item:hover .dropdown {
  display: block;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.dropdown a {
  display: block;
  padding: 10px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: #24463d;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.dropdown a:hover {
  background: #eef6f1;
  color: #0b684b;
}

/* Header Buttons */
.header-cta {
  border-radius: var(--radius-pill);
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 700;
  background: var(--color-gold);
  color: #173830;
  box-shadow: 0 4px 16px rgba(245, 194, 86, 0.35);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.header-cta:hover {
  background: var(--color-gold-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 194, 86, 0.45);
}
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.menu-toggle .bar {
  width: 24px;
  height: 2.5px;
  background: #0f463a;
  border-radius: 2px;
  transition: transform 0.2s ease;
}

/* ================= HERO MASTER (Chuẩn Ảnh 1) ================= */
.hero-master {
  position: relative;
  min-height: 590px;
  background-color: #072621;
  overflow: hidden;
  color: #ffffff;
  display: flex;
  align-items: center;
}
.hero-bg-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right;
  z-index: 1;
}
/* Khối nền xanh ngọc bích chiếm 47% chiều rộng, dải màu Luminous Emerald sáng & sang trọng, mờ dần sang ảnh */
.hero-wavy-shape {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(26px 0 38px rgba(3, 46, 36, 0.75));
}
.hero-dark-overlay {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 50%;
  background: linear-gradient(90deg, #04382c 0%, #074e3c 28%, rgba(12, 102, 79, 0.92) 38%, rgba(18, 137, 105, 0.5) 44%, rgba(26, 160, 124, 0) 50%);
  z-index: 1;
  pointer-events: none;
}
.sub-hero {
  min-height: 480px;
}
.hero-container {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 47% 53%;
  align-items: center;
  min-height: inherit;
  padding-block: 48px;
  gap: 24px;
}
.hero-content-col {
  max-width: 485px;
  width: 100%;
  position: relative;
  z-index: 4;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a3f0c4;
  margin-bottom: 12px;
}
.hero-title {
  font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #ffffff;
  margin: 0 0 16px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  text-shadow: 0 3px 22px rgba(0, 24, 18, 0.75);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.hero-title-line {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
/* Kích thước chữ độc lập từng dòng: Tăng kích thước tối đa phù hợp, sang trọng, quyền uy và an toàn trong 47% */
.hero-title-line.hero-line-xl {
  font-size: clamp(37px, 4.2vw, 52px);
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-shadow: 0 3px 24px rgba(0, 24, 18, 0.8);
}
.hero-title-line.hero-line-lg {
  font-size: clamp(30px, 3.5vw, 42px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.025em;
  text-shadow: 0 3px 20px rgba(0, 24, 18, 0.75);
}
.hero-title-line.hero-line-md {
  font-size: clamp(25px, 2.9vw, 34px);
  font-weight: 750;
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 16px rgba(0, 24, 18, 0.7);
}
.hero-title-line.hero-line-sm {
  font-size: clamp(21px, 2.4vw, 28px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 14px rgba(0, 24, 18, 0.7);
}
.highlight-emerald {
  color: var(--color-emerald);
  display: inline-block;
}
.hero-desc {
  font-size: 14px;
  line-height: 1.65;
  color: #d8eae1;
  max-width: 390px;
  margin-bottom: 24px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.btn-hero-gold {
  background: var(--color-gold);
  color: #123e35;
  font-weight: 700;
  border-radius: var(--radius-pill);
  padding: 13px 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(245, 194, 86, 0.35);
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn-hero-gold:hover {
  background: var(--color-gold-hover);
  transform: translateY(-2px);
}
.btn-hero-translucent {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-weight: 600;
  border-radius: var(--radius-pill);
  padding: 13px 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.btn-hero-translucent:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
}

/* 3 Chip Phân loại bên dưới Hero (Chuẩn Ảnh 1) */
.hero-chips-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}
.hero-chip:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Floating Card góc dưới bên phải trên nền ảnh (Chuẩn Ảnh 1) */
.hero-visual-col {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  height: 100%;
  min-height: 380px;
}
.hero-floating-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  color: #123e34;
  padding: 8px 24px 8px 10px;
  border-radius: var(--radius-pill);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  margin-top: auto;
}
.hero-floating-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
}
.hero-floating-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0e6e4f;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.hero-floating-text {
  font-size: 13px;
  font-weight: 500;
  color: #436458;
  line-height: 1.35;
}
.hero-floating-text strong {
  color: #11382e;
  font-size: 13px;
  font-weight: 700;
  display: block;
}
.hero-floating-arrow {
  font-size: 18px;
  font-weight: 700;
  color: #11382e;
  margin-left: 4px;
}

/* Mobile Hero Elements hidden on Desktop */
.mobile-hero-benefits,
.mobile-hero-actions,
.mobile-hero-tabs,
.mobile-calc-wizard,
.mobile-sticky-bottom {
  display: none;
}

/* ================= 4 FEATURE PROCESS STRIP (Chuẩn Ảnh 1) ================= */
.home-process-wrap {
  background: #ffffff;
  border-bottom: 1px solid #e5ede7;
  box-shadow: 0 6px 18px rgba(10, 45, 38, 0.03);
}
.home-process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.home-process-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 22px;
  border-right: 1px solid #e7efe9;
  text-decoration: none;
  transition: background 0.2s ease;
}
.home-process-item:last-child {
  border-right: none;
}
.home-process-item:hover {
  background: #f7faf8;
}
.home-process-icon {
  width: 36px;
  height: 36px;
  color: #138260;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.home-process-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #123c32;
  margin-bottom: 4px;
}
.home-process-text small {
  display: block;
  font-size: 11.5px;
  color: #648175;
  line-height: 1.5;
}

/* ================= GIẢI PHÁP ĐIỆN MẶT TRỜI (Chuẩn Ảnh 1) ================= */
.home-solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 20px;
}
.sol-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid #e3eae4;
  box-shadow: 0 10px 30px rgba(10, 48, 40, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.sol-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(10, 48, 40, 0.12);
}
.sol-card-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e6eee8;
}
.sol-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.sol-card:hover .sol-card-img {
  transform: scale(1.05);
}
.sol-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.sol-card-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: #0e3b30;
  margin: 0 0 10px;
}
.sol-card-body p {
  font-size: 13px;
  line-height: 1.7;
  color: #557267;
  margin-bottom: 18px;
  flex: 1;
}
.sol-card-link {
  font-size: 13px;
  font-weight: 700;
  color: #0c7a57;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.15s ease;
}
.sol-card:hover .sol-card-link {
  gap: 10px;
}

/* ================= CÔNG CỤ ƯỚC TÍNH (Chuẩn Ảnh 1) ================= */
.home-calc-section {
  background: linear-gradient(135deg, #eaf4ef 0%, #f7faf7 100%);
  padding-block: 85px;
}
.home-calc-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
}
.calc-desktop-side h2 {
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 800;
  color: #0e3b32;
  margin: 10px 0 14px;
}
.calc-desktop-side > p {
  font-size: 14px;
  line-height: 1.75;
  color: #557368;
  max-width: 460px;
  margin-bottom: 24px;
}
.calc-field-group {
  margin-bottom: 22px;
}
.calc-field-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #174236;
  margin-bottom: 8px;
}
.calc-stepper {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #cedcd4;
  border-radius: 10px;
  padding: 4px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}
.stepper-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: #f1f7f3;
  color: #11533e;
  font-size: 20px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}
.stepper-btn:hover {
  background: #e2efe6;
}
.calc-stepper input {
  flex: 1;
  border: none;
  background: transparent;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  color: #0e3b32;
  padding: 8px;
  outline: none;
}
.stepper-unit {
  padding-right: 16px;
  font-size: 12px;
  font-weight: 700;
  color: #728c81;
}
.calc-slider-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
#roof-val-badge {
  background: #0f684c;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}
.calc-field-group input[type="range"] {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #cce3d6;
  accent-color: #0e7d5a;
  outline: none;
  cursor: pointer;
}
.slider-milestones {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: #728e83;
  margin-top: 6px;
}
.btn-calc-submit {
  width: 100%;
  border-radius: var(--radius-pill);
  font-size: 14px;
  padding: 14px;
  margin-top: 8px;
}
.calc-disclaimer {
  font-size: 11px;
  color: #6a887b;
  margin-top: 12px;
}

/* Card Kết quả ước tính (Chuẩn Ảnh 1) */
.calc-results-card {
  background: #ffffff;
  border: 1px solid #dbe6df;
  border-radius: var(--radius-lg);
  padding: 34px 32px;
  box-shadow: 0 16px 42px rgba(10, 48, 40, 0.08);
}
.calc-results-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: #0e3930;
  margin: 0 0 20px;
}
.calc-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.metric-box {
  background: #f1f8f4;
  border-radius: 12px;
  padding: 20px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid #e1efe6;
}
.metric-icon {
  font-size: 26px;
  line-height: 1;
}
.metric-copy small {
  display: block;
  font-size: 11px;
  color: #5a7b6f;
  margin-bottom: 6px;
}
.metric-copy strong {
  display: block;
  font-size: 19px;
  font-weight: 800;
  color: #0b684b;
  letter-spacing: -0.02em;
}
.metric-copy strong .unit {
  font-size: 12px;
  font-weight: 600;
}
.metric-copy em {
  display: block;
  font-style: normal;
  font-size: 10.5px;
  color: #7e9c90;
  margin-top: 3px;
}
.calc-results-cta {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid #e7efe9;
}

/* ================= DỰ ÁN TIÊU BIỂU (Chuẩn Ảnh 1) ================= */
.home-featured-section {
  padding-block: 40px;
}
.home-featured-card {
  background: linear-gradient(115deg, #09342e 0%, #0a4f42 100%);
  border-radius: var(--radius-lg);
  color: #ffffff;
  padding: 48px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
  box-shadow: 0 20px 50px rgba(7, 40, 35, 0.18);
}
.home-featured-copy h2 {
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 800;
  color: #ffffff;
  margin: 8px 0 6px;
}
.home-featured-copy h3 {
  font-size: 18px;
  color: var(--color-emerald);
  margin-bottom: 14px;
}
.home-featured-copy p {
  font-size: 14px;
  line-height: 1.75;
  color: #d1e5db;
  margin-bottom: 24px;
  max-width: 440px;
}
.home-featured-media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
}
.featured-proj-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}
.featured-proj-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 10px 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #123e34;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.badge-pin {
  font-size: 16px;
}
.badge-text strong {
  display: block;
  font-size: 13px;
  color: #0b4539;
}
.badge-text small {
  display: block;
  font-size: 11px;
  color: #55756a;
}
.featured-slider-controls {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(10, 45, 38, 0.7);
  backdrop-filter: blur(6px);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}
.ctrl-arrow {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
}
.ctrl-dots {
  display: flex;
  gap: 5px;
}
.ctrl-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}
.ctrl-dots .dot.active {
  background: var(--color-gold);
  width: 14px;
  border-radius: 3px;
}

/* ================= SECTION HEADINGS (1 DÒNG DUY NHẤT TRÊN DESKTOP) ================= */
.section-head {
  max-width: 1050px !important;
  margin-bottom: 36px;
}
.section-head.center {
  margin-inline: auto !important;
  text-align: center;
}
.between {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}
.between .section-head {
  max-width: 100% !important;
  flex: 1 1 auto;
  margin-bottom: 24px;
}

@media (min-width: 769px) {
  .section-head h2,
  .section-header-row h2,
  .editorial-head h2 {
    font-size: clamp(1.22rem, 1.8vw, 1.62rem) !important;
    line-height: 1.3 !important;
    letter-spacing: -0.02em !important;
    font-weight: 700 !important;
    color: #143e34;
    margin-bottom: 12px;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ================= TIN TỨC & KIẾN THỨC (Chuẩn Ảnh 1) ================= */
.home-news-section {
  padding-block: 80px;
}
.section-header-row {
  margin-bottom: 35px;
}
.view-all-link {
  font-size: 13px;
  font-weight: 700;
  color: #0c7a57;
}
.news-cards-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.news-card {
  border-radius: var(--radius-md);
  border: 1px solid #e1ebe4;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}
.news-date {
  font-size: 11px;
  font-weight: 600;
  color: #728f83;
  margin-bottom: 8px;
  display: block;
}
.news-card h3 {
  font-size: 16.5px;
  line-height: 1.45;
  margin-bottom: 10px;
}
.news-card p {
  font-size: 12.5px;
  line-height: 1.7;
}

/* ================= FOOTER 5 CỘT (Chuẩn Ảnh 1) ================= */
.site-footer {
  background: #082622;
  color: #d1e2da;
  padding-top: 65px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-5col-grid {
  display: grid;
  grid-template-columns: 1.5fr 1.6fr 1.1fr 1fr 1.3fr;
  gap: 36px;
  padding-bottom: 50px;
}
.f-brand-col .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 14px;
}
.f-brand-col .footer-brand em {
  color: var(--color-gold);
  font-style: normal;
}
.footer-tagline {
  font-size: 12.5px;
  line-height: 1.75;
  color: #9cb5aa;
  margin-bottom: 20px;
  max-width: 290px;
}
.footer-socials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-socials a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  font-size: 11.5px;
  color: #e2ede7;
  transition: background 0.2s;
}
.footer-socials a:hover {
  background: rgba(255, 255, 255, 0.18);
  color: var(--color-gold);
}
.f-col h3 {
  font-size: 14.5px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
/* Liên hệ trên PC: Icon và thông tin nằm trọn vẹn trên 1 hàng ngang sang trọng */
.f-contact-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.f-contact-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px !important;
  white-space: nowrap !important;
  font-size: 13.5px !important;
  line-height: 1.4 !important;
  color: #cde2d8 !important;
}
.f-contact-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(46, 196, 134, 0.14);
  border: 1px solid rgba(46, 196, 134, 0.3);
  color: #2ec486;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s ease;
}
.f-contact-row:hover .f-contact-icon {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: #082622;
  transform: translateY(-2px);
}
.f-contact-text {
  display: inline;
}
.f-contact-row a {
  color: #ffffff !important;
  font-weight: 700;
  display: inline !important;
  margin-bottom: 0 !important;
  transition: color 0.2s;
}
.f-contact-row a:hover {
  color: var(--color-gold) !important;
}
.f-col p, .f-col a {
  display: block;
  font-size: 12.5px;
  line-height: 1.8;
  color: #a8c4b7;
  margin-bottom: 6px;
}
.f-col a:hover {
  color: var(--color-gold);
}
.f-connect-col .f-qr-wrap {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 8px;
}
.footer-qr {
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.f-qr-cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.f-zalo-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #ffffff !important;
}
.zalo-badge {
  background: #0068ff;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
}
.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-block: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: #79988b;
}
.green-heart {
  color: #38d39f;
}

/* ================= MOBILE DRAWER MENU (Sang Trọng & Đẳng Cấp) ================= */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
}
.mobile-drawer[hidden] {
  display: none;
}
.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 25, 20, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(350px, 86vw);
  background: #082823;
  color: #ffffff;
  box-shadow: -15px 0 45px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 2;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  animation: slideDrawer 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideDrawer {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
.drawer-header {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.drawer-brand .brand-copy strong {
  color: #ffffff;
}
.drawer-brand .brand-sub {
  color: var(--color-gold);
}
.drawer-close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #ffffff;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.drawer-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}
.drawer-nav {
  padding: 12px 16px;
  flex: 1;
}
.drawer-nav-group {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.drawer-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 6px;
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  flex: 1;
  text-decoration: none;
  transition: color 0.15s;
}
.drawer-nav-link .nav-icon {
  color: var(--color-emerald);
}
.drawer-nav-link:hover {
  color: var(--color-gold);
}
.drawer-sub-toggle {
  background: transparent;
  border: none;
  color: #8faea2;
  font-size: 15px;
  padding: 10px 14px;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s;
}
.drawer-sub-toggle.open {
  transform: rotate(180deg);
  color: var(--color-gold);
}
.drawer-sub {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 0 12px 34px;
}
.drawer-sub[hidden] {
  display: none;
}
.drawer-sub a {
  font-size: 13px;
  color: #b9d5c9;
  padding: 6px 0;
  text-decoration: none;
  transition: color 0.15s;
}
.drawer-sub a:hover {
  color: var(--color-gold);
}
.drawer-actions {
  padding: 16px 20px;
}
.btn-block {
  width: 100%;
  text-align: center;
}
.drawer-footer {
  padding: 16px 20px 24px;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: #a4c2b5;
}
.drawer-contact-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.drawer-contact-line {
  margin: 0 0 6px;
  font-size: 12.5px;
  color: #d1fae5;
  display: flex;
  align-items: center;
  gap: 8px;
}
.drawer-contact-line:last-child {
  margin-bottom: 0;
}
.drawer-contact-line a {
  color: var(--color-gold);
  text-decoration: none;
}
.drawer-socials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 0;
}
.m-soc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}
.m-soc-zalo {
  background: rgba(0, 104, 255, 0.18);
  color: #93c5fa !important;
  border: 1px solid rgba(147, 197, 253, 0.3);
}
.m-soc-fb {
  background: rgba(24, 119, 242, 0.18);
  color: #bfdbfe !important;
  border: 1px solid rgba(191, 219, 254, 0.3);
}
.m-soc-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ================= HƯỚNG DẪN KỸ THUẬT CHUYÊN SÂU (EDITORIAL SECTION) ================= */
.editorial-experience {
  background: #f7faf8;
  border-top: 1px solid #dce8df;
  border-bottom: 1px solid #dce8df;
  padding-block: 70px;
  color: #13332b;
}
.editorial-head {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 50px;
}
.editorial-head .eyebrow {
  color: #127958;
  font-weight: 800;
  letter-spacing: 0.16em;
}
.editorial-head h2 {
  font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 700;
  color: #0d382f;
  margin: 12px 0 16px;
  line-height: 1.25;
}
.editorial-head p {
  font-size: 15px;
  color: #536d64;
  line-height: 1.8;
  margin: 0;
}
.editorial-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: flex-start;
}
.editorial-side {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.editorial-sidebox {
  background: #ffffff;
  border: 1px solid #e1ebe4;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 18px rgba(10, 50, 42, 0.04);
}
.editorial-sidebox small {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #167a5b;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.editorial-sidebox nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.editorial-sidebox nav a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #23483e;
  border-radius: 8px;
  text-decoration: none;
  line-height: 1.5;
  transition: all 0.2s ease;
}
.editorial-sidebox nav a span {
  font-size: 11px;
  font-weight: 800;
  color: #167a5b;
  background: #eaf4ef;
  padding: 2px 7px;
  border-radius: 4px;
  flex-shrink: 0;
}
.editorial-sidebox nav a:hover {
  background: #eef6f1;
  color: #0e6349;
}
.editorial-prep ul {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.editorial-prep li {
  font-size: 12.5px;
  color: #436257;
  line-height: 1.6;
  position: relative;
  padding-left: 20px;
}
.editorial-prep li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #127958;
  font-weight: 800;
}
.editorial-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px;
  background: #0d382f;
  color: #ffffff;
  font-weight: 700;
  font-size: 12.5px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s ease;
}
.editorial-contact:hover {
  background: #14594a;
}
.editorial-main {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.editorial-chapter {
  background: #ffffff;
  border: 1px solid #e1ebe4;
  border-radius: 18px;
  padding: 36px;
  box-shadow: 0 8px 24px rgba(10, 50, 42, 0.05);
}
.editorial-chapter small {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: #0f7556;
  background: #eef6f1;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.editorial-chapter h3 {
  font-size: 22px;
  font-weight: 700;
  color: #0e3b31;
  margin-bottom: 14px;
  line-height: 1.35;
}
.editorial-chapter p {
  font-size: 14.5px;
  line-height: 1.85;
  color: #49675c;
  margin-bottom: 20px;
}
.editorial-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.editorial-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  color: #22473c;
  font-weight: 600;
  line-height: 1.6;
  background: #f7faf8;
  padding: 12px 16px;
  border-radius: 10px;
  border-left: 3px solid #138361;
}
.editorial-checklist li span {
  color: #138361;
  font-weight: 800;
  flex-shrink: 0;
}
.editorial-faq details {
  border: 1px solid #e1ebe4;
  border-radius: 12px;
  padding: 16px 20px;
  margin-top: 14px;
  background: #fafcfa;
  transition: background 0.2s ease;
}
.editorial-faq details[open] {
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(10, 50, 42, 0.04);
}
.editorial-faq summary {
  font-weight: 700;
  font-size: 15px;
  color: #113c32;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.editorial-faq summary::-webkit-details-marker {
  display: none;
}
.editorial-faq summary::after {
  content: "+";
  font-size: 18px;
  color: #138361;
  font-weight: 700;
}
.editorial-faq details[open] summary::after {
  content: "−";
}
.editorial-faq details p {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: #526f63;
}
.editorial-sources {
  background: #edf5f0;
  border: 1px solid #cce2d5;
  border-radius: 14px;
  padding: 22px 24px;
}
.editorial-sources strong {
  display: block;
  font-size: 13px;
  color: #0d3b31;
  margin-bottom: 10px;
}
.editorial-sources ul {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.editorial-sources li a {
  font-size: 13px;
  color: #0c7554;
  font-weight: 700;
  text-decoration: none;
}
.editorial-sources li a:hover {
  text-decoration: underline;
}
.editorial-sources small {
  display: block;
  font-size: 11.5px;
  color: #648477;
  font-style: italic;
}
.editorial-end {
  background: linear-gradient(135deg, #072621 0%, #0a3d34 100%);
  color: #ffffff;
  border-radius: 18px;
  padding: 40px;
  box-shadow: 0 12px 32px rgba(8, 38, 33, 0.18);
}
.editorial-end span {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #7fe2ab;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.editorial-end h3 {
  font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 24px;
  color: #ffffff;
  margin-bottom: 12px;
}
.editorial-end p {
  font-size: 14px;
  line-height: 1.8;
  color: #d4e8df;
  max-width: 650px;
  margin-bottom: 24px;
}
.editorial-end div {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.editorial-end div a:not(.btn) {
  color: var(--color-gold);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

/* ================= HỆ THỐNG QUẢN TRỊ ADMIN & CRM THÔNG MINH ================= */
.admin-panel {
  min-height: 700px;
  padding-block: 40px 80px;
}
.admin-login {
  max-width: 480px;
  margin: 60px auto;
  background: #ffffff;
  border: 1px solid #dce8df;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 16px 48px rgba(10, 50, 42, 0.1);
  text-align: center;
}
.login-brand img {
  margin: 0 auto 16px;
}
.login-brand h2 {
  font-size: 24px;
  color: #0e3b31;
  margin-bottom: 10px;
}
.login-brand p {
  font-size: 13px;
  color: #557267;
  line-height: 1.6;
  margin-bottom: 24px;
}
/* Khối bảo mật cấp cao và thông tin đăng nhập mặc định */
.admin-security-shield-banner {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 22px;
  text-align: left;
}
.shield-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  color: #15803d;
  background: #dcfce7;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.admin-security-shield-banner p {
  font-size: 12px;
  color: #166534;
  line-height: 1.5;
  margin: 0 0 10px;
}
.default-cred-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #86efac;
  border-radius: 8px;
  padding: 8px 12px;
  flex-wrap: wrap;
}
.default-cred-box span {
  font-size: 11.5px;
  color: #166534;
  font-weight: 600;
}
.default-cred-box code {
  font-family: monospace;
  font-size: 12.5px;
  font-weight: 700;
  color: #047857;
  background: #ecfdf5;
  padding: 3px 6px;
  border-radius: 4px;
}
.btn-copy-pwd {
  font-size: 11.5px;
  font-weight: 700;
  color: #065f46;
  background: #a7f3d0;
  border: none;
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-copy-pwd:hover {
  background: #6ee7b7;
}
.pass-field-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.pass-field-wrap input {
  width: 100%;
  padding-right: 44px;
}
.btn-toggle-eye {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 6px;
  color: #4b6357;
}

.login-form {
  display: grid;
  gap: 18px;
  text-align: left;
}
.login-form label {
  font-size: 13px;
  font-weight: 700;
  color: #173f34;
}
.login-form input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #d2e0d7;
  border-radius: 10px;
  margin-top: 6px;
  font-size: 14px;
}
.login-foot {
  font-size: 11px;
  color: #7b988c;
  margin-top: 20px;
}
.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid #dce8df;
  margin-top: 14px;
}

/* Dashboard Topbar */
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: #072621;
  color: #ffffff;
  border-radius: 16px;
  margin-bottom: 24px;
}
.admin-topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.admin-topbar-left strong {
  display: block;
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--color-gold);
}
.admin-topbar-left small {
  font-size: 11.5px;
  color: #a2c4b6;
  display: flex;
  align-items: center;
  gap: 6px;
}
.live-pulse {
  width: 8px;
  height: 8px;
  background: #2ec486;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #2ec486;
}
.admin-topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.admin-role-badge {
  background: rgba(255, 255, 255, 0.12);
  color: #d1ebe0;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 600;
}

/* KPI Cards */
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 26px;
}
.kpi-card {
  background: #061a15 !important;
  border: 1px solid #1a4237 !important;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
  color: #ffffff !important;
}
.kpi-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8 !important;
  margin-bottom: 8px;
}
.kpi-val {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: #ffffff !important;
  line-height: 1.1;
  margin-bottom: 6px;
}
.kpi-sub {
  font-size: 11.5px;
  color: #6ee7b7 !important;
  font-weight: 600;
}

/* Tab Navigation */
.admin-tabs-nav {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid #e1ebe4;
  margin-bottom: 24px;
  overflow-x: auto;
}
.admin-tab-btn {
  background: transparent;
  border: none;
  padding: 12px 20px;
  font-size: 13.5px;
  font-weight: 700;
  color: #557267;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.admin-tab-btn:hover {
  color: #0f7556;
}
.admin-tab-btn.active {
  color: #072621;
  border-bottom-color: var(--color-gold);
}

/* Tab Panes */
.admin-tab-pane {
  background: #081e18;
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  color: #ffffff;
}
.pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 14px;
}
.pane-title-box h3 {
  font-size: 18px;
  color: #ffffff;
  margin: 0 0 4px;
}
.pane-title-box p {
  font-size: 12.5px;
  color: #94a3b8;
  margin: 0;
}
.pane-actions {
  display: flex;
  gap: 10px;
}
.pane-filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.pane-filter-bar input {
  flex: 1;
  min-width: 220px;
  padding: 10px 16px;
  border: 1px solid #1a4237;
  border-radius: 8px;
  font-size: 13px;
  background: #04120e;
  color: #ffffff;
}
.pane-filter-bar input::placeholder {
  color: #64748b;
}
.pane-filter-bar select {
  padding: 10px 14px;
  border: 1px solid #1a4237;
  border-radius: 8px;
  font-size: 13px;
  background: #04120e;
  color: #ffffff;
}

/* Admin Table & Containers */
.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid #1a4237;
  background: #04120e;
  margin-top: 14px;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #04120e;
}
.admin-table th {
  background: #0a2720;
  color: #d4af37;
  font-weight: 700;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 16px;
  text-align: left;
  border-bottom: 2px solid rgba(16, 185, 129, 0.35);
}
.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 13px;
  color: #e2e8f0;
  vertical-align: middle;
  background: #04120e;
}
.admin-table tr:hover td {
  background: rgba(16, 185, 129, 0.08);
}
.admin-table a {
  color: #d4af37;
  text-decoration: none;
  font-weight: 600;
}
.admin-table a:hover {
  color: #ffffff;
  text-decoration: underline;
}
.phone-connect-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-phone-call, .btn-zalo-chat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}
.btn-phone-call {
  background: #eef7f2;
  color: #0f7556;
}
.btn-zalo-chat {
  background: #e6f0ff;
  color: #0068ff;
}
.status-select {
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  border: 1px solid #d0ded6;
  background: #ffffff;
}
.status-select.new { background: #eaf8f1; color: #127958; }
.status-select.contacted { background: #fef8e7; color: #b48518; }
.status-select.surveyed { background: #e6f0ff; color: #0068ff; }
.status-select.won { background: #f4ebff; color: #7e22ce; }
.status-select.cancelled { background: #f3f4f6; color: #6b7280; }

.btn-delete-item {
  background: transparent;
  border: 1px solid #f0cfcb;
  color: #dc2626;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-delete-item:hover {
  background: #dc2626;
  color: #ffffff;
}

/* Modals */
.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(4, 16, 13, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.admin-modal[hidden] {
  display: none;
}
.admin-modal-card {
  background: #081e18;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 20px;
  width: min(650px, 95vw);
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
  color: #ffffff;
}
.article-modal-card {
  width: min(1080px, 95vw);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
  padding-bottom: 14px;
}
.modal-head h4 {
  font-size: 18px;
  color: #d4af37;
  margin: 0;
  font-weight: 700;
}
.modal-close {
  background: transparent;
  border: none;
  font-size: 26px;
  color: #94a3b8;
  cursor: pointer;
}
.modal-close:hover {
  color: #ffffff;
}
.article-form-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 30px;
}
.article-editor-form, .product-modal-form {
  display: grid;
  gap: 16px;
}
.article-editor-form label, .product-modal-form label {
  font-size: 12.5px;
  font-weight: 700;
  color: #a7f3d0;
}
.article-editor-form input, .article-editor-form select, .article-editor-form textarea,
.product-modal-form input, .product-modal-form select, .product-modal-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #1a4237;
  background: #04120e;
  color: #ffffff;
  border-radius: 8px;
  margin-top: 4px;
  font-size: 13px;
}
.article-editor-form input:focus, .article-editor-form select:focus, .article-editor-form textarea:focus,
.product-modal-form input:focus, .product-modal-form select:focus, .product-modal-form textarea:focus {
  border-color: #d4af37;
  outline: none;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.25);
}
.field-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.char-count {
  font-size: 11px;
  color: #79988b;
  font-weight: 400;
  float: right;
}
.modal-form-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

/* Realtime SEO Audit Sidebar */
.seo-audit-sidebar {
  background: #f7faf8;
  border: 1px solid #dce8df;
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.seo-score-box {
  text-align: center;
  background: #04120e;
  border: 1px solid #1a4237;
  border-radius: 12px;
  padding: 16px;
}
.score-dial {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}
.score-number {
  font-size: 42px;
  font-weight: 900;
  color: #64ffda;
}
.score-max {
  font-size: 14px;
  color: #94a3b8;
}
.score-evaluation {
  font-size: 13px;
  font-weight: 700;
  color: #6ee7b7;
  margin-top: 4px;
}
.seo-checklist h5, .google-serp-preview h5 {
  font-size: 12px;
  color: #fcd34d;
  margin: 0 0 10px;
}
.seo-checklist ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.seo-checklist li {
  font-size: 11.5px;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 6px;
}
.seo-checklist li.pass {
  color: #6ee7b7;
  font-weight: 700;
}
.seo-checklist li.pass .chk-icon {
  color: #10b981;
}
.serp-box {
  background: #04120e;
  border: 1px solid #1a4237;
  border-radius: 8px;
  padding: 12px 14px;
}
.serp-url {
  font-size: 11px;
  color: #64ffda;
  margin-bottom: 4px;
}
.serp-title {
  font-size: 14px;
  color: #60a5fa;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
}
.serp-desc {
  font-size: 11.5px;
  color: #cbd5e1;
  line-height: 1.5;
}

/* Multi-image Upload & Preview Gallery */
.admin-upload-section {
  background: #04120e;
  border: 1px dashed #1a4237;
  border-radius: 12px;
  padding: 14px;
  margin: 12px 0 16px;
}
.section-sublabel {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #a7f3d0;
  margin-bottom: 8px;
}
.upload-dropzone {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: #061a15;
  border: 1px solid #1a4237;
  border-radius: 8px;
}
.upload-hint {
  font-size: 11px;
  color: #94a3b8;
}
.manual-url-row {
  margin-top: 8px;
}
.image-previews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.preview-card {
  position: relative;
  background: #061a15;
  border: 1px solid #1a4237;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
}
.preview-card.is-featured {
  border: 2px solid #d4af37;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}
.preview-thumb {
  width: 100%;
  height: 80px;
  object-fit: cover;
  display: block;
}
.preview-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px;
  background: #04120e;
  border-top: 1px solid #1a4237;
}
.btn-star-featured {
  background: transparent;
  border: none;
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
}
.preview-card.is-featured .btn-star-featured {
  color: #d4af37;
  background: rgba(212, 175, 55, 0.15);
}
.btn-del-thumb {
  background: transparent;
  border: none;
  color: #ff5252;
  font-size: 13px;
  cursor: pointer;
  padding: 0 4px;
}

/* Price Configuration Card */
.price-config-card {
  background: #04120e;
  border: 1px solid #1a4237;
  border-radius: 12px;
  padding: 14px;
  margin: 12px 0 16px;
}
.price-radio-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.radio-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  cursor: pointer;
}

/* Facebook Social Share Preview */
.facebook-share-preview {
  background: #04120e;
  border: 1px solid #1a4237;
  border-radius: 12px;
  padding: 16px;
}
.facebook-share-preview h5 {
  color: #fcd34d;
}
.fb-card-preview {
  border: 1px solid #1a4237;
  border-radius: 8px;
  overflow: hidden;
  background: #061a15;
  margin-top: 8px;
}
.fb-card-img-wrap {
  position: relative;
  width: 100%;
  height: 120px;
  background: #0d382e;
}
.fb-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fb-card-domain {
  position: absolute;
  bottom: 6px;
  left: 8px;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.05em;
}
.fb-card-content {
  padding: 10px 12px;
  background: #061a15;
}
.fb-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fb-card-desc {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* SEO Tools Grid */
.seo-tools-grid, .settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.seo-tool-card, .settings-card {
  background: #061a15;
  border: 1px solid #1a4237;
  border-radius: 16px;
  padding: 24px;
  color: #ffffff;
}
.tool-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.tool-icon {
  font-size: 26px;
}
.tool-card-head h4 {
  font-size: 15px;
  color: #d4af37;
  margin: 0 0 2px;
}
.tool-card-head small {
  font-size: 11px;
  color: #94a3b8;
}
.tool-action-box {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.tool-action-box input {
  flex: 1;
  min-width: 200px;
  padding: 10px 14px;
  background: #04120e;
  border: 1px solid #1a4237;
  color: #ffffff;
  border-radius: 8px;
  font-size: 12px;
}
.tool-log {
  margin-top: 12px;
  padding: 10px 14px;
  background: #030e0b;
  color: #a4e5c8;
  font-family: monospace;
  font-size: 11px;
  border-radius: 8px;
  border: 1px solid #1a4237;
}
.schema-status-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: #a7f3d0;
}
.setting-status-badge {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(16, 185, 129, 0.15);
  color: #64ffda;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  margin: 10px 0;
}

/* Visibility Utilities */
@media (min-width: 769px) {
  .mobile-only {
    display: none !important;
  }
}
@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
}

/* Settings Box Extensions */
.settings-box-full {
  grid-column: 1 / -1;
}
.field-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Knowledge Hub: Featured Card & Filter Tabs */
.knowledge-featured-card {
  background: linear-gradient(135deg, #022018 0%, #06392d 100%);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 20px;
  padding: 36px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 36px;
  align-items: center;
  box-shadow: 0 16px 45px rgba(2, 28, 22, 0.35);
  margin-top: 24px;
  position: relative;
  overflow: hidden;
}
.kf-content {
  position: relative;
  z-index: 2;
}
.kf-badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.badge-featured-gold {
  background: #d4af37;
  color: #022018;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
}
.kf-read-time {
  font-size: 12px;
  color: #9cd6ba;
}
.kf-content h2 {
  font-size: clamp(20px, 2.3vw, 28px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.32;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.kf-content p {
  font-size: 14.5px;
  line-height: 1.7;
  color: #d1e5db;
  margin: 0 0 20px;
}
.kf-highlights {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.kf-highlights span {
  font-size: 12.5px;
  color: #7ee0aa;
  font-weight: 600;
}
.kf-media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  height: 280px;
}
.kf-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.kf-media:hover img {
  transform: scale(1.04);
}
.kf-media-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: linear-gradient(to top, rgba(2, 28, 22, 0.9), transparent);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
}

.knowledge-tabs-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-bottom: 8px;
}
.k-tab-btn {
  padding: 8px 18px;
  background: #ffffff;
  border: 1px solid #d1dfd6;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  color: #27473d;
  cursor: pointer;
  transition: all 0.2s ease;
}
.k-tab-btn.active, .k-tab-btn:hover {
  background: #0e6349;
  color: #ffffff;
  border-color: #0e6349;
}

/* Editorial Mobile Collapsible TOC */
.editorial-mobile-toc {
  background: #ffffff;
  border: 1px solid #cce2d5;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(10, 50, 42, 0.05);
  overflow: hidden;
}
.mobile-toc-summary {
  padding: 14px 18px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 14px;
  color: #0c4d3b;
  background: #f8fbf9;
  user-select: none;
}
.mobile-toc-summary:hover {
  background: #edf6f1;
}
.mobile-toc-summary::-webkit-details-marker {
  display: none;
}
.mobile-toc-list {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #ffffff;
  border-top: 1px solid #e7f0eb;
}
.mobile-toc-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 13.5px;
  color: #244b3f;
  padding: 8px 10px;
  border-radius: 6px;
  line-height: 1.4;
}
.mobile-toc-list a:hover {
  background: #eef6f1;
  color: #0e6349;
}
.mobile-toc-list a span {
  font-size: 11px;
  font-weight: 800;
  color: #0e6349;
  background: #e2f0e8;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* Contact Map Wrapper */
.contact-map-wrapper {
  background: #ffffff;
  border: 1px solid #e1ebe4;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(10, 50, 42, 0.06);
  margin-top: 12px;
}
.contact-map-head {
  margin-bottom: 20px;
}
.contact-map-head h3 {
  font-size: 22px;
  color: #0e3b31;
  margin: 6px 0 8px;
}
.contact-map-head p {
  font-size: 14px;
  color: #557568;
  margin: 0;
}
.contact-map-iframe-box {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.contact-map-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  flex-wrap: wrap;
  gap: 12px;
}
.contact-map-foot span {
  font-size: 13.5px;
  color: #3f6154;
}
.contact-map-foot span a {
  font-weight: 700;
  color: #0e6349;
  text-decoration: none;
}

/* ================= CHATBOT STYLES (Chuẩn Hình 2 Screen 3) ================= */
.mobile-chat-shell, .floating-chat-dialog {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 55px rgba(10, 48, 40, 0.18);
  border: 1px solid #e1eee5;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-head {
  background: #09342e;
  color: #ffffff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-back-btn {
  font-size: 26px;
  color: #ffffff;
  line-height: 1;
  text-decoration: none;
  padding-right: 4px;
}
.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}
.chat-title-box {
  flex: 1;
}
.chat-title-box strong {
  display: block;
  font-size: 14.5px;
  letter-spacing: -0.01em;
}
.chat-title-box small {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #8be1b1;
}
.online-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
}
.chat-menu-btn, .chat-modal-close {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
}
.chat-thread {
  background: #f7faf7;
  padding: 18px;
  min-height: 320px;
  max-height: 440px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-bubble {
  max-width: 82%;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.65;
  border-radius: 16px;
  position: relative;
  word-break: break-word;
}
.chat-bubble.bot {
  background: #ffffff;
  align-self: flex-start;
  color: #173b32;
  border: 1px solid #e1eee5;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.chat-bubble.user {
  background: #0e6b50;
  color: #ffffff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 12px rgba(14, 107, 80, 0.2);
}
.chat-time {
  display: block;
  font-size: 9.5px;
  color: #85a396;
  text-align: right;
  margin-top: 4px;
}
.chat-bubble.user .chat-time {
  color: rgba(255, 255, 255, 0.7);
}
.typing-dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 4px 2px;
}
.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #11815f;
  animation: bounceDot 1.2s infinite ease-in-out;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounceDot {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* Quick Action Suggestion Cards (Chuẩn Hình 2 Screen 3) */
.chat-quick-cards {
  padding: 10px 14px;
  background: #ffffff;
  border-top: 1px solid #e8f0eb;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.quick-card-btn {
  background: #f7faf8;
  border: 1px solid #e0ebe3;
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}
.quick-card-btn:hover {
  background: #eef7f1;
  border-color: #bad9c7;
}
.qc-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #e7f4ed;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.qc-text {
  flex: 1;
}
.qc-text strong {
  display: block;
  font-size: 13px;
  color: #123e33;
}
.qc-text small {
  display: block;
  font-size: 11px;
  color: #6a887c;
}
.qc-arrow {
  font-size: 18px;
  color: #92b0a3;
}

/* Chat Input Bar (Chuẩn Hình 2 Screen 3) */
.chat-form {
  padding: 10px 14px;
  background: #ffffff;
  border-top: 1px solid #e6eee8;
  display: flex;
  align-items: center;
  gap: 8px;
}
.chat-attach-btn {
  background: transparent;
  border: none;
  font-size: 19px;
  color: #55776a;
  cursor: pointer;
  padding: 4px;
}
.chat-form input {
  flex: 1;
  background: #f3f7f4;
  border: 1px solid #e0e9e3;
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}
.chat-form input:focus {
  border-color: #138965;
  background: #ffffff;
}
.chat-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #0f7556;
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.15s;
}
.chat-send-btn:hover {
  background: #0b5e45;
}

/* PC Floating Chat Trigger (legacy fallback) */
.pc-floating-chat-trigger {
  cursor: pointer;
}

/* ================= PC FLOATING CONTACT DOCK (HOTLINE, ZALO OA, FANPAGE, AI CHATBOT) ================= */
.pc-floating-contact-dock {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: auto;
}

.pc-dock-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.pc-dock-item:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
}

.dock-ico {
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

/* 1. Hotline Button */
.dock-item-phone {
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.dock-item-phone .dock-pulse-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(16, 185, 129, 0.6);
  animation: dockPulseRing 2s cubic-bezier(0.25, 1, 0.5, 1) infinite;
  pointer-events: none;
}

.dock-shake {
  animation: dockShake 3.5s ease-in-out infinite;
}

@keyframes dockShake {
  0%, 75%, 100% { transform: rotate(0deg); }
  78% { transform: rotate(15deg); }
  81% { transform: rotate(-15deg); }
  84% { transform: rotate(12deg); }
  87% { transform: rotate(-12deg); }
  90% { transform: rotate(8deg); }
  93% { transform: rotate(-4deg); }
}

@keyframes dockPulseRing {
  0% { transform: scale(0.9); opacity: 1; }
  70% { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* 2. Zalo OA Button */
.dock-item-zalo {
  background: linear-gradient(135deg, #0088ff 0%, #0055d4 100%);
  border: 2px solid rgba(255, 255, 255, 0.35);
}

/* 3. Facebook Fanpage Button */
.dock-item-fb {
  background: linear-gradient(135deg, #1877f2 0%, #0d5cbf 100%);
  border: 2px solid rgba(255, 255, 255, 0.35);
}

/* 4. AI Assistant Button */
.dock-item-ai {
  background: linear-gradient(135deg, #052c23 0%, #0d5242 100%);
  border: 2px solid rgba(245, 194, 86, 0.65);
  border-radius: var(--radius-pill);
  width: auto;
  padding: 0 16px;
  height: 48px;
  gap: 8px;
}

.dock-item-ai .dock-label {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Tooltip on hover for Dock buttons */
.dock-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: #021a15;
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.dock-tooltip strong {
  display: block;
  font-size: 11px;
  color: var(--color-gold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dock-tooltip::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 5px 0 5px 5px;
  border-style: solid;
  border-color: transparent transparent transparent #021a15;
}

.pc-dock-item:hover .dock-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Backward compatibility trigger */
.pc-floating-chat-trigger {
  cursor: pointer;
}
.chat-pulsing-badge {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.3);
}

/* Floating Chat Dialog on PC */
.floating-chat-dialog {
  position: fixed;
  bottom: 84px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 560px;
  max-height: calc(100vh - 110px);
  z-index: 1000;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
  border: 1px solid #d4e8dd;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.floating-chat-dialog[hidden] {
  display: none !important;
}

.floating-chat-dialog .chat-quick-cards {
  padding: 8px 12px;
  background: #f8faf8;
  border-top: 1px solid #e2ece5;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 120px;
  overflow-y: auto;
}
.floating-chat-dialog .quick-card-btn {
  padding: 6px 10px;
  border-radius: 8px;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e1eee5;
}
.floating-chat-dialog .qc-icon {
  width: 24px;
  height: 24px;
  font-size: 12px;
  border-radius: 6px;
}
.floating-chat-dialog .qc-text strong {
  font-size: 11.5px;
  color: #123e33;
}
.floating-chat-dialog .qc-text small {
  display: none;
}

/* ================= PAGES CMS 34 TRANG SUITE ================= */
.pages-cms-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}
.pages-sidebar {
  background: #061a15;
  border: 1px solid #1a4237;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  box-sizing: border-box;
}
.pages-mobile-select-wrap {
  display: none;
}
.pages-mobile-select-label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #6ee7b7;
  margin-bottom: 6px;
}
.mobile-page-select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #10b981;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  background: #04120e;
  color: #ffffff;
  box-sizing: border-box;
  outline: none;
}
.pages-search-box input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #1a4237;
  border-radius: 8px;
  font-size: 13px;
  background: #04120e;
  color: #ffffff;
  box-sizing: border-box;
}
.pages-tree-list {
  max-height: 650px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 4px;
}
.pages-tree-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pages-group-label {
  font-size: 11.5px;
  font-weight: 800;
  color: #d4af37;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pages-tree-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  background: #04120e;
  border: 1px solid #1a4237;
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}
.pages-tree-item:hover {
  background: #0d382d;
  border-color: #10b981;
  color: #ffffff;
}
.pages-tree-item.active {
  background: #0d4a3c;
  color: #ffffff;
  border-color: #d4af37;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
}
.pages-tree-item.active .pages-tree-tag {
  background: rgba(212, 175, 55, 0.25);
  color: #fcd34d;
}
.pages-tree-tag {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-weight: 700;
}

/* Page Editor & Safe Lock Banner */
.pages-editor-box {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}
.page-editor-form {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}
.page-editor-form input,
.page-editor-form textarea,
.page-editor-form select {
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}
.lock-status-banner {
  padding: 16px 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  transition: all 0.3s ease;
}
.lock-status-banner.locked {
  background: rgba(217, 119, 6, 0.15);
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  color: #fcd34d;
}
.lock-status-banner.unlocked {
  background: rgba(16, 185, 129, 0.15);
  border: 1.5px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}
.lock-status-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lock-icon-badge {
  font-size: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #04120e;
  border: 1px solid #1a4237;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}
.lock-status-left strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 2px;
  color: #ffffff;
}
.lock-status-left p {
  font-size: 12px;
  margin: 0;
  opacity: 0.9;
  color: #cbd5e1;
}
.lock-status-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.btn-emerald {
  background: #10b981;
  color: #ffffff !important;
  border: 1px solid #059669;
  font-weight: 700;
}
.btn-emerald:hover {
  background: #059669;
}

/* Section Cards in Page Editor */
.cms-section-group {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.cms-group-body {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}
.cms-subcard {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.form-section-card {
  background: #061a15;
  border: 1px solid #1a4237;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.section-card-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #d4af37;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-bottom: 8px;
  border-bottom: 1px solid #1a4237;
}
.fields-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  min-width: 0;
  box-sizing: border-box;
}
.fields-row-3 {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.2fr;
  gap: 14px;
  min-width: 0;
  box-sizing: border-box;
}
.fields-row-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
  box-sizing: border-box;
}
.page-editor-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: #a7f3d0;
}
.page-editor-form input,
.page-editor-form textarea {
  padding: 10px 14px;
  border: 1px solid #1a4237;
  border-radius: 8px;
  font-size: 13.5px;
  color: #ffffff;
  background: #04120e;
  font-family: inherit;
  transition: all 0.2s ease;
}
.page-editor-form input:read-only,
.page-editor-form textarea:read-only {
  background: #030e0b;
  color: #94a3b8;
  cursor: not-allowed;
  border-color: #16362d;
}
.page-editor-form input:not(:read-only):focus,
.page-editor-form textarea:not(:read-only):focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  outline: none;
}
.image-uploader-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  align-items: center;
}
.editor-img-thumb {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
  border: 1.5px solid #1a4237;
  background: #04120e;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.image-inputs-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.image-action-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.btn-file-upload {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 700;
  background: #0d4a3c;
  color: #ffffff;
  border: 1px solid #1a4237;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-file-upload:hover {
  background: #146351;
}
.btn-file-upload.disabled {
  background: #1e293b;
  color: #64748b;
  border-color: #334155;
  cursor: not-allowed;
}

/* ================= RESPONSIVE VÀ MOBILE (Chuẩn Hình 2) ================= */
@media (max-width: 1024px) {
  .hero-organic-cutout {
    width: 68%;
  }
  .desktop-nav, .header-cta {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .home-process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-process-item:nth-child(2) {
    border-right: none;
  }
  .home-process-item:nth-child(-n+2) {
    border-bottom: 1px solid #e7efe9;
  }
  .footer-5col-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  .f-brand-col, .f-connect-col {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  html, body {
    overflow-x: clip !important;
    width: 100% !important;
    max-width: 100vw !important;
  }
  body {
    padding-top: 60px !important;
  }
  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
  }
  .topbar {
    display: none;
  }
  .site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    width: 100% !important;
    max-width: 100vw !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08) !important;
  }
  .header-main {
    height: 60px !important;
    padding: 0 4px !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  .brand {
    gap: 8px !important;
    flex-shrink: 0 !important;
  }
  .brand img {
    width: 38px !important;
    height: 38px !important;
  }
  .brand-main {
    font-size: 15px !important;
  }
  .brand-sub {
    font-size: 10.5px !important;
  }
  .brand-copy small {
    display: none;
  }
  .menu-toggle {
    margin-left: auto !important;
    padding: 8px !important;
    flex-shrink: 0 !important;
    display: flex !important;
  }

  /* Tối ưu tiêu đề phần trên Mobile: Cân đối, sang trọng, không bao giờ tràn ngang */
  .section-head {
    max-width: 100% !important;
    margin-bottom: 24px !important;
  }
  .section-head h2,
  .section-header-row h2,
  .editorial-head h2,
  .split-copy h2,
  .home-featured-copy h2,
  .calc-desktop-side h2 {
    font-size: clamp(1.06rem, 4.2vw, 1.32rem) !important;
    line-height: 1.3 !important;
    white-space: normal !important;
    text-wrap: balance !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 8px !important;
    max-width: 100% !important;
    overflow-wrap: break-word !important;
    word-break: keep-all;
  }
  .section-head p,
  .editorial-head p,
  .split-copy p {
    font-size: 13px !important;
    line-height: 1.6 !important;
    max-width: 100% !important;
  }

  /* Khắc phục lỗi lệch khung ngang của Editorial và các Grid nhiều cột */
  .editorial-layout {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    width: 100% !important;
  }
  .editorial-sidebar {
    position: static !important;
    max-width: 100% !important;
  }
  .editorial-main {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  .editorial-tabs {
    overflow-x: auto !important;
    max-width: 100% !important;
    padding-bottom: 6px !important;
  }
  .split-grid,
  .contact-layout,
  .calculator-layout,
  .article-layout,
  .catalog-shell {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    width: 100% !important;
  }
  .spec-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .step-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  /* Ẩn Wavy SVG trên mobile, giữ dark container mượt mà */
  .hero-wavy-shape {
    display: none !important;
  }

  /* Hero trên Mobile chuẩn Hình 2 Screen 1: Ảnh trên, khối Dark Teal dưới, chuyển tiếp mượt mà */
  .hero-master {
    min-height: auto;
    padding: 0;
    background: #072621;
    position: relative;
  }
  .sub-hero {
    min-height: 400px;
  }
  .hero-dark-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    background: linear-gradient(180deg, rgba(7, 38, 33, 0.15) 0%, rgba(7, 38, 33, 0.85) 32%, #072621 52%, #051d18 100%);
    box-shadow: none;
    z-index: 2;
  }
  .hero-dark-overlay::after {
    display: none;
  }
  .hero-container {
    width: 100%;
    margin: 0;
    padding: 220px 20px 30px;
    grid-template-columns: 1fr;
    border-radius: 0;
    overflow: visible;
    position: relative;
    background: transparent;
    box-shadow: none;
    z-index: 3;
  }
  .hero-bg-media {
    height: 280px;
    bottom: auto;
  }
  .hero-content-col {
    max-width: 100%;
  }
  .hero-title {
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 3px;
  }
  .hero-title-line {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .hero-title-line.hero-line-xl {
    font-size: clamp(28px, 7.5vw, 36px) !important;
    line-height: 1.14 !important;
  }
  .hero-title-line.hero-line-lg {
    font-size: clamp(24px, 6.4vw, 30px) !important;
    line-height: 1.16 !important;
  }
  .hero-title-line.hero-line-md {
    font-size: clamp(21px, 5.5vw, 26px) !important;
    line-height: 1.18 !important;
  }
  .hero-title-line.hero-line-sm {
    font-size: clamp(18px, 4.8vw, 22px) !important;
    line-height: 1.2 !important;
  }
  .hero-desc {
    font-size: 13.5px;
    line-height: 1.65;
    margin-bottom: 18px;
  }
  .hero-actions, .hero-category-chips, .hero-visual-col {
    display: none;
  }

  /* 3 Chip Phân loại Hero trên Mobile nằm trên 1 hàng ngang cân đối chuẩn Ảnh 2 */
  .hero-chips-row {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
    width: 100% !important;
    margin: 14px 0 16px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }
  .hero-chips-row .hero-chip {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 8px 3px !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: var(--radius-pill) !important;
    backdrop-filter: blur(8px) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    transition: background 0.2s ease, transform 0.2s ease !important;
  }
  .hero-chips-row .hero-chip:active {
    background: rgba(255, 255, 255, 0.25) !important;
    transform: scale(0.97) !important;
  }
  .hero-chips-row .hero-chip .icon,
  .hero-chips-row .hero-chip svg {
    width: 13px !important;
    height: 13px !important;
    flex-shrink: 0 !important;
  }

  /* Bật các thành phần Mobile Hero chuẩn Hình 2 Screen 1 */
  .mobile-hero-benefits {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
  }
  .mobile-hero-benefits span {
    font-size: 11px;
    font-weight: 600;
    color: #e3f2ea;
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .mobile-hero-benefits .m-ico {
    color: var(--color-emerald);
    font-style: normal;
    font-weight: 800;
  }
  .mobile-hero-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
  }
  .mobile-hero-actions .btn {
    min-height: 48px;
    font-size: 14px;
    font-weight: 700;
  }
  .btn-navy-translucent {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    backdrop-filter: blur(8px);
  }
  .mobile-hero-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .mobile-hero-tabs .m-tab {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.09);
    border-radius: var(--radius-pill);
    color: #cadfd5;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
  }
  .mobile-hero-tabs .m-tab.active {
    background: #0d4a3b;
    border: 1px solid #1ba579;
    color: #ffffff;
  }

  /* 4 Quy trình rút gọn */
  .home-process-grid {
    grid-template-columns: 1fr 1fr;
  }
  .home-process-item {
    padding: 16px 12px;
    gap: 10px;
  }
  .home-process-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  .home-process-text strong {
    font-size: 12.5px;
  }
  .home-process-text small {
    font-size: 10.5px;
  }

  /* Grid giải pháp */
  .home-solutions-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  /* Ẩn Desktop calc, bật Mobile Calculator Wizard 3 bước (Hình 2 Screen 2) */
  .home-calc-wrapper {
    display: none;
  }
  .mobile-calc-wizard {
    display: block;
    background: #ffffff;
    border-radius: 18px;
    padding: 22px 18px;
    box-shadow: 0 10px 32px rgba(10, 48, 40, 0.08);
  }
  .mobile-calc-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ecf3ee;
    padding-bottom: 12px;
  }
  .mobile-calc-back {
    font-size: 24px;
    color: #123e33;
    line-height: 1;
  }
  .mobile-calc-head h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: #123e33;
  }
  .mobile-calc-step {
    margin-bottom: 22px;
  }
  .step-badge-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
  }
  .step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #0f7556;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
  }
  .step-badge-title strong {
    display: block;
    font-size: 14px;
    color: #123b31;
  }
  .step-badge-title small {
    display: block;
    font-size: 11px;
    color: #6a887b;
  }
  .step-pill-options {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
  }
  .opt-btn {
    padding: 9px 14px;
    border-radius: var(--radius-pill);
    background: #f1f7f3;
    border: 1px solid #dbe9e0;
    font-size: 12px;
    font-weight: 600;
    color: #24493e;
    white-space: nowrap;
    cursor: pointer;
  }
  .opt-btn.active {
    background: #fff4d8;
    border-color: #f5c256;
    color: #8a6207;
    font-weight: 800;
  }
  .step-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .type-btn {
    padding: 14px 8px;
    background: #f7faf8;
    border: 1px solid #dce8e0;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: #1b4539;
    cursor: pointer;
  }
  .type-btn.active {
    background: #fff8ea;
    border: 1.5px solid #f5c256;
    color: #8c6409;
  }
  .type-icon {
    font-size: 22px;
  }
  .step-roof-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .roof-btn {
    padding: 12px 10px;
    background: #f7faf8;
    border: 1px solid #dce8e0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    color: #1e493c;
    cursor: pointer;
  }
  .roof-btn.active {
    background: #fff8ea;
    border: 1.5px solid #f5c256;
    color: #8c6409;
  }
  .mobile-calc-expected-card {
    background: #f0f8f4;
    border: 1px solid #cce5d7;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 18px;
  }
  .expected-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #0b5c43;
    margin-bottom: 8px;
  }
  .expected-body {
    display: flex;
    gap: 8px;
    font-size: 12px;
    color: #3b5f52;
    line-height: 1.6;
    margin-bottom: 8px;
  }
  .expected-metrics-row {
    font-size: 12.5px;
    font-weight: 800;
    color: #0b684b;
    padding: 6px 0;
  }
  .expected-note {
    font-size: 10.5px;
    color: #729185;
  }
  .btn-mobile-calc-action {
    width: 100%;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 800;
    padding: 15px;
    text-align: center;
  }

  /* Featured Project Mobile */
  .home-featured-card {
    grid-template-columns: 1fr;
    padding: 28px 20px;
    gap: 24px;
  }
  .featured-proj-img {
    height: 250px;
  }

  /* News Mobile */
  .news-cards-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  /* Footer Mobile - Tối ưu cân đối, sang trọng, bố cục hài hòa */
  .site-footer {
    padding-top: 36px !important;
    padding-bottom: 24px !important;
  }
  .footer-5col-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 20px 14px !important;
  }
  .f-brand-col {
    grid-column: span 2 !important;
    margin-bottom: 4px !important;
    padding-bottom: 14px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  }
  .footer-brand img {
    width: 40px !important;
    height: 40px !important;
  }
  .f-brand-col p.footer-tagline {
    font-size: 12.5px !important;
    line-height: 1.6 !important;
    margin-bottom: 12px !important;
    color: #a4c4b6 !important;
  }
  .footer-socials {
    gap: 8px !important;
  }
  .footer-socials a {
    padding: 6px 12px !important;
    font-size: 11.5px !important;
  }
  .f-contact-col,
  .f-col-contact {
    grid-column: span 2 !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    padding: 14px 16px !important;
    margin-bottom: 6px !important;
  }
  .f-links-col,
  .f-policy-col,
  .f-col-links,
  .f-col-policy {
    grid-column: span 1 !important;
  }
  .f-col h3, .f-col h4 {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: var(--color-gold) !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    margin-bottom: 10px !important;
  }
  .f-contact-item {
    font-size: 12.5px !important;
    line-height: 1.5 !important;
    margin-bottom: 8px !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    color: #d1fae5 !important;
  }
  .f-contact-item strong {
    color: var(--color-gold) !important;
  }
  .f-col a {
    font-size: 12.5px !important;
    line-height: 1.6 !important;
    color: #a8c4b7 !important;
    display: block !important;
    margin-bottom: 6px !important;
  }
  .f-connect-col {
    grid-column: span 2 !important;
    margin-top: 6px !important;
    padding-top: 14px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  }
  .footer-qr {
    display: none !important;
  }
  .f-qr-wrap {
    display: flex !important;
    justify-content: center !important;
  }
  .f-qr-cta {
    display: flex !important;
    gap: 10px !important;
    width: 100% !important;
  }
  .f-qr-cta .btn {
    flex: 1 !important;
    text-align: center !important;
    justify-content: center !important;
  }
  .f-qr-cta .f-zalo-link {
    flex: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    background: rgba(0, 104, 255, 0.18) !important;
    color: #93c5fd !important;
    border: 1px solid rgba(147, 197, 253, 0.3) !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
  }
  .footer-bottom-bar {
    flex-direction: column !important;
    gap: 6px !important;
    text-align: center !important;
    padding-top: 14px !important;
    padding-bottom: 80px !important; /* chừa khoảng trống cho bottom sticky bar */
    font-size: 11px !important;
    line-height: 1.5 !important;
  }

  /* Admin Mobile Layout & Forms */
  .admin-login {
    margin: 20px 8px !important;
    padding: 24px 16px !important;
    border-radius: 14px !important;
  }
  .login-brand h2 {
    font-size: 20px !important;
  }
  .admin-kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .kpi-card {
    padding: 14px 12px !important;
  }
  .kpi-val {
    font-size: 24px !important;
  }
  .admin-topbar {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 14px !important;
  }
  .admin-topbar-right {
    width: 100% !important;
    justify-content: space-between !important;
  }
  .admin-tab-pane {
    padding: 16px 12px !important;
  }
  .pane-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }
  .pane-actions {
    width: 100% !important;
    flex-direction: column !important;
  }
  .pane-actions .btn {
    width: 100% !important;
    justify-content: center !important;
  }
  .pane-filter-bar {
    flex-direction: column !important;
  }
  .pane-filter-bar input,
  .pane-filter-bar select {
    width: 100% !important;
  }

  /* Pages CMS Mobile Layout */
  .pages-cms-layout {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .pages-sidebar {
    max-height: none !important;
  }
  .pages-mobile-select-wrap {
    display: block !important;
    margin-bottom: 8px !important;
  }
  .pages-tree-list {
    display: none !important;
  }
  .fields-row-4, .fields-row-3, .fields-row-2, .image-uploader-grid {
    grid-template-columns: 1fr !important;
  }
  .lock-status-banner {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .lock-status-actions {
    width: 100% !important;
    flex-direction: column !important;
  }
  .lock-status-actions .btn {
    width: 100% !important;
  }
  .f-contact-row {
    white-space: normal !important;
    font-size: 12.5px !important;
  }

  /* Bật Mobile Sticky Bottom Bar (Hình 2 Screen 1) */
  .mobile-sticky-bottom {
    display: flex;
    align-items: center;
    gap: 10px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(10, 52, 42, 0.1);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.08);
  }
  .m-bottom-btn {
    flex: 1;
    min-height: 44px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
  }
  .m-btn-call {
    background: #0f7556;
    color: #ffffff;
  }
  .m-btn-zalo {
    background: #0068ff;
    color: #ffffff;
  }
  .zalo-circle-icon {
    font-size: 11px;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.25);
    padding: 2px 5px;
    border-radius: 4px;
  }
  .m-btn-chat {
    background: #f5c256;
    color: #173830;
  }
  .pc-floating-contact-dock,
  .pc-floating-chat-trigger {
    display: none !important;
  }

  /* Full screen Chat Dialog on Mobile - Tối ưu 100% không tràn màn hình */
  .floating-chat-dialog {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    z-index: 10000 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }
  .floating-chat-dialog[hidden] {
    display: none !important;
  }
  .floating-chat-dialog .chat-head {
    height: 54px !important;
    padding: 0 16px !important;
    flex-shrink: 0 !important;
  }
  .floating-chat-dialog .chat-thread {
    flex: 1 !important;
    min-height: 0 !important;
    padding: 12px 14px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .floating-chat-dialog .chat-quick-cards {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 8px !important;
    padding: 8px 12px !important;
    background: #f8faf8 !important;
    border-top: 1px solid #e5eee8 !important;
    max-height: none !important;
    scrollbar-width: none !important;
  }
  .floating-chat-dialog .chat-quick-cards::-webkit-scrollbar {
    display: none !important;
  }
  .floating-chat-dialog .quick-card-btn {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    padding: 7px 12px !important;
    border-radius: var(--radius-pill) !important;
    background: #ffffff !important;
    border: 1px solid #cce5d7 !important;
    max-width: 80vw !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
  }
  .floating-chat-dialog .quick-card-btn .qc-icon {
    width: 22px !important;
    height: 22px !important;
    font-size: 11px !important;
  }
  .floating-chat-dialog .quick-card-btn .qc-text strong {
    font-size: 11.5px !important;
    white-space: nowrap !important;
  }
  .floating-chat-dialog .quick-card-btn .qc-text small {
    display: none !important;
  }
  .floating-chat-dialog .chat-form {
    flex-shrink: 0 !important;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    background: #ffffff !important;
    border-top: 1px solid #e5eee8 !important;
  }
  .floating-chat-dialog .chat-form input {
    font-size: 13.5px !important;
    padding: 9px 15px !important;
    min-width: 0 !important;
  }
}


/* ==========================================================================
   EXECUTIVE ADMIN PORTAL STANDALONE LAYOUT & SETTINGS CRM STYLING
   Khắc phục triệt để lỗi lệch khung, tối ưu 100% responsive đa thiết bị
   ========================================================================== */
.admin-portal-html {
  background: #031814;
  height: 100%;
}

.admin-portal-body {
  background: #041d18;
  color: #1e3a34;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  font-family: var(--font-primary, 'Be Vietnam Pro', sans-serif);
}

.admin-header-bar {
  background: linear-gradient(180deg, #02120e 0%, #031a15 100%);
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
  padding: 14px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.admin-header-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ffffff;
}

.admin-brand-link strong {
  font-size: 16px;
  letter-spacing: 0.05em;
  color: #ffffff;
  display: block;
  line-height: 1.2;
}

.admin-brand-link small {
  font-size: 11.5px;
  color: #7ee0aa;
  display: block;
}

.admin-header-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

.btn-tiny {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.35);
}

.btn-danger:hover {
  background: #dc2626;
  color: #ffffff;
}

.admin-portal-main {
  flex: 1;
  padding: 32px 20px 48px;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.admin-standalone-container {
  width: 100%;
}

.admin-portal-footer {
  background: #02120e;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 24px;
  color: #6ee7b7;
  font-size: 13px;
}

.admin-portal-footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-footer-links a {
  color: #6ee7b7;
  text-decoration: none;
}

.admin-footer-links a:hover {
  text-decoration: underline;
}

/* Standalone Admin Container Overrides */
.admin-standalone-container .admin-panel {
  padding: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
}

.admin-standalone-container .admin-login {
  max-width: 520px;
  margin: 40px auto;
  background: #072621;
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.admin-standalone-container .admin-login .login-brand h2 {
  color: #ffffff;
}

.admin-standalone-container .admin-login .login-brand p {
  color: #d1fae5;
}

.admin-standalone-container .admin-dashboard {
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

/* Settings Tab Styling */
.setting-auto-sync-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  color: #065f46;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid #a7f3d0;
}

.settings-form-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 16px;
}

.settings-columns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
}

.settings-box {
  background: #fbfdfc;
  border: 1px solid #d1fae5;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(10, 52, 42, 0.04);
  display: flex;
  flex-direction: column;
}

.settings-box-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid #e6f4ed;
}

.settings-box-icon {
  font-size: 26px;
  line-height: 1;
}

.settings-box-head h4 {
  font-size: 16px;
  font-weight: 800;
  color: #0d3b32;
  margin: 0 0 4px;
}

.settings-box-head small {
  font-size: 12px;
  color: #55776d;
  display: block;
}

.settings-status-pill {
  margin-left: auto;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.settings-status-pill.active {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.settings-status-pill.inactive {
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}

.settings-box-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.settings-box-body label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #174239;
}

.settings-box-body input[type="text"],
.settings-box-body input[type="url"],
.settings-box-body input[type="email"],
.settings-box-body input[type="tel"],
.settings-box-body input[type="password"] {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13.5px;
  font-family: inherit;
  background: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.settings-box-body input:focus {
  outline: none;
  border-color: #0f7556;
  box-shadow: 0 0 0 3px rgba(15, 117, 86, 0.15);
}

.settings-toggle-row {
  padding-top: 6px;
}

.switch-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  font-weight: 600;
  color: #174239;
}

.switch-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: relative;
  width: 44px;
  height: 24px;
  background-color: #cbd5e1;
  border-radius: 24px;
  transition: background-color 0.25s;
  flex-shrink: 0;
}

.switch-slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  border-radius: 50%;
  transition: transform 0.25s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.switch-label input:checked + .switch-slider {
  background-color: #10b981;
}

.switch-label input:checked + .switch-slider::before {
  transform: translateX(20px);
}

.settings-test-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px dashed #e2e8f0;
}

.test-feedback {
  font-size: 12.5px;
  font-weight: 600;
}

.test-feedback.pending {
  color: #b45309;
}

.test-feedback.success {
  color: #059669;
}

.test-feedback.error {
  color: #dc2626;
}

.settings-bottom-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.settings-save-status {
  font-size: 13.5px;
  font-weight: 700;
}

.settings-save-status.pending {
  color: #b45309;
}

.settings-save-status.success {
  color: #059669;
}

.settings-save-status.error {
  color: #dc2626;
}

/* Luxury Serif Typography Enhancements */
.hero-serif-title {
  font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.hero-serif-accent {
  font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-style: normal;
  font-weight: 800;
  color: #34d399;
  background: linear-gradient(135deg, #a7f3d0 0%, #34d399 50%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 24px rgba(52, 211, 153, 0.45);
  display: inline-block;
  padding: 0 0.06em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Solar Tech & Comparison Tables (High Contrast & Mobile Optimized) */
.tech-table-container {
  margin-block: 28px;
  position: relative;
}

.tech-table-scroll-hint {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #065f46;
  background: #ecfdf5;
  border: 1px dashed #10b981;
  border-radius: 8px;
  padding: 8px 14px;
  margin-bottom: 10px;
}

.tech-table-wrap {
  margin-block: 0;
  background: #ffffff !important;
  border: 1.5px solid #d1fae5 !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 30px rgba(6, 78, 59, 0.07) !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  position: relative;
}

.table-caption {
  padding: 14px 20px;
  background: linear-gradient(180deg, #f0fdf4 0%, #e6f7ee 100%) !important;
  border-bottom: 1.5px solid #d1fae5 !important;
  font-size: 13.5px;
  font-weight: 800;
  color: #064e3b !important;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-caption::before {
  content: '⚡';
  font-size: 14px;
}

.solar-tech-table {
  width: 100% !important;
  border-collapse: collapse !important;
  font-size: 13.5px !important;
  min-width: 680px !important;
  background: #ffffff !important;
}

.solar-tech-table th,
.solar-tech-table td {
  padding: 14px 18px !important;
  text-align: left !important;
  border-bottom: 1px solid #e2e8f0 !important;
  border-right: 1px solid #f1f5f9 !important;
  vertical-align: middle !important;
  line-height: 1.55 !important;
}

.solar-tech-table th:last-child,
.solar-tech-table td:last-child {
  border-right: none !important;
}

.solar-tech-table thead th {
  background: linear-gradient(135deg, #064e3b 0%, #0d3b32 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 12.5px !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  border-bottom: 2px solid #10b981 !important;
  padding: 15px 18px !important;
}

.solar-tech-table thead th.col-head {
  background: #022c22 !important;
  color: #f59e0b !important;
}

.solar-tech-table tbody tr {
  background: #ffffff !important;
  transition: background 0.15s ease;
}

.solar-tech-table tbody tr:nth-child(even) td {
  background-color: #f8fafc !important;
}

.solar-tech-table tbody tr:nth-child(odd) td {
  background-color: #ffffff !important;
}

.solar-tech-table tbody tr:hover td {
  background-color: #ecfdf5 !important;
}

.solar-tech-table .row-label {
  font-weight: 700 !important;
  color: #0f172a !important;
  background: #f1f5f9 !important;
  white-space: nowrap !important;
  font-size: 13px !important;
}

.solar-tech-table td {
  color: #1e293b !important; /* Siêu nét, độ tương phản cao đạt chuẩn WCAG AAA */
  background-color: #ffffff;
}

.solar-tech-table td:nth-child(2) {
  font-weight: 600;
  color: #064e3b !important; /* Cột sản phẩm của Solar Đồng Xanh nổi bật */
}

.solar-tech-table .cell-check {
  color: #059669 !important;
  font-weight: 700 !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Tối ưu hóa bảng so sánh trên Mobile & Tablet */
@media (max-width: 768px) {
  .tech-table-scroll-hint {
    display: flex !important;
  }
  .solar-tech-table {
    min-width: 580px !important;
    font-size: 12.5px !important;
  }
  .solar-tech-table th,
  .solar-tech-table td {
    padding: 10px 12px !important;
  }
  .solar-tech-table thead th {
    font-size: 11.5px !important;
    padding: 10px 12px !important;
  }
  .solar-tech-table .row-label {
    position: sticky !important;
    left: 0 !important;
    z-index: 2 !important;
    box-shadow: 2px 0 6px rgba(0, 0, 0, 0.08) !important;
    background: #e2e8f0 !important;
    color: #0f172a !important;
    max-width: 140px !important;
    white-space: normal !important;
    font-size: 12px !important;
  }
}

.tech-analysis-prose {
  max-width: 900px;
  margin: 0 auto 32px;
  font-size: 15px;
  line-height: 1.8;
  color: #2d5444;
}

.tech-analysis-prose p {
  margin-bottom: 16px;
}

.tech-highlight-box {
  background: #f3f8f4;
  border-left: 4px solid #10b981;
  padding: 18px 22px;
  border-radius: 0 10px 10px 0;
  margin: 24px 0;
}

.tech-highlight-box strong {
  color: #0a382c;
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

/* Mobile responsiveness for standalone admin */
@media (max-width: 768px) {
  .admin-header-bar {
    padding: 12px 16px;
  }
  .admin-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .admin-header-meta {
    width: 100%;
    justify-content: space-between;
  }
  .admin-portal-main {
    padding: 16px 12px 36px;
  }
  .admin-standalone-container .admin-dashboard {
    padding: 16px 12px;
  }
  .settings-columns-grid {
    grid-template-columns: 1fr !important;
  }
  .settings-bottom-bar {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .settings-bottom-bar .btn {
    width: 100% !important;
    justify-content: center !important;
  }
  /* Admin Mobile Tab SEO & Settings Fix (Tránh hoàn toàn lỗi tràn viền) */
  .seo-tools-grid, .settings-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .seo-tool-card, .settings-card, .settings-box {
    padding: 16px !important;
    border-radius: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .tool-action-box {
    flex-direction: column !important;
    gap: 10px !important;
  }
  .tool-action-box input {
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .tool-action-box button, .tool-action-box a {
    width: 100% !important;
    box-sizing: border-box !important;
    justify-content: center !important;
    text-align: center !important;
  }
  .field-row-2, .field-row-3 {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .settings-box-full {
    grid-column: span 1 !important;
  }
  .knowledge-featured-card {
    grid-template-columns: 1fr !important;
    padding: 22px 18px !important;
    gap: 20px !important;
  }
  .kf-media {
    height: 200px !important;
  }
  .contact-map-wrapper {
    padding: 20px 16px !important;
  }
  .contact-map-foot {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .contact-map-foot .btn {
    width: 100% !important;
    text-align: center !important;
  }
}

/* ==========================================================================
   V5 UPGRADES: S-CURVE HERO MINT ACCENT, HERO FEATURE STRIP,
   VISUAL SHOWCASE 3-CARDS, HYBRID DIAGRAM, 4-STEP WORKFLOW,
   DOSSIER SPOTLIGHT, BOTTOM CTA BANNER & ADMIN 7-SECTION CMS
   ========================================================================== */

/* Hero Title Line 2 Signature Mint Accent */
.hero-title-line:nth-child(2),
.hero-title-line .hero-mint-accent,
.hero-mint-accent {
  color: #34d399 !important;
  text-shadow: 0 3px 24px rgba(6, 78, 59, 0.85);
}

/* Hero Micro Badges & Pills below buttons */
.hero-micro-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.32);
  border-radius: 9999px;
  padding: 4px 12px;
  backdrop-filter: blur(4px);
  letter-spacing: 0.02em;
}

/* 1. Hero Feature Highlight Strip (3 - 4 Columns floating directly below Hero) */
.hero-feature-strip {
  background: #ffffff;
  border-bottom: 1px solid #e2ebe5;
  box-shadow: 0 8px 30px rgba(0, 32, 24, 0.05);
  position: relative;
  z-index: 10;
  margin-top: -1px;
}
.feature-strip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 24px 0;
  align-items: center;
}
.feature-strip-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 0 16px;
  border-right: 1px solid #edf4ef;
}
.feature-strip-item:last-child {
  border-right: none;
}
.f-strip-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #ecfdf5;
  color: #0d7a57;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.12);
}
.f-strip-icon-box .svg-ico {
  width: 22px;
  height: 22px;
  stroke-width: 2.2;
}
.f-strip-text strong {
  display: block;
  font-size: 14.5px;
  font-weight: 800;
  color: #0f3b30;
  margin-bottom: 3px;
  letter-spacing: -0.01em;
}
.f-strip-text p {
  font-size: 12.5px;
  color: #527065;
  line-height: 1.5;
  margin: 0;
}

/* 2. Visual Application & Showcase Section (3 Photo Cards) */
.page-visual-showcase {
  padding: 64px 0;
  background: #f8faf8;
}
.visual-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 36px;
}
.visual-card {
  background: #ffffff;
  border: 1px solid #e1ede5;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 30, 20, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.visual-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(13, 74, 60, 0.12);
  border-color: #2ec486;
}
.visual-card-img-wrap {
  height: 210px;
  overflow: hidden;
  position: relative;
  background: #eef4f0;
}
.visual-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.visual-card:hover .visual-card-img-wrap img {
  transform: scale(1.06);
}
.visual-card-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(7, 41, 34, 0.88);
  color: #6ee7b7;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  backdrop-filter: blur(6px);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.visual-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.visual-card-body h3 {
  font-size: 17px;
  font-weight: 800;
  color: #0c382e;
  margin: 0;
  line-height: 1.35;
}
.visual-card-body p {
  font-size: 13.5px;
  color: #4a665b;
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}
.visual-card-link {
  font-size: 13.5px;
  font-weight: 750;
  color: #0d805c;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
}
.visual-card-link:hover {
  color: #055038;
  transform: translateX(4px);
}

/* 3. Interactive Hybrid System Diagram & Benefit Cards */
.hybrid-diagram-wrap {
  background: #ffffff;
  border: 1px solid #e2ebe5;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  margin-top: 32px;
}
.diagram-flow-grid {
  display: grid;
  grid-template-columns: 1.6fr 1.1fr;
  gap: 32px;
  align-items: center;
}
.diagram-canvas-box {
  background: #fbfdfc;
  border: 1.5px dashed #cbe0d3;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.diagram-flow-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 12px;
}
.diagram-node {
  background: #ffffff;
  border: 1px solid #d4e6db;
  border-radius: 10px;
  padding: 12px 16px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  min-width: 120px;
}
.diagram-node strong {
  display: block;
  font-size: 13px;
  color: #0e3b31;
  margin-top: 6px;
}
.diagram-node small {
  font-size: 11px;
  color: #617d72;
}
.diagram-connector {
  font-size: 20px;
  color: #10b981;
  font-weight: 800;
}
.benefit-list-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.benefit-item-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: #f9fbf9;
  border: 1px solid #e2ece5;
  border-radius: 10px;
}
.benefit-icon-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #ecfdf5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}
.benefit-item-card strong {
  display: block;
  font-size: 14px;
  color: #0c382d;
  margin-bottom: 2px;
}
.benefit-item-card p {
  font-size: 12.5px;
  color: #4a685c;
  line-height: 1.5;
  margin: 0;
}

/* 4. Workflow Section (4 Bước Triển Khai Chuẩn Kỹ Thuật) */
.page-workflow-section {
  padding: 60px 0;
  background: #ffffff;
}
.workflow-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
  position: relative;
}
.workflow-step-card {
  background: #f8faf9;
  border: 1px solid #e1ede5;
  border-radius: 12px;
  padding: 24px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.workflow-step-card:hover {
  transform: translateY(-4px);
  border-color: #10b981;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.1);
}
.workflow-num-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #0d4a3c;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(13, 74, 60, 0.25);
}
.workflow-step-card h3 {
  font-size: 15px;
  font-weight: 800;
  color: #0c372c;
  margin: 0;
  line-height: 1.35;
}
.workflow-step-card p {
  font-size: 12.5px;
  color: #526f63;
  line-height: 1.55;
  margin: 0;
}

/* 5. Inspection Dossier & Engineer Spotlight (Ảnh thực tế + Hồ sơ kỹ thuật) */
.page-dossier-spotlight {
  padding: 56px 0;
  background: #f8faf8;
}
.dossier-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: center;
  margin-top: 32px;
}
.dossier-left-img {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  height: 360px;
}
.dossier-left-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dossier-right-card {
  background: #ffffff;
  border: 1px solid #e1ede5;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dossier-right-card h3 {
  font-size: 18px;
  font-weight: 850;
  color: #0c382d;
  margin: 0;
}
.dossier-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.dossier-item-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #ecfdf5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}
.dossier-item strong {
  display: block;
  font-size: 13.5px;
  color: #0c362b;
  margin-bottom: 2px;
}
.dossier-item p {
  font-size: 12px;
  color: #557267;
  line-height: 1.5;
  margin: 0;
}

/* 6. Comparison Section (Điện hòa lưới vs Điện Hybrid) */
.compare-solution-card {
  background: #0b342b;
  border-radius: 16px;
  padding: 36px;
  color: #ffffff;
  margin-top: 32px;
  box-shadow: 0 16px 40px rgba(5, 34, 27, 0.3);
}
.compare-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 24px;
}
.compare-col-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 24px;
}
.compare-col-box h4 {
  font-size: 16px;
  font-weight: 800;
  color: #6ee7b7;
  margin: 0 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}
.compare-item-chk {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #e2f0e8;
  margin-bottom: 10px;
}
.compare-item-chk span {
  color: #34d399;
  font-weight: 800;
}

/* 7. Luxury Bottom CTA Banner */
.luxury-bottom-cta-banner {
  background: linear-gradient(135deg, #072a22 0%, #0d4336 100%);
  border-radius: 16px;
  padding: 36px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #ffffff;
  box-shadow: 0 16px 40px rgba(7, 43, 34, 0.25);
  margin: 56px 0 20px;
  border: 1px solid rgba(52, 211, 153, 0.2);
}
.luxury-cta-content h3 {
  font-size: 22px;
  font-weight: 850;
  color: #ffffff;
  margin: 0 0 6px;
  letter-spacing: -0.015em;
}
.luxury-cta-content p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  line-height: 1.5;
}
.luxury-cta-btn {
  background: #f5a623 !important;
  color: #111827 !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  padding: 13px 28px !important;
  border-radius: 9999px !important;
  white-space: nowrap !important;
  box-shadow: 0 6px 20px rgba(245, 166, 35, 0.4) !important;
  text-decoration: none !important;
  transition: transform 0.2s, background 0.2s !important;
  flex-shrink: 0;
}
.luxury-cta-btn:hover {
  background: #e09214 !important;
  transform: translateY(-2px);
}

/* 8. Admin 34-Page CMS Multi-Section Form Styles */
.cms-section-group {
  margin-bottom: 20px;
  border: 1px solid #dce8e0;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}
.cms-group-head {
  padding: 14px 18px;
  background: #f2f8f4;
  font-size: 13.5px;
  font-weight: 800;
  color: #0e3b31;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e1ece5;
  user-select: none;
}
.cms-group-head:hover {
  background: #e8f3ec;
}
.cms-group-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cms-section-group.collapsed .cms-group-body {
  display: none !important;
}
.cms-section-group.collapsed .group-toggle-ico {
  transform: rotate(-90deg);
}
.cms-group-head .group-toggle-ico {
  transition: transform 0.2s ease;
  font-size: 14px;
  color: #10b981;
}
.fields-row-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.cms-subcard {
  background: #f9fbf9;
  border: 1px solid #e2ece5;
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cms-subcard-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #0c382d;
  display: flex;
  align-items: center;
  gap: 6px;
}
@media (max-width: 768px) {
  .fields-row-4 {
    grid-template-columns: 1fr;
  }
}

/* Mobile Responsive Adaptations */
@media (max-width: 768px) {
  .hero-micro-badges {
    justify-content: flex-start;
  }
  .feature-strip-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px 0;
  }
  .feature-strip-item {
    border-right: none;
    border-bottom: 1px solid #edf4ef;
    padding-bottom: 14px;
  }
  .feature-strip-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  .visual-showcase-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .diagram-flow-grid {
    grid-template-columns: 1fr;
  }
  .diagram-flow-row {
    flex-direction: column;
  }
  .workflow-steps-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .dossier-grid {
    grid-template-columns: 1fr;
  }
  .dossier-left-img {
    height: 220px;
  }
  .compare-col-grid {
    grid-template-columns: 1fr;
  }
  .luxury-bottom-cta-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 24px 20px;
  }
  .luxury-cta-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* ==========================================================================
   MODERN VERTICAL EXECUTIVE DASHBOARD & MULTI-LAYER SECURITY STYLING
   Thiết kế giao diện dọc sang trọng, đẳng cấp, tối ưu 100% desktop & mobile
   ========================================================================== */

/* Full Width Container cho Admin */
.admin-standalone-wrapper {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 12px;
}

/* Khung đăng nhập bảo mật đa tầng */
.admin-login-wrapper {
  max-width: 540px;
  margin: 36px auto;
  padding: 0 12px;
}

.admin-login-wrapper .admin-login {
  background: linear-gradient(180deg, #072621 0%, #031814 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 22px;
  padding: 40px 36px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 30px rgba(16, 185, 129, 0.15);
}

.admin-login-wrapper .login-brand {
  text-align: center;
  margin-bottom: 24px;
}

.admin-login-wrapper .login-brand h2 {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin: 12px 0 6px;
  letter-spacing: -0.01em;
}

.admin-login-wrapper .login-brand p {
  font-size: 13.5px;
  color: #a7f3d0;
  line-height: 1.5;
  margin: 0;
}

.field-label-text {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 6px;
}

.login-security-notice {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: #6ee7b7;
  text-align: center;
  line-height: 1.4;
}

/* ==========================================================================
   VERTICAL LAYOUT: SIDEBAR + MAIN STAGE
   ========================================================================== */
.admin-vertical-layout {
  display: flex;
  min-height: 88vh;
  background: #03120e;
  border-radius: 20px;
  border: 1px solid rgba(16, 185, 129, 0.3);
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  margin-bottom: 40px;
}

/* Left Sidebar */
.admin-sidebar {
  width: 290px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #031814 0%, #010f0b 100%);
  border-right: 1px solid rgba(16, 185, 129, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 18px;
  color: #e2e8f0;
  box-sizing: border-box;
}

.admin-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(16, 185, 129, 0.15);
}

.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ffffff;
}

.admin-sidebar-brand strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.admin-sidebar-brand small {
  display: block;
  font-size: 10px;
  color: #6ee7b7;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.admin-sidebar-close {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* User Card Snippet */
.admin-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 18px 0;
}

.user-avatar-wrap {
  position: relative;
  width: 38px;
  height: 38px;
  background: rgba(16, 185, 129, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.user-live-indicator {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: #10b981;
  border: 2px solid #031814;
  border-radius: 50%;
}

.user-meta {
  min-width: 0;
  flex: 1;
}

.user-name {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #6ee7b7;
  font-weight: 600;
  margin-top: 2px;
}

/* Vertical Nav List */
.admin-vertical-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  overflow-y: auto;
  margin: 0 -6px;
  padding: 0 6px;
}

.vnav-group-title {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #4ade80;
  opacity: 0.75;
  margin: 14px 10px 6px;
}

.admin-vnav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: #a7f3d0;
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  position: relative;
}

.admin-vnav-item:hover {
  background: rgba(16, 185, 129, 0.12);
  color: #ffffff;
  border-color: rgba(16, 185, 129, 0.25);
  transform: translateX(2px);
}

.admin-vnav-item.active {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.25) 0%, rgba(245, 158, 11, 0.15) 100%);
  color: #ffffff;
  border-color: #f59e0b;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.18);
  font-weight: 700;
}

.vnav-icon {
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}

.vnav-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vnav-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #d1fae5;
}

.vnav-pill.page-pill {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

.vnav-pill.ai-pill {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.vnav-pill.sec-pill {
  background: rgba(16, 185, 129, 0.25);
  color: #34d399;
}

/* Sidebar Footer */
.admin-sidebar-footer {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(16, 185, 129, 0.15);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-site-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #6ee7b7;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.sidebar-site-link:hover {
  background: rgba(16, 185, 129, 0.15);
  color: #ffffff;
  border-color: rgba(16, 185, 129, 0.3);
}

.sidebar-logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 10px;
  color: #fca5a5;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.sidebar-logout-btn:hover {
  background: #dc2626;
  color: #ffffff;
}

/* ==========================================================================
   RIGHT MAIN STAGE
   ========================================================================== */
.admin-main-stage {
  flex: 1;
  min-width: 0;
  background: #03120e;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

/* Stage Topbar */
.admin-stage-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  background: #041813;
  border-bottom: 1px solid #1a4237;
  position: sticky;
  top: 0;
  z-index: 40;
  gap: 16px;
}

.stage-topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.stage-hamburger-btn {
  display: none;
  align-items: center;
  gap: 6px;
  background: #031814;
  color: #ffffff;
  border: 1px solid #10b981;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.stage-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
}

.bc-root {
  color: #64748b;
}

.bc-sep {
  color: #cbd5e1;
}

.bc-current {
  color: #0d3b32;
  font-weight: 800;
}

.stage-topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.stage-security-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

.shield-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
}

.stage-clock {
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  font-weight: 700;
  color: #0d3b32;
  background: #f1f5f9;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

/* Stage Workspace */
.stage-workspace {
  padding: 24px 28px 40px;
  flex: 1;
}

.admin-vertical-layout .admin-kpi-grid {
  padding: 20px 28px 0;
  margin-bottom: 0;
}

/* ==========================================================================
   SECURITY TAB STYLING (PANE-SECURITY)
   ========================================================================== */
.sec-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.sec-status-card {
  background: linear-gradient(180deg, #072621 0%, #031814 100%);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  gap: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  color: #ffffff;
}

.sec-card-icon {
  font-size: 32px;
  line-height: 1;
  flex-shrink: 0;
}

.sec-card-info h4 {
  font-size: 14.5px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px;
}

.sec-badge-live {
  display: inline-block;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid #10b981;
  color: #6ee7b7;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 6px;
}

.sec-card-info small {
  display: block;
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.4;
}

.sec-mgmt-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
  margin-bottom: 28px;
}

.sec-box {
  background: #fbfdfc;
  border: 1px solid #d1fae5;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(10, 52, 42, 0.04);
}

.sec-box-head {
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid #e6f4ed;
}

.sec-box-head h4 {
  font-size: 16px;
  font-weight: 800;
  color: #0d3b32;
  margin: 0 0 4px;
}

.sec-box-head small {
  font-size: 12px;
  color: #55776d;
}

.sec-pin-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sec-pin-form label span {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #1e3a34;
  margin-bottom: 4px;
}

.pin-status {
  font-size: 12.5px;
  font-weight: 700;
  margin: 6px 0 0;
}

.locked-ips-list {
  min-height: 120px;
}

.locked-ips-list .empty-text {
  color: #64748b;
  font-size: 13px;
  text-align: center;
  padding: 30px 0;
}

.locked-ip-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  margin-bottom: 8px;
}

.locked-ip-meta strong {
  display: block;
  color: #991b1b;
  font-size: 13px;
}

.locked-ip-meta small {
  color: #b91c1c;
  font-size: 11.5px;
}

.sec-audit-section {
  background: #fbfdfc;
  border: 1px solid #d1fae5;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(10, 52, 42, 0.04);
}

.sec-audit-head {
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid #e6f4ed;
}

.sec-audit-head h4 {
  font-size: 16px;
  font-weight: 800;
  color: #0d3b32;
  margin: 0 0 4px;
}

.sec-audit-head small {
  font-size: 12px;
  color: #55776d;
}

.sec-audit-table th {
  background: #f1f5f9;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.sec-audit-table td {
  font-size: 12.5px;
}

.badge-sec-info {
  display: inline-block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.badge-sec-warn {
  display: inline-block;
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.badge-sec-critical {
  display: inline-block;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

/* ==========================================================================
   RESPONSIVE OVERRIDES FOR VERTICAL LAYOUT (< 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  .admin-vertical-layout {
    position: relative;
    border-radius: 14px;
  }

  .admin-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    width: 290px;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 16px 0 48px rgba(0, 0, 0, 0.65);
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .admin-sidebar-close {
    display: flex;
  }

  .admin-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .admin-sidebar-backdrop.active {
    opacity: 1;
    pointer-events: auto;
  }

  .stage-hamburger-btn {
    display: inline-flex;
  }

  .admin-stage-topbar {
    padding: 14px 16px;
  }

  .stage-workspace {
    padding: 18px 14px 32px;
  }

  .admin-vertical-layout .admin-kpi-grid {
    padding: 16px 14px 0;
  }
}

@media (max-width: 640px) {
  .stage-topbar-right .stage-security-badge {
    display: none;
  }

  .sec-status-grid {
    grid-template-columns: 1fr;
  }

  .sec-mgmt-row {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   2FA TOTP (FACEBOOK/GOOGLE AUTHENTICATOR) & GOOGLE SEO SUITE STYLES
   ========================================================================== */
.auth-2fa-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  border: 2px solid rgba(212, 175, 55, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 12px;
}

.auth-user-pill {
  display: inline-block;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 14px;
  border-radius: 20px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  color: #a7f3d0;
  font-weight: 600;
}

.totp-input-box {
  margin: 18px 0;
  text-align: center;
}

.totp-code-display {
  font-size: 26px !important;
  font-family: 'Courier New', Courier, monospace !important;
  letter-spacing: 8px;
  text-align: center;
  font-weight: 700;
  color: #d4af37 !important;
  background: rgba(0, 0, 0, 0.5) !important;
  border: 2px solid rgba(212, 175, 55, 0.4) !important;
  border-radius: 12px !important;
  padding: 12px !important;
}

.totp-code-display:focus {
  border-color: #d4af37 !important;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.35) !important;
}

.totp-timer-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.totp-timer-track {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.totp-timer-bar {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #d4af37);
  width: 100%;
  transition: width 1s linear;
}

.totp-timer-text {
  font-size: 11.5px;
  color: #cbd5e1;
  font-family: monospace;
  white-space: nowrap;
}

.auth-alt-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  align-items: center;
}

.auth-alt-links .btn-link {
  background: none;
  border: none;
  color: #64ffda;
  font-size: 12.5px;
  cursor: pointer;
  text-decoration: underline;
  padding: 2px;
}

.auth-alt-links .btn-link:hover {
  color: #d4af37;
}

.backup-code-input {
  font-family: monospace !important;
  font-size: 16px !important;
  letter-spacing: 3px;
  text-align: center;
  text-transform: uppercase;
}

/* Google SEO Suite Panels */
.seo-section-card {
  background: linear-gradient(180deg, #072621 0%, #031814 100%);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.seo-section-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #d4af37;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.broadcast-input-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.broadcast-input-row .input-with-label {
  flex: 2;
  min-width: 240px;
}

.broadcast-input-row .select-label {
  flex: 1;
  min-width: 180px;
}

.sub-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 6px;
}

.indexing-channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.indexing-channel-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 10px;
  padding: 10px 14px;
}

.indexing-channel-pill strong {
  display: block;
  font-size: 13px;
  color: #f8fafc;
}

.indexing-channel-pill small {
  display: block;
  font-size: 11px;
  color: #94a3b8;
}

/* PageSpeed Dashboard */
.pagespeed-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.pagespeed-score-card {
  text-align: center;
  padding: 18px 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 14px;
}

.pagespeed-score-card strong {
  display: block;
  font-size: 13px;
  color: #ffffff;
  margin-top: 8px;
}

.pagespeed-score-card small {
  font-size: 11.5px;
  color: #94a3b8;
}

.circle-gauge {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  border: 4px solid #10b981;
  background: rgba(16, 185, 129, 0.1);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
}

.circle-gauge .gauge-val {
  font-size: 24px;
  line-height: 1;
}

.circle-gauge .gauge-sub {
  font-size: 10.5px;
  color: #a7f3d0;
}

.cwv-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.cwv-metric-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
}

.cwv-tag.pass {
  font-size: 10.5px;
  font-weight: 800;
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 8px;
}

.cwv-name {
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
}

.cwv-value {
  font-size: 26px;
  font-weight: 800;
  font-family: monospace;
  color: #64ffda;
  margin: 4px 0 6px;
}

.cwv-desc {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.4;
  display: block;
}

.pagespeed-audits-list {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px;
}

.audit-item {
  font-size: 13px;
  color: #cbd5e1;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.audit-item:last-child {
  border-bottom: none;
}

.audit-item strong {
  color: #64ffda;
}

.gsc-kpi-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.gsc-kpi-pill {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 6px 14px;
  border-radius: 10px;
  text-align: center;
}

.gsc-kpi-pill strong {
  display: block;
  font-size: 14px;
  color: #ffffff;
}

.gsc-kpi-pill small {
  font-size: 11px;
  color: #94a3b8;
}

.gsc-kpi-pill.gold {
  border-color: rgba(212, 175, 55, 0.4);
  background: rgba(212, 175, 55, 0.1);
}

.gsc-kpi-pill.gold strong {
  color: #d4af37;
}

.onpage-result-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 14px;
  padding: 20px;
}

.onpage-score-header {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 18px;
}

.onpage-big-score {
  font-size: 44px;
  font-weight: 900;
  color: #10b981;
  font-family: monospace;
}

.onpage-big-score span {
  font-size: 18px;
  color: #a7f3d0;
}

.onpage-score-text strong {
  display: block;
  font-size: 16px;
  color: #ffffff;
  margin-bottom: 4px;
}

.onpage-score-text p {
  font-size: 13px;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.4;
}

.schema-status-list {
  display: grid;
  gap: 8px;
}

.schema-item {
  font-size: 13px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 12px;
  border-radius: 8px;
}

.schema-item strong {
  color: #d4af37;
}

/* 2FA Manager & Firewall Layout */
.sec-box-full {
  background: linear-gradient(180deg, #072621 0%, #031814 100%);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 24px;
}

.sec-tag-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: #64ffda;
  background: rgba(16, 185, 129, 0.15);
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.totp-setup-grid {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 20px;
}

.qr-code-frame {
  background: #ffffff;
  padding: 10px;
  border-radius: 14px;
  display: inline-block;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.qr-hint {
  display: block;
  font-size: 12px;
  color: #94a3b8;
  margin-top: 10px;
  text-align: center;
}

.code-font {
  font-family: 'Courier New', Courier, monospace !important;
  font-size: 14px !important;
  letter-spacing: 1px;
}

.secret-copy-row {
  display: flex;
  gap: 8px;
}

.secret-copy-row input {
  flex: 1;
}

.backup-codes-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px dashed rgba(212, 175, 55, 0.35);
  border-radius: 12px;
  padding: 16px;
  margin-top: 18px;
}

.backup-codes-box p {
  font-size: 12px;
  color: #94a3b8;
  margin: 6px 0 10px;
}

.backup-codes-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.backup-badge {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: #fef08a;
  font-family: monospace;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 13.5px;
  letter-spacing: 1px;
}

/* Firewall Explanation Cards */
.sec-firewall-explain-section {
  background: linear-gradient(180deg, #072621 0%, #031814 100%);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 24px;
}

.firewall-layers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.firewall-layer-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.firewall-layer-card h5 {
  font-size: 16px;
  color: #ffffff;
  margin: 6px 0 12px;
}

.layer-card-badge {
  font-size: 11px;
  font-weight: 800;
  color: #64ffda;
  background: rgba(16, 185, 129, 0.15);
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
}

.layer-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.6;
  color: #cbd5e1;
}

.layer-feature-list li {
  margin-bottom: 8px;
}

.layer-feature-list code {
  background: rgba(0, 0, 0, 0.5);
  color: #d4af37;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11.5px;
  font-family: monospace;
}

.layer-proof-tag {
  font-size: 12px;
  color: #10b981;
  font-weight: 700;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
  .totp-setup-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .secret-copy-row {
    flex-direction: column;
  }
  .broadcast-input-row {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ================= SOLAR PROJECTS & HRM PAYROLL STYLES ================= */
.project-stats-row,
.payroll-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.prj-stat-card,
.pay-kpi-card {
  background: linear-gradient(135deg, rgba(16, 42, 34, 0.7) 0%, rgba(9, 28, 22, 0.8) 100%);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.prj-stat-card:hover,
.pay-kpi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 15px rgba(212, 175, 55, 0.15);
}

.prj-stat-label,
.pay-kpi-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
  font-weight: 700;
}

.prj-stat-val,
.pay-kpi-val {
  font-size: 24px;
  font-weight: 800;
  color: #d4af37;
  font-family: 'Cinzel', 'Outfit', sans-serif;
  line-height: 1.2;
}

.prj-stat-card small,
.pay-kpi-card small {
  font-size: 11.5px;
  color: #64ffda;
  font-weight: 500;
}

/* HRM Subtabs Bar */
.hrm-subtabs-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.hrm-subtab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hrm-subtab-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(212, 175, 55, 0.3);
}

.hrm-subtab-btn.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(16, 185, 129, 0.2) 100%);
  border-color: #d4af37;
  color: #d4af37;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
}

.hrm-view-section {
  display: none;
}

.hrm-view-section.active {
  display: block;
}

/* Status Badges & Progress Bars */
.badge-status-completed {
  display: inline-block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #64ffda;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.badge-status-executing {
  display: inline-block;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fcd34d;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.progress-bar-wrap {
  width: 100%;
  min-width: 90px;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 2px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #d4af37 100%);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.btn-toggle-pay {
  border: none;
  border-radius: 12px;
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-toggle-pay.paid {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #64ffda;
}

.btn-toggle-pay.paid:hover {
  background: rgba(16, 185, 129, 0.35);
}

.btn-toggle-pay.unpaid {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fcd34d;
}

.btn-toggle-pay.unpaid:hover {
  background: rgba(245, 158, 11, 0.3);
}

.timesheet-header-row {
  margin-bottom: 16px;
  padding: 12px 18px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13.5px;
}

/* Modals Dialogs Dark Luxury */
.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.admin-modal[hidden] {
  display: none !important;
}

.admin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.admin-modal-dialog {
  position: relative;
  z-index: 10;
  width: min(780px, 95vw);
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(135deg, #0b1a15 0%, #0d2820 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 30px rgba(212, 175, 55, 0.15);
  padding: 24px 28px;
  color: #ffffff;
}

.modal-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 14px;
  margin-bottom: 20px;
}

.modal-dialog-head h4 {
  font-size: 18px;
  color: #d4af37;
  margin: 0;
  font-weight: 700;
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.btn-close-modal:hover {
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.1);
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #cbd5e1;
}

.modal-form input,
.modal-form select,
.modal-form textarea {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #ffffff;
  padding: 10px 14px;
  font-size: 13.5px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
  outline: none;
  border-color: #d4af37;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.25);
}

.field-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.modal-dialog-foot {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 992px) {
  .project-stats-row,
  .payroll-kpi-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .field-row-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .project-stats-row,
  .payroll-kpi-row {
    grid-template-columns: 1fr;
  }
  .field-row-2 {
    grid-template-columns: 1fr;
  }
  .admin-modal-dialog {
    padding: 18px;
  }
}

/* ==========================================================================
   ENTERPRISE HIGH-CONTRAST DARK LUXURY PALETTE (ADMIN STAGE UNIFICATION)
   ========================================================================== */
.admin-vertical-layout {
  background: #04100d !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.7) !important;
}

.admin-main-stage {
  background: #061713 !important;
  color: #ffffff !important;
}

.admin-stage-topbar {
  background: #081e18 !important;
  border-bottom: 1px solid rgba(16, 185, 129, 0.22) !important;
}

.stage-clock {
  background: rgba(16, 185, 129, 0.12) !important;
  color: #d4af37 !important;
  border: 1px solid rgba(212, 175, 55, 0.35) !important;
}

.bc-root {
  color: #94a3b8 !important;
}

.bc-current {
  color: #ffffff !important;
}

.stage-breadcrumbs .bc-sep {
  color: #475569 !important;
}

.admin-tab-pane {
  background: #081e18 !important;
  border: 1px solid rgba(16, 185, 129, 0.22) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4) !important;
}

.pane-title-box h3 {
  color: #ffffff !important;
}

.pane-title-box p {
  color: #94a3b8 !important;
}

.pane-filter-bar input,
.pane-filter-bar select {
  background: #04120e !important;
  border: 1px solid #1a4237 !important;
  color: #ffffff !important;
}

.pane-filter-bar input::placeholder {
  color: #64748b;
}

/* ALL TABLE WRAPPERS & ADMIN TABLES ACROSS ADMIN SECTIONS */
.admin-vertical-layout .table-wrap,
.admin-main-stage .table-wrap,
.admin-modal .table-wrap,
.indexing-history-box .table-wrap,
.sec-log-box .table-wrap {
  background: #04120e !important;
  border: 1px solid #1a4237 !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

.admin-table,
.admin-table table {
  background: #04120e !important;
  color: #e2e8f0 !important;
  border-collapse: collapse !important;
  width: 100% !important;
}

.admin-table thead,
.admin-table tbody,
.admin-table tr {
  background: #04120e !important;
}

.admin-table th {
  background: #0a2720 !important;
  color: #d4af37 !important;
  border-bottom: 2px solid rgba(16, 185, 129, 0.35) !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  font-size: 11.5px !important;
  padding: 14px 16px !important;
  white-space: nowrap !important;
}

.admin-table td {
  background-color: #04120e !important;
  color: #e2e8f0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  font-size: 13px !important;
  padding: 14px 16px !important;
  vertical-align: middle !important;
}

.admin-table tr:nth-child(even) td {
  background-color: #061914 !important;
}

.admin-table tr:hover td {
  background-color: #0d382d !important;
}

.admin-table td strong {
  color: #ffffff !important;
}

.admin-table a {
  color: #d4af37 !important;
  text-decoration: none !important;
  font-weight: 600 !important;
}

.admin-table a:hover {
  color: #ffffff !important;
  text-decoration: underline !important;
}

.admin-table code {
  color: #64ffda !important;
  background: rgba(16, 185, 129, 0.15) !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
}

/* Specific sub-boxes */
.indexing-history-box,
.sec-log-box {
  background: #081e18 !important;
  border: 1px solid #1a4237 !important;
  border-radius: 14px !important;
  padding: 18px !important;
  margin-top: 20px !important;
  color: #ffffff !important;
}

.indexing-history-box h5,
.sec-log-box h5 {
  color: #d4af37 !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  margin: 0 0 14px !important;
}

.indexing-broadcast-box {
  background: #04120e !important;
  border: 1px solid #1a4237 !important;
  border-radius: 14px !important;
  padding: 18px !important;
}

.indexing-channel-pill {
  background: #081e18 !important;
  border: 1px solid #1a4237 !important;
  color: #ffffff !important;
}

.indexing-channel-pill strong {
  color: #ffffff !important;
}

.indexing-channel-pill small {
  color: #94a3b8 !important;
}

.indexing-channel-pill.active {
  border-color: #10b981 !important;
  background: rgba(16, 185, 129, 0.12) !important;
}

/* Badges inside tables */
.badge-sec-info {
  background: rgba(59, 130, 246, 0.2) !important;
  color: #93c5fd !important;
  border: 1px solid rgba(59, 130, 246, 0.4) !important;
}

.sec-badge-live {
  background: rgba(16, 185, 129, 0.2) !important;
  color: #6ee7b7 !important;
  border: 1px solid #10b981 !important;
}

/* Timesheet input styling */
.ts-input {
  background: #020c09 !important;
  border: 1px solid #1e4b3e !important;
  color: #ffffff !important;
  border-radius: 6px !important;
  padding: 6px 8px !important;
  font-size: 12.5px !important;
}

.ts-input:focus {
  border-color: #d4af37 !important;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.25) !important;
  outline: none !important;
}

/* 34 Pages Sidebar & Tree List */
.pages-sidebar {
  background: #04120e !important;
  border: 1px solid #1a4237 !important;
}

.pages-search-box input {
  background: #020c09 !important;
  border: 1px solid #1a4237 !important;
  color: #ffffff !important;
}

.pages-group-label {
  color: #d4af37 !important;
  font-weight: 800 !important;
}

.pages-tree-item {
  color: #cbd5e1 !important;
  border-radius: 8px !important;
}

.pages-tree-item:hover {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #ffffff !important;
}

.pages-tree-item.active {
  background: rgba(16, 185, 129, 0.25) !important;
  border-left: 3px solid #d4af37 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
}

.pages-tree-tag {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #6ee7b7 !important;
}

/* CMS Section Groups & Subcards */
.cms-section-group {
  background: #04120e !important;
  border: 1px solid #1a4237 !important;
  border-radius: 12px !important;
}

.cms-group-head {
  background: #0a251e !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border-bottom: 1px solid #1a4237 !important;
}

.cms-subcard {
  background: #081e18 !important;
  border: 1px solid #1a4237 !important;
  border-radius: 10px !important;
  color: #ffffff !important;
}

.cms-subcard-title {
  color: #d4af37 !important;
  font-weight: 700 !important;
}

.page-editor-form input,
.page-editor-form textarea,
.page-editor-form select {
  background: #020c09 !important;
  border: 1px solid #1e4b3e !important;
  color: #ffffff !important;
  border-radius: 8px !important;
}

.page-editor-form input:focus,
.page-editor-form textarea:focus,
.page-editor-form select:focus {
  border-color: #d4af37 !important;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.25) !important;
}

/* Settings & SEO Section Cards */
.settings-box {
  background: #081e18 !important;
  border: 1px solid #1a4237 !important;
  color: #ffffff !important;
}

.settings-box h4 {
  color: #ffffff !important;
}

.settings-box small {
  color: #94a3b8 !important;
}

.settings-box input,
.settings-box textarea,
.settings-box select {
  background: #04120e !important;
  border: 1px solid #1a4237 !important;
  color: #ffffff !important;
}

.seo-section-card {
  background: #081e18 !important;
  border: 1px solid #1a4237 !important;
  color: #ffffff !important;
}

.seo-section-head h4 {
  color: #ffffff !important;
}

.seo-section-head p {
  color: #94a3b8 !important;
}

/* Category Filter Pills Bar for 34 Pages */
.pages-category-pills-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 10px 14px;
  background: #04120e;
  border: 1px solid #1a4237;
  border-radius: 12px;
}

.pages-cat-pill {
  padding: 7px 14px;
  border-radius: 20px;
  border: 1px solid rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.08);
  color: #a7f3d0;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pages-cat-pill:hover {
  background: rgba(16, 185, 129, 0.2);
  color: #ffffff;
  border-color: #10b981;
}

.pages-cat-pill.active {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #04120e;
  border-color: #d4af37;
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35);
}

/* HRM Period Bar & Universal Excel Button */
.hrm-period-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  background: #04120e;
  border: 1px solid #1a4237;
  border-radius: 12px;
  padding: 12px 18px;
  margin-bottom: 20px;
}

.hrm-period-selector-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hrm-period-label {
  font-size: 13px;
  font-weight: 700;
  color: #d4af37;
}

.hrm-period-select {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid #10b981;
  background: #061713;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.hrm-export-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-excel {
  background: rgba(16, 185, 129, 0.15) !important;
  border: 1px solid #10b981 !important;
  color: #6ee7b7 !important;
  font-weight: 700 !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-excel:hover {
  background: #10b981 !important;
  color: #04120e !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
  transform: translateY(-1px);
}

/* ================= HERO LUXURY MULTI-IMAGE SLIDER ================= */
.hero-bg-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover !important;
  background-position: center right !important;
  background-repeat: no-repeat !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 6s cubic-bezier(0.25, 1, 0.5, 1);
  transform: scale(1.06);
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(4, 18, 14, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: #ffffff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
  user-select: none;
}

.hero-slider-nav:hover {
  background: #d4af37;
  color: #04120e;
  border-color: #ffffff;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
  transform: translateY(-50%) scale(1.08);
}

.hero-nav-prev {
  left: 20px;
}

.hero-nav-next {
  right: 20px;
}

.hero-slider-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-dot.active {
  width: 32px;
  border-radius: 8px;
  background: #d4af37;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.8);
}

@media (max-width: 900px) {
  .hero-bg-slider {
    height: 280px !important;
    bottom: auto !important;
  }
}

@media (max-width: 768px) {
  .hero-slider-nav {
    display: none;
  }
  .pages-category-pills-bar {
    gap: 6px;
    padding: 8px;
  }
  .pages-cat-pill {
    padding: 5px 10px;
    font-size: 11.5px;
  }
  .hrm-period-bar {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ================= GOOGLE OAUTH 2.0 & TELEMETRY HUB ================= */
.google-oauth-hero-card {
  background: linear-gradient(145deg, #061a15 0%, #03100d 100%) !important;
  border: 1px solid #1a4b3d !important;
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.google-oauth-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(26, 75, 61, 0.6);
}

.google-user-profile-bar {
  display: flex;
  align-items: center;
  gap: 14px;
}

.google-user-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid #d4af37;
  object-fit: cover;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.35);
  background: #08261e;
}

.google-user-meta h4 {
  margin: 0 0 3px 0;
  font-size: 16px;
  color: #ffffff;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.google-user-meta .google-email-tag {
  color: #6ee7b7;
  font-size: 13px;
  font-weight: 600;
  font-family: monospace;
}

.google-scopes-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.google-scope-pill {
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #a7f3d0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-google-login {
  background: #ffffff !important;
  color: #1f2937 !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  padding: 10px 18px !important;
  border-radius: 8px !important;
  border: 1px solid #e5e7eb !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
}

.btn-google-login:hover {
  background: #f9fafb !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35) !important;
  transform: translateY(-1px);
}

.btn-google-disconnect {
  background: rgba(239, 68, 68, 0.1) !important;
  color: #f87171 !important;
  border: 1px solid rgba(239, 68, 68, 0.4) !important;
  font-size: 12.5px !important;
  padding: 7px 14px !important;
  border-radius: 8px !important;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-google-disconnect:hover {
  background: rgba(239, 68, 68, 0.25) !important;
  color: #ffffff !important;
  border-color: #ef4444 !important;
}

.google-oauth-config-details {
  margin-top: 18px;
  background: #020c09;
  border: 1px solid #1a4237;
  border-radius: 12px;
  padding: 16px;
}

.google-oauth-config-details summary {
  color: #d4af37;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.redirect-uri-box {
  background: #04120e;
  border: 1px dashed #1e4b3e;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 16px;
  flex-wrap: wrap;
}

.redirect-uri-text {
  font-family: monospace;
  font-size: 12px;
  color: #64ffda;
  word-break: break-all;
}

.google-telemetry-live-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
  margin: 18px 0 !important;
}

@media (max-width: 1100px) {
  .google-telemetry-live-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 600px) {
  .google-telemetry-live-grid {
    grid-template-columns: 1fr !important;
  }
}

.telemetry-live-card {
  background: #020f0c !important;
  border: 1px solid #1a4b3d !important;
  border-top: 3px solid #10b981 !important;
  border-radius: 12px !important;
  padding: 16px 18px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  min-height: 105px !important;
}

.telemetry-live-card:nth-child(2) {
  border-top-color: #3b82f6 !important;
}
.telemetry-live-card:nth-child(3) {
  border-top-color: #d4af37 !important;
}
.telemetry-live-card:nth-child(4) {
  border-top-color: #64ffda !important;
}

.telemetry-live-card .tel-label {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #94a3b8 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  margin-bottom: 6px !important;
}

.telemetry-live-card .tel-value {
  font-size: 24px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: baseline !important;
  gap: 6px !important;
}

.telemetry-live-card .tel-sub {
  font-size: 11.5px !important;
  color: #6ee7b7 !important;
  margin-top: 4px !important;
  font-weight: 600 !important;
}

.google-oauth-config-details input,
.google-oauth-config-details textarea,
.google-oauth-config-details select {
  background: #020c09 !important;
  border: 1px solid #1e4b3e !important;
  color: #ffffff !important;
  border-radius: 8px !important;
}

.google-oauth-config-details input:focus,
.google-oauth-config-details textarea:focus {
  border-color: #d4af37 !important;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.25) !important;
  outline: none !important;
}

/* ================= TRUNG TÂM DỰ TOÁN BÁO GIÁ ĐIỆN MẶT TRỜI (QUOTE STUDIO) ================= */
.quote-studio-page {
  padding-top: 40px;
  padding-bottom: 80px;
}

/* 1. Segment Selector Grid */
.quote-segments-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.quote-seg-card {
  position: relative;
  background: #0d261e;
  border: 1.5px solid #1a4f3f;
  border-radius: 12px;
  padding: 18px 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  color: #e2ede8;
}

.quote-seg-card:hover {
  transform: translateY(-2px);
  border-color: #278468;
  background: #113328;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.quote-seg-card.active {
  border-color: #d4af37;
  background: linear-gradient(135deg, #133a2d 0%, #0d261e 100%);
  box-shadow: 0 0 0 1px #d4af37, 0 12px 30px rgba(212, 175, 55, 0.15);
}

.seg-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #143e31;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1.5px solid #2a7d63;
  color: #34d399;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.seg-icon-box svg {
  width: 24px;
  height: 24px;
  stroke: #34d399;
  stroke-width: 2;
  filter: drop-shadow(0 2px 6px rgba(52, 211, 153, 0.5));
}

.quote-seg-card:hover .seg-icon-box {
  border-color: #34d399;
  background: #194d3d;
}

.quote-seg-card:hover .seg-icon-box svg {
  stroke: #6ee7b7;
  filter: drop-shadow(0 0 10px rgba(110, 231, 183, 0.7));
}

.quote-seg-card.active .seg-icon-box {
  background: linear-gradient(135deg, #ffd700 0%, #f59e0b 100%);
  border-color: #ffd700;
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.45);
}

.quote-seg-card.active .seg-icon-box svg {
  stroke: #032117;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.seg-info strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.quote-seg-card.active .seg-info strong {
  color: #ffd77a;
}

.seg-meta {
  font-size: 11px;
  color: #92b8aa;
  margin-bottom: 4px;
}

.seg-kwp {
  color: #6ee7b7;
  font-weight: 700;
}

.seg-desc {
  font-size: 11px;
  color: #a4c4b7;
  line-height: 1.4;
  margin: 0;
}

.seg-check {
  display: none;
  position: absolute;
  top: 10px;
  right: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #d4af37;
  color: #0b241b;
  font-size: 12px;
  font-weight: 800;
  align-items: center;
  justify-content: center;
}

.quote-seg-card.active .seg-check {
  display: flex;
}

/* 2. Main Studio Grid */
.quote-studio-main-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 28px;
  margin-bottom: 40px;
}

/* Form Shell */
.quote-studio-form {
  background: #0a2119;
  border: 1px solid #1a4f3f;
  border-radius: 14px;
  padding: 26px 24px;
  color: #e2ede8;
}

.form-sec-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 13.5px;
  color: #ffffff;
}

.fsec-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #d4af37;
  color: #081d15;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

.quote-form-row {
  margin-bottom: 18px;
}

.form-field-title {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #9ec4b5;
  margin-bottom: 8px;
}

.quote-btn-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}

.btn-group-opt {
  background: #0f3025;
  border: 1px solid #1e5a47;
  color: #cde2d8;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-group-opt svg {
  width: 16px;
  height: 16px;
  stroke: #34d399;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 3px rgba(52, 211, 153, 0.5));
  transition: all 0.15s ease;
}

.btn-group-opt:hover {
  background: #174535;
  border-color: #278468;
}

.btn-group-opt:hover svg {
  stroke: #6ee7b7;
}

.btn-group-opt.active {
  background: linear-gradient(135deg, #ffd700 0%, #f59e0b 100%);
  color: #04241a;
  border-color: #ffd700;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(255, 215, 0, 0.35);
}

.btn-group-opt.active svg {
  stroke: #04241a;
  filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.3));
}

.field-head-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12px;
  color: #9ec4b5;
}

.live-val-highlight {
  color: #ffd77a;
  font-size: 13.5px;
  font-weight: 700;
}

.roof-badge {
  background: #154536;
  color: #6ee7b7;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 11px;
}

.bill-preset-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.preset-label {
  font-size: 11px;
  color: #7d9c90;
}

.btn-preset-chip {
  background: #11382b;
  border: 1px solid #1c523f;
  color: #b7d6c9;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-preset-chip:hover {
  background: #1b4d3c;
  color: #ffffff;
}

.btn-preset-chip.active {
  background: #d4af37;
  color: #0b241b;
  border-color: #ffd700;
  font-weight: 700;
}

.quote-form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

.quote-customer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.cust-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: #8faea1;
}

.cust-field.full-width {
  grid-column: span 2;
}

.cust-field input {
  background: #061611 !important;
  border: 1px solid #1a4f3f !important;
  color: #ffffff !important;
  padding: 9px 12px !important;
  border-radius: 7px !important;
  font-size: 12px !important;
}

.cust-field input:focus {
  border-color: #d4af37 !important;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2) !important;
  outline: none !important;
}

.quote-form-actions-row {
  margin-top: 14px;
}

.btn-recalc {
  width: 100%;
  padding: 12px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-recalc svg {
  width: 18px;
  height: 18px;
  stroke: #062e22;
  stroke-width: 2.2;
}

/* 3. Live Dashboard Panel */
.quote-live-dashboard {
  background: #081d16;
  border: 1px solid #1e5645;
  border-radius: 14px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.quote-dash-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid #164637;
  padding-bottom: 14px;
}

.quote-code-tag {
  display: inline-block;
  background: #184435;
  color: #ffd77a;
  border: 1px solid #c99726;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.quote-dash-head h3 {
  font-size: 14.5px;
  color: #ffffff;
  margin: 0;
  letter-spacing: 0.2px;
}

.quote-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0e3024;
  border: 1px solid #1e5a45;
  color: #6ee7b7;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 20px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  animation: pulseLive 1.8s infinite;
}

@keyframes pulseLive {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 8px #10b981; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

/* 4 Golden Cards Grid */
.quote-golden-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.gold-metric-card {
  background: #0d281e;
  border: 1px solid #1b5240;
  border-radius: 10px;
  padding: 14px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.15s ease;
}

.gold-metric-card:hover {
  transform: translateY(-2px);
  border-color: #d4af37;
}

.gm-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.22) 0%, rgba(16, 185, 129, 0.18) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1.5px solid rgba(212, 175, 55, 0.5);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  color: #ffd700;
  transition: all 0.2s ease;
}

.gm-icon svg {
  width: 22px;
  height: 22px;
  stroke: #ffd700;
  stroke-width: 2.2;
  filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.6));
}

.gold-metric-card:nth-child(1) .gm-icon {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3) 0%, rgba(251, 191, 36, 0.18) 100%);
  border-color: #fbbf24;
}
.gold-metric-card:nth-child(1) .gm-icon svg {
  stroke: #fbbf24;
  filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.75));
}

.gold-metric-card:nth-child(2) .gm-icon {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.3) 0%, rgba(14, 165, 233, 0.18) 100%);
  border-color: #38bdf8;
}
.gold-metric-card:nth-child(2) .gm-icon svg {
  stroke: #38bdf8;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.75));
}

.gold-metric-card:nth-child(3) .gm-icon {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.3) 0%, rgba(52, 211, 153, 0.18) 100%);
  border-color: #34d399;
}
.gold-metric-card:nth-child(3) .gm-icon svg {
  stroke: #34d399;
  filter: drop-shadow(0 0 10px rgba(52, 211, 153, 0.75));
}

.gold-metric-card:nth-child(4) .gm-icon {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.3) 0%, rgba(202, 138, 4, 0.18) 100%);
  border-color: #facc15;
}
.gold-metric-card:nth-child(4) .gm-icon svg {
  stroke: #facc15;
  filter: drop-shadow(0 0 10px rgba(250, 204, 21, 0.75));
}

.gm-body small {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #88aba0;
  letter-spacing: 0.4px;
}

.gm-body strong {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  margin: 2px 0;
}

.gm-body strong.text-gold {
  color: #ffd77a;
}

.gm-sub {
  display: block;
  font-size: 10.5px;
  color: #6ee7b7;
}

/* Equipment Summary */
.quote-equip-summary {
  background: #071913;
  border: 1px solid #143d2f;
  border-radius: 9px;
  padding: 12px 14px;
  font-size: 11.5px;
}

.quote-equip-summary h4 {
  font-size: 11.5px;
  color: #d4af37;
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.equip-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
  line-height: 1.4;
}

.equip-row:last-child {
  margin-bottom: 0;
}

.eq-label {
  color: #7b9c90;
  white-space: nowrap;
}

.eq-val {
  color: #e2ede8;
  text-align: right;
}

/* Total Investment Card */
.quote-total-invest-card {
  background: linear-gradient(135deg, #103326 0%, #0b2219 100%);
  border: 1.5px solid #d4af37;
  border-radius: 10px;
  padding: 18px 20px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.total-invest-copy small {
  font-size: 10.5px;
  font-weight: 800;
  color: #c79524;
  letter-spacing: 0.6px;
  display: block;
  margin-bottom: 6px;
}

.total-invest-amount {
  font-size: 28px;
  font-weight: 800;
  color: #ffd77a;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.vat-note {
  font-size: 10.5px;
  color: #8ebd9e;
  display: block;
}

/* Action Toolbar */
.quote-action-toolbar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-action-pdf {
  background: linear-gradient(135deg, #8b1d1d 0%, #5c1010 100%);
  border: 1px solid #bf3636;
  color: #ffffff;
  padding: 12px 14px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.btn-action-pdf:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #a82424 0%, #6e1313 100%);
  box-shadow: 0 6px 18px rgba(139, 29, 29, 0.4);
}

.btn-action-excel {
  background: linear-gradient(135deg, #1b5e20 0%, #0d3813 100%);
  border: 1px solid #2e7d32;
  color: #ffffff;
  padding: 12px 14px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.btn-action-excel:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #2e7d32 0%, #154d1d 100%);
  box-shadow: 0 6px 18px rgba(27, 94, 32, 0.4);
}

.btn-action-print {
  background: #0f3024;
  border: 1px solid #1f614b;
  color: #ffffff;
  padding: 12px 14px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.btn-action-print:hover {
  transform: translateY(-2px);
  background: #174736;
}

.btn-action-book {
  padding: 12px 14px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.btn-act-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.btn-act-text strong {
  display: block;
  font-size: 13px;
  line-height: 1.2;
}

.btn-act-text small {
  display: block;
  font-size: 10px;
  opacity: 0.85;
  margin-top: 2px;
}

.quote-action-status {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  min-height: 20px;
}

/* 4. BOQ Table Section */
.quote-boq-section {
  background: #091e17;
  border: 1px solid #1a4f3f;
  border-radius: 14px;
  padding: 28px 24px;
  margin-bottom: 40px;
}

.quote-boq-head {
  margin-bottom: 20px;
}

.quote-boq-head h3 {
  font-size: 18px;
  color: #ffffff;
  margin: 6px 0 4px 0;
}

.quote-boq-head p {
  font-size: 13px;
  color: #8eb2a4;
  margin: 0;
}

.quote-boq-table-wrap {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid #194b3c;
}

.quote-boq-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  min-width: 780px;
}

.quote-boq-table th {
  background: #124436;
  color: #ffffff;
  font-weight: 700;
  padding: 11px 10px;
  text-align: left;
  border-bottom: 1px solid #1e634f;
  font-size: 11.5px;
  letter-spacing: 0.3px;
}

.quote-boq-table td {
  padding: 10px;
  border-bottom: 1px solid #12372c;
  color: #d1e3da;
  vertical-align: middle;
}

.quote-boq-table tbody tr:nth-child(even) {
  background: #0c241c;
}

.quote-boq-table tbody tr:hover {
  background: #12382b;
}

.boq-spec-cell {
  font-size: 11px;
  color: #92b8aa;
  max-width: 250px;
}

.quote-boq-table tfoot td {
  background: #0e2b20;
  padding: 14px 10px;
  font-size: 13px;
  border-top: 2px solid #d4af37;
  color: #ffffff;
}

.boq-foot-total {
  font-size: 16px;
  font-weight: 800;
}

.warranty-badge {
  display: inline-block;
  background: #154536;
  color: #6ee7b7;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  white-space: nowrap;
}

/* 5. Standards Commitments */
.quote-standards-section {
  margin-bottom: 20px;
}

.quote-commit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 28px;
}

@media (max-width: 900px) {
  .quote-commit-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 540px) {
  .quote-commit-grid {
    grid-template-columns: 1fr;
  }
}

.q-commit-card {
  background: linear-gradient(145deg, #0e2a21 0%, #061813 100%);
  border: 1.5px solid #1a5241;
  border-radius: 14px;
  padding: 24px 18px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.q-commit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #10b981, #d4af37);
  opacity: 0.8;
}

.q-commit-card:hover {
  transform: translateY(-4px);
  border-color: #d4af37;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45), 0 0 20px rgba(212, 175, 55, 0.2);
}

.qc-ico {
  width: 60px !important;
  height: 60px !important;
  margin: 0 auto 16px auto !important;
  border-radius: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
}

.qc-ico .icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: inherit !important;
}

.qc-ico svg, .qc-ico .svg-ico {
  width: 32px !important;
  height: 32px !important;
  stroke-width: 2.2 !important;
  transition: all 0.2s ease !important;
}

/* Card 1: Chống bão cấp 12 - Cyan Luminous */
.q-commit-card:nth-child(1) .qc-ico {
  background: rgba(56, 189, 248, 0.22) !important;
  border: 2px solid #38bdf8 !important;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.45) !important;
  color: #38bdf8 !important;
}
.q-commit-card:nth-child(1) .qc-ico svg, .q-commit-card:nth-child(1) .qc-ico .svg-ico {
  stroke: #38bdf8 !important;
  color: #38bdf8 !important;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.8)) !important;
}
.q-commit-card:nth-child(1) h4 {
  color: #bae6fd !important;
}

/* Card 2: TOPCon 22.8% - Solar Amber Glow */
.q-commit-card:nth-child(2) .qc-ico {
  background: rgba(245, 158, 11, 0.22) !important;
  border: 2px solid #fbbf24 !important;
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.45) !important;
  color: #fbbf24 !important;
}
.q-commit-card:nth-child(2) .qc-ico svg, .q-commit-card:nth-child(2) .qc-ico .svg-ico {
  stroke: #fbbf24 !important;
  color: #fbbf24 !important;
  filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.8)) !important;
}
.q-commit-card:nth-child(2) h4 {
  color: #fef08a !important;
}

/* Card 3: Zero-Export NĐ 135 - Radiant Emerald */
.q-commit-card:nth-child(3) .qc-ico {
  background: rgba(52, 211, 153, 0.22) !important;
  border: 2px solid #34d399 !important;
  box-shadow: 0 0 20px rgba(52, 211, 153, 0.45) !important;
  color: #34d399 !important;
}
.q-commit-card:nth-child(3) .qc-ico svg, .q-commit-card:nth-child(3) .qc-ico .svg-ico {
  stroke: #34d399 !important;
  color: #34d399 !important;
  filter: drop-shadow(0 0 10px rgba(52, 211, 153, 0.8)) !important;
}
.q-commit-card:nth-child(3) h4 {
  color: #a7f3d0 !important;
}

/* Card 4: Bảo Hành & EVN - Royal Gold */
.q-commit-card:nth-child(4) .qc-ico {
  background: rgba(250, 204, 21, 0.22) !important;
  border: 2px solid #ffd700 !important;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.45) !important;
  color: #ffd700 !important;
}
.q-commit-card:nth-child(4) .qc-ico svg, .q-commit-card:nth-child(4) .qc-ico .svg-ico {
  stroke: #ffd700 !important;
  color: #ffd700 !important;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8)) !important;
}
.q-commit-card:nth-child(4) h4 {
  color: #fef08a !important;
}

.q-commit-card h4 {
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 8px 0;
  line-height: 1.35;
}

.q-commit-card p {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0;
}

/* Admin Quotes Table Action Buttons */
.btn-tbl-act {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
}

.btn-tbl-pdf {
  background: #8b1d1d;
  color: #ffffff;
}

.btn-tbl-pdf:hover {
  background: #ab2525;
}

.btn-tbl-excel {
  background: #1b5e20;
  color: #ffffff;
}

.btn-tbl-excel:hover {
  background: #2e7d32;
}

.btn-tbl-del {
  background: #331010;
  color: #ef4444;
}

.btn-tbl-del:hover {
  background: #501717;
}

.quote-pill {
  background: #d4af37 !important;
  color: #0b241b !important;
}

/* Mobile Media Queries */
@media (max-width: 992px) {
  .quote-segments-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .quote-studio-main-grid {
    grid-template-columns: 1fr;
  }
  .quote-commit-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .quote-segments-grid {
    grid-template-columns: 1fr;
  }
  .quote-golden-cards-grid {
    grid-template-columns: 1fr;
  }
  .quote-action-toolbar {
    grid-template-columns: 1fr;
  }
  .quote-commit-grid {
    grid-template-columns: 1fr;
  }
}

/* Print CSS */
@media print {
  body * {
    visibility: hidden;
  }
  .quote-boq-section,
  .quote-boq-section * {
    visibility: visible;
  }
  .quote-boq-section {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: #ffffff !important;
    color: #000000 !important;
  }
  .quote-boq-table th {
    background: #f0f0f0 !important;
    color: #000000 !important;
  }
  .quote-boq-table td {
    color: #000000 !important;
  }
}

/* ================= SOLAR IN-APP LUXURY DIALOG MODAL (THAY THẾ WINDOW.ALERT / CONFIRM) ================= */
.solar-dialog-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 21, 16, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: solarFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.solar-dialog-backdrop[hidden] {
  display: none !important;
}

.solar-dialog-card {
  width: 100%;
  max-width: 490px;
  background: #ffffff;
  border: 1.5px solid #10b981;
  border-radius: 18px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(16, 185, 129, 0.15);
  overflow: hidden;
  animation: solarScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

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

@keyframes solarScaleUp {
  from { opacity: 0; transform: scale(0.92) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.solar-dialog-header {
  background: linear-gradient(135deg, #062b21 0%, #0c3e31 100%);
  color: #ffffff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #d4af37;
}

.solar-dialog-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.solar-dialog-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid #d4af37;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #f5c256;
}

.solar-dialog-headings {
  display: flex;
  flex-direction: column;
}

.solar-dialog-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.solar-dialog-subtitle {
  font-size: 11px;
  color: #a7f3d0;
  opacity: 0.9;
}

.solar-dialog-close {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.solar-dialog-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #f5c256;
}

.solar-dialog-body {
  padding: 20px 22px;
  color: #1e293b;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-line;
  max-height: 65vh;
  overflow-y: auto;
}

.solar-dialog-body b,
.solar-dialog-body strong {
  color: #064e3b;
}

.solar-dialog-actions {
  padding: 12px 20px 18px 20px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.solar-dialog-actions .btn {
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 9px;
  cursor: pointer;
}

/* Product Video Chips */
.product-video-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0 10px 0;
}
.btn-video-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}
.btn-video-chip.yt-chip {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.btn-video-chip.yt-chip:hover {
  background: #ef4444;
  color: #ffffff;
}
.btn-video-chip.tt-chip {
  background: rgba(6, 182, 212, 0.12);
  color: #06b6d4;
  border: 1px solid rgba(6, 182, 212, 0.3);
}
.btn-video-chip.tt-chip:hover {
  background: #06b6d4;
  color: #ffffff;
}

/* BOQ Customizer UI */
.boq-customizer-bar {
  transition: all 0.2s ease;
}
.boq-editor-panel {
  animation: solarFadeIn 0.25s ease;
}
.boq-editor-panel input,
.boq-editor-panel select {
  font-family: inherit;
  box-sizing: border-box;
}
.boq-editor-panel input:focus,
.boq-editor-panel select:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

/* ==========================================================================
   SMART PRODUCT CATALOG & DETAIL OVERHAUL (PREMIUM V2 - MOBILE OPTIMIZED)
   ========================================================================== */

/* Luxury Vector Icons System */
.luxury-vector {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  transition: transform 0.2s ease, stroke 0.2s ease;
}
.luxury-check {
  color: #10b981;
}
.luxury-star {
  color: #f3bf53;
}
.luxury-sparkle {
  color: #d4af37;
}
.luxury-stock-pulse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  vertical-align: middle;
}
.luxury-stock-pulse::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.45);
  animation: stockPulse 2s infinite ease-out;
}
.luxury-stock-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  position: relative;
  z-index: 1;
}
@keyframes stockPulse {
  0% { transform: scale(0.9); opacity: 0.9; }
  70% { transform: scale(2.3); opacity: 0; }
  100% { transform: scale(2.3); opacity: 0; }
}

/* 1. Catalog Toolbar & Controls */
.catalog-hub {
  margin-bottom: 32px;
}
.catalog-toolbar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 20px 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.catalog-search-row {
  display: flex;
  gap: 14px;
  align-items: center;
}
.catalog-search-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}
.catalog-search-wrap .search-icon {
  position: absolute;
  left: 16px;
  color: #64748b;
  pointer-events: none;
  display: flex;
  align-items: center;
}
.catalog-search-input {
  width: 100%;
  padding: 13px 44px 13px 46px;
  font-size: 14.5px;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  color: #0f172a;
  outline: none;
  transition: all 0.2s ease;
}
.catalog-search-input:focus {
  background: #ffffff;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}
.catalog-search-clear {
  position: absolute;
  right: 14px;
  background: #e2e8f0;
  color: #475569;
  border: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.catalog-search-clear.visible {
  display: flex;
}
.catalog-search-clear:hover {
  background: #cbd5e1;
  color: #0f172a;
}
.catalog-counter-badge {
  font-size: 13.5px;
  color: #475569;
  white-space: nowrap;
  font-weight: 500;
  background: #f1f5f9;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}
.catalog-counter-badge strong {
  color: #059669;
  font-weight: 800;
}

/* Horizontal Category Filter Pills */
.catalog-nav-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.catalog-nav-tabs::-webkit-scrollbar {
  height: 4px;
}
.catalog-nav-tabs::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.catalog-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}
.catalog-pill-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
  transform: translateY(-1px);
}
.catalog-pill-btn.active {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
  color: #ffffff;
  border-color: #d4af37;
  box-shadow: 0 4px 14px rgba(6, 78, 59, 0.25);
}
.catalog-pill-btn .pill-count {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.08);
  font-weight: 800;
}
.catalog-pill-btn.active .pill-count {
  background: rgba(212, 175, 55, 0.3);
  color: #fef08a;
}

/* Quick Filter Tags */
.catalog-quick-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  font-size: 12.5px;
}
.catalog-quick-label {
  color: #64748b;
  font-weight: 600;
  font-size: 12px;
}
.catalog-tag-btn {
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}
.catalog-tag-btn:hover,
.catalog-tag-btn.active {
  background: #ecfdf5;
  border-color: #10b981;
  border-style: solid;
  color: #065f46;
}

/* 2. Modern Product Grid & Cards */
.products-pro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 26px;
}
.product-card-pro {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.product-card-pro:hover {
  transform: translateY(-5px);
  border-color: #cbd5e1;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}
.product-card-media {
  position: relative;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 24px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  overflow: hidden;
  border-bottom: 1px solid #f1f5f9;
}
.product-card-media img {
  max-height: 175px;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.product-card-pro:hover .product-card-media img {
  transform: scale(1.06);
}
.product-card-badges-top {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 2;
}
.badge-group-pill {
  background: rgba(6, 78, 59, 0.9);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.badge-stock-pill {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  color: #059669;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.product-card-content {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card-price-row {
  margin-bottom: 10px;
}
.price-display-fixed {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  background: #f0fdf4;
  color: #047857;
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid #bbf7d0;
  font-size: 16px;
  font-weight: 800;
}
.price-display-fixed .price-unit {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}
.price-display-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fefce8;
  color: #b45309;
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid #fef08a;
  font-size: 13px;
  font-weight: 700;
}
.product-card-title {
  font-size: 17.5px;
  line-height: 1.4;
  color: #0f172a;
  margin: 6px 0 12px;
  font-weight: 800;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 48px;
}
.product-card-title a {
  color: inherit;
  transition: color 0.2s;
}
.product-card-title a:hover {
  color: #059669;
}
.product-specs-checklist {
  margin: 0 0 16px;
  font-size: 13px;
  color: #475569;
  line-height: 1.6;
}
.product-spec-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}
.product-spec-item .spec-icon {
  color: #10b981;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.4;
  flex-shrink: 0;
}
.product-card-actions {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  gap: 10px;
}
.btn-card-detail {
  flex: 1;
  background: #f8fafc;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-card-detail:hover {
  background: #064e3b;
  color: #ffffff;
  border-color: #064e3b;
}
.btn-card-zalo {
  background: #fef08a;
  color: #854d0e;
  border: 1px solid #fde047;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-card-zalo:hover {
  background: #facc15;
  color: #713f12;
}

/* Empty State */
.catalog-empty-state {
  text-align: center;
  padding: 50px 20px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px dashed #cbd5e1;
  margin-top: 20px;
}
.catalog-empty-state .empty-icon {
  font-size: 44px;
  margin-bottom: 14px;
}
.catalog-empty-state h3 {
  font-size: 20px;
  color: #0f172a;
  margin-bottom: 8px;
}
.catalog-empty-state p {
  color: #64748b;
  font-size: 14px;
  max-width: 440px;
  margin: 0 auto 20px;
}

/* 3. Product Detail Page Layout */
.product-breadcrumb {
  margin-bottom: 24px;
  font-size: 13px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.product-breadcrumb a {
  color: #065f46;
  font-weight: 600;
  text-decoration: none;
}
.product-breadcrumb a:hover {
  text-decoration: underline;
}
.product-breadcrumb .sep {
  color: #cbd5e1;
}
.product-breadcrumb .curr {
  color: #1e293b;
  font-weight: 700;
}

.product-detail-hero {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: start;
}
.product-detail-visual {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.product-main-stage {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  position: relative;
}
.product-main-stage img {
  max-height: 320px;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.product-main-stage:hover img {
  transform: scale(1.03);
}
.product-thumbs-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}
.detail-gallery-thumb {
  width: 76px;
  height: 60px;
  border-radius: 10px;
  border: 2px solid #e2e8f0;
  background: #f8fafc;
  object-fit: cover;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.detail-gallery-thumb:hover {
  border-color: #94a3b8;
}
.detail-gallery-thumb.active {
  border-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

/* Regional Durability Trust Matrix */
.product-durability-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
}
.durability-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.durability-card-header strong {
  font-size: 13.5px;
  color: #064e3b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.durability-matrix {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.durability-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.durability-item .dur-icon {
  font-size: 18px;
  line-height: 1;
}
.durability-item div {
  font-size: 12px;
  line-height: 1.45;
  color: #334155;
}
.durability-item strong {
  display: block;
  font-size: 12.5px;
  color: #0f172a;
  margin-bottom: 2px;
}

/* Right Detail Column */
.product-detail-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.detail-top-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.product-detail-info h1 {
  font-size: clamp(24px, 3vw, 36px);
  color: #0f172a;
  line-height: 1.3;
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.product-detail-price-box {
  background: linear-gradient(135deg, #f0fdf4 0%, #e6f7ec 100%);
  border: 1.5px solid #bbf7d0;
  border-radius: 14px;
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.detail-price-main {
  font-size: 28px;
  font-weight: 900;
  color: #047857;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.detail-price-main .price-unit {
  font-size: 15px;
  color: #475569;
  font-weight: 600;
}
.detail-price-sub {
  font-size: 13px;
  color: #065f46;
}

/* 4-Card Quick Specs Grid */
.detail-quick-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.quick-spec-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.quick-spec-card .spec-label {
  font-size: 12px;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.quick-spec-card .spec-val {
  font-size: 15.5px;
  font-weight: 800;
  color: #0f172a;
}

/* Highlight Features Checklist */
.detail-features-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
}
.detail-features-box h3 {
  font-size: 16px;
  color: #0f172a;
  margin-bottom: 12px;
  font-weight: 800;
}

/* Detail Action Buttons */
.detail-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.detail-cta-row .btn {
  padding: 14px 22px;
  font-size: 14px;
}

/* 4. Mobile Sticky Bottom Action Bar */
.mobile-product-sticky-bar {
  display: none;
}

@media (max-width: 768px) {
  .product-detail-layout {
    padding-bottom: 90px !important;
  }
  .product-detail-hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .product-detail-visual {
    position: static;
  }
  .product-main-stage {
    min-height: 280px;
    padding: 20px;
  }
  .product-main-stage img {
    max-height: 240px;
  }
  .durability-matrix {
    grid-template-columns: 1fr;
  }
  .detail-quick-specs {
    grid-template-columns: 1fr 1fr;
  }
  .mobile-product-sticky-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(6, 43, 36, 0.98);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(212, 175, 55, 0.35);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)) 14px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.2);
  }
  .mobile-sticky-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1;
  }
  .mobile-sticky-title {
    font-size: 12px;
    color: #ffffff;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mobile-sticky-price {
    font-size: 13.5px;
    font-weight: 800;
    color: #f3bf53;
  }
  .mobile-sticky-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
  }
  .mobile-sticky-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 13px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
  }
  .btn-sticky-call {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
  }
  .btn-sticky-zalo {
    background: #f3bf53;
    color: #062b24;
    border: 1px solid #f3bf53;
  }

  /* Catalog Hub on Mobile */
  .catalog-toolbar {
    padding: 16px;
    border-radius: 14px;
  }
  .catalog-search-row {
    flex-direction: column;
    align-items: stretch;
  }
  .catalog-counter-badge {
    text-align: center;
  }
  .products-pro-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}





