/* ═══════════════════════════════════════════════
   EDUKIT V2 CLONE STYLES
   Prefix: edk-  (không xung đột với style.css cũ)
   ═══════════════════════════════════════════════ */

:root {
  --edk-primary: #1e5fa8;
  --edk-primary-dark: #154a85;
  --edk-red: #d32f2f;
  --edk-green: #27ae60;
  --edk-bg: #f0f2f5;
  --edk-border: #e0e4e9;
  --edk-text: #222;
  --edk-muted: #666;
  --edk-white: #fff;
}

/* Reset nhẹ cho các block mới */
.edk-body * { box-sizing: border-box; }
.edk-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}

/* ═══ TOP BAR ═══ */
.edk-topbar {
  background: #f6f7f9;
  border-bottom: 1px solid var(--edk-border);
  font-size: 13px;
  color: var(--edk-muted);
}
.edk-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  gap: 16px;
}
.edk-topbar-left { display: flex; gap: 20px; flex-wrap: wrap; }
.edk-topbar-left span { display: inline-flex; align-items: center; gap: 6px; }
.edk-topbar-left i { color: var(--edk-primary); }
.edk-topbar-right { display: flex; gap: 12px; align-items: center; }
.edk-topbar-right a {
  color: var(--edk-muted);
  transition: color .15s;
  font-size: 15px;
}
.edk-topbar-right a:hover { color: var(--edk-primary); }
.edk-btn-admin {
  background: var(--edk-primary);
  color: #fff !important;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 12px !important;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.edk-btn-admin:hover { background: var(--edk-primary-dark); }

/* ═══ MAIN HEADER ═══ */
.edk-header {
  background: #fff;
  border-bottom: 1px solid var(--edk-border);
  padding: 16px 0;
}
.edk-header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
}
.edk-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--edk-primary);
  text-decoration: none;
  flex-shrink: 0;
}
.edk-logo-icon { font-size: 28px; }
.edk-features {
  display: flex;
  gap: 24px;
  margin-left: auto;
}
.edk-feat {
  display: flex;
  align-items: center;
  gap: 10px;
}
.edk-feat-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #eef3fb;
  color: var(--edk-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.edk-feat-text strong {
  display: block;
  font-size: 13px;
  color: var(--edk-text);
  font-weight: 700;
  line-height: 1.2;
}
.edk-feat-text span {
  font-size: 11px;
  color: var(--edk-muted);
}
.edk-mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--edk-border);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 16px;
  color: var(--edk-primary);
  cursor: pointer;
}

/* ═══ NAV ═══ */
.edk-nav {
  background: var(--edk-primary);
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
  position: relative;
  z-index: 10;
}
.edk-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
}
.edk-nav-list > li > a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .02em;
  text-decoration: none;
  transition: background .15s;
  height: 100%;
}
.edk-nav-list > li > a:hover { background: var(--edk-primary-dark); }
.edk-has-dropdown { position: relative; }
.edk-has-dropdown > a i { font-size: 10px; opacity: .7; }
.edk-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 260px;
  list-style: none;
  margin: 0;
  padding: 8px 0;
  border: 1px solid var(--edk-border);
  border-top: 2px solid var(--edk-red);
  box-shadow: 0 8px 20px rgba(0,0,0,.1);
  z-index: 20;
}
.edk-has-dropdown:hover .edk-dropdown { display: block; }
.edk-dropdown a {
  display: block;
  padding: 10px 18px;
  color: var(--edk-text) !important;
  font-size: 13px !important;
  text-transform: none !important;
  font-weight: 500 !important;
}
.edk-dropdown a:hover { background: #f5f7fa; color: var(--edk-primary) !important; }

.edk-nav-search { margin-left: auto; display: flex; align-items: center; padding: 8px 0; }
.edk-nav-search form {
  display: flex;
  background: rgba(255,255,255,.15);
  border-radius: 4px;
  overflow: hidden;
}
.edk-nav-search input {
  background: transparent;
  border: none;
  padding: 8px 14px;
  font-size: 13px;
  color: #fff;
  outline: none;
  width: 200px;
}
.edk-nav-search input::placeholder { color: rgba(255,255,255,.7); }
.edk-nav-search button {
  background: rgba(255,255,255,.25);
  border: none;
  color: #fff;
  padding: 0 14px;
  cursor: pointer;
}

/* ═══ MAIN BODY ═══ */
.edk-main {
  background: var(--edk-bg);
  padding: 24px 0 40px;
}

/* ═══ ROW 2 COLUMN ═══ */
.edk-row-2col {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

/* ═══ SIDEBAR / PANEL HEAD (dùng chung) ═══ */
.edk-panel {
  background: #fff;
  border: 1px solid var(--edk-border);
  border-radius: 4px;
  margin-bottom: 20px;
  overflow: hidden;
}
.edk-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: #fff;
  border-bottom: 1px solid var(--edk-border);
  position: relative;
}
.edk-panel-head::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 18px;
  width: 60px;
  height: 3px;
  background: var(--edk-red);
}
.edk-panel-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--edk-primary);
  text-transform: uppercase;
  letter-spacing: .02em;
}
.edk-panel-more {
  font-size: 12px;
  color: var(--edk-muted);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.edk-panel-more:hover { color: var(--edk-primary); }

/* ═══ SIDEBAR CATEGORY MENU ═══ */
.edk-cat-menu {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}
.edk-cat-menu li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 18px;
  color: var(--edk-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  border-bottom: 1px solid #f0f2f5;
  transition: background .15s, color .15s;
}
.edk-cat-menu li:last-child a { border-bottom: none; }
.edk-cat-menu li a:hover {
  background: #f5f7fa;
  color: var(--edk-primary);
}
.edk-cat-name {
  display: flex;
  align-items: center;
  gap: 6px;
}
.edk-cat-count {
  background: #eef3fb;
  color: var(--edk-primary);
  font-size: 11px;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 100px;
  min-width: 22px;
  text-align: center;
}

/* ═══ FEATURED GRID (BANNER) ═══ */
.edk-featured-area { min-width: 0; }
.edk-featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.edk-featured-item {
  background: #fff;
  border: 1px solid var(--edk-border);
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, border-color .2s;
}
.edk-featured-item:hover {
  border-color: var(--edk-primary);
  box-shadow: 0 4px 16px rgba(30,95,168,.12);
}
.edk-featured-img {
  position: relative;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg,#eef2ff,#fce7f3);
  overflow: hidden;
}
.edk-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.edk-featured-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.edk-badge {
  display: inline-block;
  background: var(--edk-red);
  color: #fff;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 4px;
  align-self: flex-start;
}
.edk-cat-tag {
  font-size: 11px;
  color: var(--edk-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 600;
}
.edk-featured-body h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--edk-text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.edk-featured-body p {
  margin: 0;
  font-size: 12px;
  color: var(--edk-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.edk-featured-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--edk-muted);
  padding-top: 8px;
  border-top: 1px solid #f0f2f5;
  margin-top: 6px;
}
.edk-featured-meta i { color: var(--edk-primary); margin-right: 3px; }

/* ═══ EMPTY BANNER ═══ */
.edk-empty-banner {
  background: #fff;
  border: 2px dashed var(--edk-border);
  border-radius: 4px;
  padding: 60px 20px;
  text-align: center;
  color: var(--edk-muted);
}
.edk-empty-banner i { font-size: 40px; color: #cbd2dc; margin-bottom: 12px; }
.edk-empty-banner h3 { margin: 0 0 6px; color: var(--edk-text); font-size: 16px; }
.edk-empty-banner p { margin: 0; font-size: 13px; }

/* ═══ PRODUCT PANEL (row 2) ═══ */
.edk-panel-products { margin-bottom: 20px; }
.edk-panel-body { padding: 16px; }
.edk-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.edk-product {
  background: #fff;
  border: 1px solid var(--edk-border);
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, border-color .2s, transform .15s;
}
.edk-product:hover {
  border-color: var(--edk-primary);
  box-shadow: 0 4px 14px rgba(30,95,168,.1);
  transform: translateY(-2px);
}
.edk-product-img {
  position: relative;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg,#eef2ff,#fce7f3);
  overflow: hidden;
}
.edk-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.edk-product-hot {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--edk-red);
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  z-index: 2;
}
.edk-product h4 {
  margin: 0;
  padding: 12px 14px 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--edk-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.edk-product > p {
  margin: 0;
  padding: 0 14px 10px;
  font-size: 12px;
  color: var(--edk-muted);
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.edk-product-meta {
  display: flex;
  gap: 12px;
  padding: 8px 14px;
  border-top: 1px solid #f0f2f5;
  font-size: 11px;
  color: var(--edk-muted);
  background: #fafbfc;
}
.edk-product-meta i { color: var(--edk-primary); margin-right: 3px; }

/* ═══ PLACEHOLDER ═══ */
.edk-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd2dc;
  font-size: 32px;
  background: linear-gradient(135deg,#eef2ff,#fce7f3);
}

/* ═══ CTA BANNER ═══ */
.edk-cta-banner {
  background: var(--edk-primary);
  color: #fff;
  padding: 28px 0;
}
.edk-cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.edk-cta-text h3 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.edk-cta-text p { margin: 0; font-size: 14px; opacity: .9; }
.edk-btn-phone {
  background: #fff;
  color: var(--edk-primary);
  padding: 14px 28px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.edk-btn-phone:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}

/* ═══ FEATURES BAR (4 icon boxes) ═══ */
.edk-features-bar {
  background: #fff;
  border-bottom: 1px solid var(--edk-border);
  padding: 28px 0;
}
.edk-features-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.edk-fi {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
}
.edk-fi-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #eef3fb;
  color: var(--edk-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.edk-fi-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--edk-green);
  line-height: 1.2;
}
.edk-fi-text span {
  font-size: 12px;
  color: var(--edk-muted);
}

/* ═══ FOOTER ═══ */
.edk-footer {
  background: #1a2d42;
  color: #aab4c0;
  padding: 40px 0 20px;
}
.edk-footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr 1.4fr;
  gap: 32px;
}
.edk-footer-col h4 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.edk-footer-col ul { list-style: none; padding: 0; margin: 0; }
.edk-footer-col li { margin-bottom: 8px; }
.edk-footer-col a {
  color: #aab4c0;
  text-decoration: none;
  font-size: 13px;
  transition: color .15s;
}
.edk-footer-col a:hover { color: #fff; }
.edk-footer-col-info p {
  margin: 0 0 10px;
  font-size: 13px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}
.edk-footer-col-info i {
  color: var(--edk-primary);
  margin-top: 4px;
  flex-shrink: 0;
}

/* ═══ FOOTER BOTTOM ═══ */
.edk-footer-bottom {
  background: #14212f;
  color: #8a96a3;
  font-size: 12px;
  padding: 14px 0;
}
.edk-footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.edk-top-btn {
  color: #8a96a3;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .15s;
}
.edk-top-btn:hover { color: #fff; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
  .edk-features { display: none; }
  .edk-products { grid-template-columns: repeat(3, 1fr); }
  .edk-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .edk-row-2col { grid-template-columns: 1fr; }
  .edk-featured-grid { grid-template-columns: 1fr 1fr; }
  .edk-products { grid-template-columns: repeat(2, 1fr); }
  .edk-features-inner { grid-template-columns: 1fr 1fr; }
  .edk-nav-search { display: none; }
  
  .edk-mobile-toggle { display: block; margin-left: auto; }
  .edk-nav-list {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--edk-primary);
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
    z-index: 100;
  }
  .edk-nav-list.open { display: flex; }
  .edk-nav-list > li > a { padding: 12px 20px; }
  .edk-dropdown {
    position: static;
    display: none;
    box-shadow: none;
    background: rgba(0,0,0,.15);
    border: none;
    padding-left: 12px;
  }
  .edk-has-dropdown.open .edk-dropdown { display: block; }
}

@media (max-width: 600px) {
  .edk-topbar-left .edk-hide-mobile { display: none; }
  .edk-logo-text { font-size: 18px; }
  .edk-featured-grid { grid-template-columns: 1fr; }
  .edk-products { grid-template-columns: 1fr; }
  .edk-features-inner { grid-template-columns: 1fr; }
  .edk-footer-grid { grid-template-columns: 1fr; }
  .edk-cta-inner { flex-direction: column; text-align: center; }
  .edk-cta-text h3 { font-size: 16px; }
  .edk-btn-phone { width: 100%; justify-content: center; }
  .edk-panel-head h3 { font-size: 13px; }
  .edk-panel-more { font-size: 11px; }
}
/* ═══ FOOTER SOCIAL ICONS ═══ */
.edk-footer-social {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.edk-footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aab4c0 !important;
  transition: background .15s, color .15s, transform .15s;
  font-size: 14px;
}
.edk-footer-social a:hover {
  background: var(--edk-primary);
  color: #fff !important;
  transform: translateY(-2px);
}
/* ═══ CONTACT PAGE — đảo cột, form rộng hơn ═══ */
/* Mặc định layout-2col đang: 240px + 1fr (sidebar hẹp + content rộng) */
/* Với contact, đổi thành: 340px (info) + 1fr (form) */

@media (min-width: 861px) {
  .section .container.layout-2col:has(.detail-side) {
    grid-template-columns: 340px 1fr;
    gap: 32px;
  }
}

@media (max-width: 860px) {
  .section .container.layout-2col:has(.detail-side) {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════
   PWA - CÀI APP TRÌNH DUYỆT (EDUKIT - ĐÃ TỐI ƯU MOBILE)
   ═══════════════════════════════════════════════ */
.btn-install-app[hidden],
.btn-install-app.is-hidden {
  display: none !important;
}

/* Khối nút bấm bên phải Header (chứa nút Cài app và Toggle Menu) */
.edk-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}

/* Nút Cài app ở Header chính (Desktop & Mobile) */
.edk-btn-install-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--edk-green, #27ae60);
  color: #ffffff !important;
  border: none;
  padding: 0 13px;
  height: 36px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(39, 174, 96, 0.28);
  -webkit-appearance: none;
  appearance: none;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
  line-height: 1;
}
.edk-btn-install-header i {
  font-size: 13px;
  line-height: 1;
}
.edk-btn-install-header:hover,
.edk-btn-install-header:active {
  background: #219653;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(39, 174, 96, 0.35);
}

/* Nút Cài app ở Topbar (chỉ hiện trên Desktop) */
.edk-btn-install-top {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--edk-green, #27ae60);
  color: #fff !important;
  border: none;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 12px !important;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.edk-btn-install-top:hover {
  background: #219653;
  transform: translateY(-1px);
}

/* Nút Cài app trong thanh điều hướng / Menu mobile */
.edk-nav-install-item {
  display: none; /* Ẩn trên desktop vì header đã có nút */
}
.edk-nav-btn-install {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--edk-green, #27ae60);
  color: #ffffff !important;
  border: none;
  padding: 11px 16px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  -webkit-appearance: none;
  appearance: none;
  transition: background .2s ease;
}
.edk-nav-btn-install:hover,
.edk-nav-btn-install:active {
  background: #219653;
}

/* Nút Cài app ở CTA Banner cuối trang */
.edk-cta-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.edk-btn-install-cta {
  background: #ffffff;
  color: var(--edk-primary);
  padding: 13px 22px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14.5px;
  border: 2px solid #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  cursor: pointer;
  transition: all .2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  -webkit-appearance: none;
  appearance: none;
}
.edk-btn-install-cta:hover {
  background: transparent;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}

/* ═══ RESPONSIVE MOBILE CHO NÚT CÀI APP (<= 860px) ═══ */
@media (max-width: 860px) {
  /* Ẩn nút topbar trên mobile để chống tràn thanh thông tin */
  .edk-btn-install-top {
    display: none !important;
  }

  /* Căn chỉnh header trên mobile */
  .edk-header {
    padding: 10px 0;
  }
  .edk-header-inner {
    gap: 8px !important;
    justify-content: space-between;
    flex-wrap: nowrap;
  }
  .edk-logo {
    min-width: 0;
    flex: 1 1 auto;
    gap: 8px;
  }
  .edk-logo-text {
    min-width: 0;
  }
  .edk-logo-text small {
    display: block;
    font-size: 10.5px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
    line-height: 1.25;
  }

  /* Khối nút bên phải header */
  .edk-header-right {
    display: flex !important;
    align-items: center;
    gap: 6px !important;
    flex-shrink: 0;
    margin-left: auto;
  }

  /* Chuẩn hóa kích thước nút Cài app trên mobile: ngang bằng nút Menu 34px */
  .edk-btn-install-header {
    height: 34px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
    gap: 4px !important;
    border-radius: 6px;
    flex-shrink: 0;
  }
  .edk-btn-install-header i {
    font-size: 11.5px !important;
  }

  /* Chuẩn hóa nút Mobile Toggle (Hamburger menu) */
  .edk-mobile-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    height: 34px !important;
    width: 34px !important;
    padding: 0 !important;
    margin-left: 0 !important;
    flex-shrink: 0;
    border-radius: 6px;
  }

  /* Nút Cài app bên trong Menu Drawer mobile */
  .edk-nav-install-item {
    display: block !important;
    padding: 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .edk-cta-actions {
    width: 100%;
    justify-content: center;
  }
}

/* ═══ MÀN HÌNH NHỎ (<= 480px) ═══ */
@media (max-width: 480px) {
  .edk-logo-text {
    font-size: 17px;
  }
  .edk-logo-text small {
    max-width: 135px;
  }
  .edk-btn-install-header {
    padding: 0 8px !important;
    font-size: 11.5px !important;
  }
}

/* ═══ MÀN HÌNH SIÊU NHỎ (<= 360px) ═══ */
@media (max-width: 360px) {
  .edk-logo-text small {
    display: none !important; /* Ẩn slogan khi màn hình quá hẹp để nhường chỗ */
  }
  .edk-btn-install-header {
    padding: 0 7px !important;
    font-size: 11px !important;
  }
}

/* ═══ CTA BANNER TRÊN MOBILE (<= 600px) ═══ */
@media (max-width: 600px) {
  .edk-cta-actions {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }
  .edk-btn-install-cta {
    width: 100% !important;
    height: 44px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    font-size: 14px;
    box-sizing: border-box;
  }
  .edk-btn-phone {
    width: 100% !important;
    height: 44px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0 16px;
  }
}

/* ═══ MODAL HƯỚNG DẪN DÀNH RIÊNG CHO IOS (IPHONE / IPAD) ═══ */
.edk-ios-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 99998;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.edk-ios-overlay.active {
  opacity: 1;
  visibility: visible;
}

.edk-ios-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 520px;
  margin: 0 auto;
  background: #ffffff;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.25);
  z-index: 99999;
  transform: translateY(105%);
  transition: transform .35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 20px 20px max(24px, env(safe-area-inset-bottom, 24px));
  font-family: inherit;
  border-top: 4px solid var(--edk-primary);
  box-sizing: border-box;
}
.edk-ios-sheet.active {
  transform: translateY(0);
}

.edk-ios-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf0f3;
  margin-bottom: 14px;
}
.edk-ios-sheet-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.edk-ios-sheet-icon {
  width: 40px;
  height: 40px;
  background: #eef5fc;
  color: var(--edk-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.edk-ios-sheet-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #1a202c;
  line-height: 1.25;
}
.edk-ios-sheet-subtitle {
  font-size: 12px;
  color: #718096;
}
.edk-ios-sheet-close {
  background: none;
  border: none;
  font-size: 26px;
  color: #a0aec0;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  transition: color .15s;
  -webkit-appearance: none;
  appearance: none;
}
.edk-ios-sheet-close:hover {
  color: #2d3748;
}

.edk-ios-inapp-alert {
  background: #fff8e6;
  border: 1px solid #ffd591;
  color: #ad6800;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.edk-ios-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}
.edk-ios-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.edk-ios-step-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--edk-primary);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.edk-ios-step-content {
  font-size: 13.5px;
  color: #2d3748;
  line-height: 1.5;
}
.edk-ios-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #eef5fc;
  color: var(--edk-primary);
  border-radius: 5px;
  font-size: 12.5px;
  margin: 0 2px;
  vertical-align: middle;
}

.edk-ios-sheet-footer {
  text-align: center;
}
.edk-ios-sheet-btn {
  width: 100%;
  background: var(--edk-primary);
  color: #ffffff;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.edk-ios-sheet-btn:hover {
  background: var(--edk-primary-dark);
}
.edk-ios-sheet-btn:active {
  transform: scale(0.99);
}

/* Toast thông báo */
#pwaToast {
  visibility: hidden;
  min-width: 260px;
  max-width: calc(100vw - 32px);
  background-color: rgba(15, 23, 42, 0.95);
  color: #ffffff;
  text-align: center;
  border-radius: 8px;
  padding: 12px 18px;
  position: fixed;
  z-index: 100000;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom, 24px));
  transform: translateX(-50%);
  font-size: 13.5px;
  line-height: 1.45;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: opacity 0.3s ease, visibility 0.3s ease;
  opacity: 0;
  pointer-events: none;
  box-sizing: border-box;
}
