/**
 * Navigation System - Native Mobile Stylesheet
 * CCT District 20 - Church of Christ in Thailand
 *
 * Scoped strictly to mobile viewports (< 1024px).
 * ZERO !important directive strictly enforced.
 * Desktop viewports (>= 1024px) remain 100% untouched.
 */

:root {
  --cct-navy-950: #0a0d20;
  --cct-navy-900: #121634;
  --cct-navy-800: #1a2258;
  --cct-navy-700: #252f75;
  --cct-navy-600: #33409a;
  --cct-navy-100: #e8ecf8;
  --cct-navy-50:  #f3f5fc;

  --cct-gold-700: #b45309;
  --cct-gold-600: #d97706;
  --cct-gold-500: #f59e0b;
  --cct-gold-400: #fbbf24;
  --cct-gold-100: #fef3c7;
  --cct-gold-50:  #fffbeb;
  --cct-gold-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);

  --cct-ink-950:  #0a0f1d;
  --cct-ink-900:  #0f172a;
  --cct-ink-700:  #334155;
  --cct-ink-500:  #64748b;
  --cct-ink-400:  #94a3b8;
  --cct-ink-300:  #cbd5e1;

  --cct-radius-sm: 8px;
  --cct-radius-md: 12px;
  --cct-radius-lg: 16px;
  --cct-radius-xl: 20px;
  --cct-radius-sheet: 26px;
  --cct-radius-pill: 9999px;

  --safe-bottom: env(safe-area-inset-bottom, 0px);

  /* Hai biến từng bị dùng mà chưa khai báo (chip color / active border). */
  --cct-ink-800: #1e293b;
  --cct-navy-200: #dbe3f4;

  /* Bề mặt sheet sáng cố định, lấy systemGroupedBackground của iOS làm gốc. */
  --sheet-bg: #f2f2f7;
  --sheet-surface: #ffffff;
  --sheet-hair: #e5e5ea;
  --sheet-grabber: #c7c7cc;
  --sheet-ink: #0a0f1d;
  --sheet-ink-soft: #64748b;
  --sheet-ink-faint: #8e8e93;
  --sheet-field: #f3f5fc;
  --sheet-tint: #e8ecf8;
}

/* ==========================================================
   DESKTOP GATE (>= 1024px): HIDE ALL MOBILE DOCK & SHEETS
   ========================================================== */
@media (min-width: 1024px) {
  .bottom-nav-dock,
  .sheet-overlay,
  .preview-toast {
    display: none;
  }
}

/* ==========================================================
   MOBILE VIEWPORT (< 1024px)
   ========================================================== */
@media (max-width: 1023.98px) {

  /* Body clearance for bottom navigation dock */
  body {
    padding-bottom: calc(70px + var(--safe-bottom));
  }

  /* Reposition scroll-to-top button above the dock */
  .scroll-top {
    bottom: calc(82px + var(--safe-bottom));
    z-index: 990;
  }

  /* Prevent background scroll when action sheet drawer is active */
  html.mobile-nav-active,
  body.mobile-nav-active {
    overflow: hidden;
    touch-action: none;
  }

  /* --------------------------------------------------------
     1. HAMBURGER TOGGLE BUTTON IN HEADER
     -------------------------------------------------------- */
  .mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 26px;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
    line-height: 1;
    padding: 8px;
    border-radius: 8px;
    margin-left: auto;
    transition: all 0.2s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-nav-toggle:hover,
  .mobile-nav-toggle:focus {
    color: var(--cct-gold-400);
    background: rgba(255, 255, 255, 0.08);
  }

  /* --------------------------------------------------------
     2. BOTTOM NAVIGATION DOCK (5 Native Tabs)
     -------------------------------------------------------- */
  .bottom-nav-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(226, 232, 240, 0.85);
    padding-top: 6px;
    padding-bottom: calc(8px + var(--safe-bottom));
    display: flex;
    align-items: center;
    justify-content: space-around;
    box-shadow: 0 -4px 18px rgba(18, 22, 52, 0.06);
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.28s ease, opacity 0.28s ease;
    will-change: transform, opacity;
  }

  .bottom-nav-dock.nav-hidden {
    transform: translateY(calc(100% + var(--safe-bottom) + 12px));
    opacity: 0;
    pointer-events: none;
  }

  .nav-dock-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: transparent;
    border: none;
    color: var(--cct-ink-400);
    font-size: 11px;
    font-weight: 500;
    /* 6px dọc: vùng chạm ~45px, đạt ngưỡng 44px (trước là 39px ở màn ≤360) */
    padding: 6px 4px;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.18s ease, transform 0.12s ease;
    position: relative;
    font-family: inherit;
    min-width: 0;
    flex: 1;
    max-width: 82px;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  .nav-dock-tab:hover {
    color: var(--cct-navy-800);
  }

  .nav-dock-tab:active {
    transform: scale(0.92);
  }

  .dock-tab-icon {
    font-size: 22px;
    line-height: 1;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .dock-tab-label {
    letter-spacing: -0.01em;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    text-align: center;
  }

  @media (max-width: 360px) {
    .dock-tab-label {
      font-size: 10px;
    }
    .dock-tab-icon {
      font-size: 20px;
    }
  }

  /* Active State */
  .nav-dock-tab.is-active {
    color: var(--cct-navy-900);
    font-weight: 700;
  }

  .nav-dock-tab.is-active .dock-tab-icon {
    color: var(--cct-gold-600);
    transform: scale(1.1);
  }

  .dock-active-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--cct-gold-500);
    position: absolute;
    top: 1px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .nav-dock-tab.is-active .dock-active-dot {
    opacity: 1;
    transform: scale(1);
  }

  .dock-tab-badge {
    position: absolute;
    top: 3px;
    right: 14px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ef4444;
    border: 1.5px solid #ffffff;
  }

  /* --------------------------------------------------------
     3. NATIVE MORE SHEET / ACTION DRAWER
     -------------------------------------------------------- */
  .sheet-overlay {
    position: fixed;
    inset: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* iOS chỉ dim nền, không blur toàn màn hình: nhẹ GPU hơn trên máy tầm trung. */
    background: rgba(0, 0, 0, 0.40);
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.42s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  .sheet-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .sheet-container {
    background: var(--sheet-bg);
    color: var(--sheet-ink);
    border-radius: var(--cct-radius-sheet) var(--cct-radius-sheet) 0 0;
    /* 86vh là fallback cho trình duyệt cũ. dvh = viewport động: trên iOS Safari
       khi thanh địa chỉ hiện ra, 86vh tính theo viewport lớn nên đáy sheet bị
       đẩy khỏi màn hình. max-height:100% để khi bàn phím ảo hiện (main.js thu
       bottom của overlay theo visualViewport) sheet co đúng vùng còn nhìn thấy. */
    height: 86vh;
    height: 86dvh;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -10px 40px rgba(10, 13, 32, 0.28);
    transform: translateY(100%);
    /* Easing sheet của iOS: ra đi nhanh, về đích chậm, không nảy. */
    transition: transform 0.42s cubic-bezier(0.32, 0.72, 0, 1);
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }

  .sheet-overlay.is-open .sheet-container {
    transform: translateY(0);
  }

  /* Drag Handle Zone — iOS: grabber nằm cùng một mặt với header, KHÔNG có vạch kẻ */
  .sheet-drag-zone {
    padding: 10px 0 6px;
    display: flex;
    justify-content: center;
    cursor: grab;
    background: var(--sheet-surface);
    flex-shrink: 0;
    /* none: trình duyệt không giành cử chỉ pan với JS kéo sheet */
    touch-action: none;
  }

  .sheet-drag-pill {
    width: 36px;
    height: 5px;
    background: var(--sheet-grabber);
    border-radius: var(--cct-radius-pill);
  }

  /* Khối đỉnh: header (logo + X) và dải tìm kiếm được bọc chung, để khi cuộn
     xuống có thể xếp search cùng hàng với X bằng grid — không dùng toạ độ cứng. */
  .sheet-top {
    position: relative;
    flex-shrink: 0;
    background: var(--sheet-surface);
    /* JS animate chiều cao thật của khối đỉnh; cắt phần tràn trong lúc co/giãn */
    overflow: hidden;
  }

  /* Sheet Top Header: KHÔNG position:relative — để brand khi collapsed bám
     theo .sheet-top (cùng toạ độ như lúc hiện), không bị nhảy sang cột nút X. */
  .sheet-header {
    background: var(--sheet-surface);
    padding: 12px 18px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    /* Mở rộng vùng kéo xuống đóng ra cả header, không chỉ 21px quanh pill */
    touch-action: none;
  }

  .sheet-brand-group {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
    /* Không dùng CSS transition: logo được animate chung nhịp với FLIP của
       search/height trong main.js, tránh khởi động lệch một khung hình. */
  }

  /* Cuộn xuống: vùng logo ẩn, ô tìm kiếm DOCK LÊN CÙNG HÀNG với nút X.
     Chỉ trả lại nguyên trạng khi cuộn chạm trần (JS: scrollTop = 0).
     Grid 2 cột thay vì absolute/top cứng -> không lệch khi đổi padding. */
  .sheet-container.is-header-collapsed .sheet-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border-bottom: 1px solid var(--sheet-hair);
  }

  /* Giữ brand trong DOM (absolute) để opacity/transform còn animate được.
     display:none ở vòng trước là lý do hiệu ứng bị "khô". */
  .sheet-container.is-header-collapsed .sheet-brand-group {
    position: absolute;
    left: 18px;
    top: 12px;
    opacity: 0;
    transform: translateY(-10px) scale(0.97);
    filter: blur(2px);
    pointer-events: none;
  }

  .sheet-container.is-header-collapsed .sheet-header {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
    padding: 0;
    background: transparent;
  }

  .sheet-container.is-header-collapsed .sheet-search-wrap {
    grid-column: 1;
    grid-row: 1;
    padding: 0;
    border-bottom: 0;
    /* Nền đặc + nằm trên logo: thanh search trượt lên sẽ "nuốt" logo đang mờ
       thay vì để chữ logo lộ xuyên qua ô input. */
    position: relative;
    z-index: 2;
    background: var(--sheet-surface);
  }

  .sheet-brand-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    background: transparent;
  }

  .sheet-brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }

  .sheet-brand-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--sheet-ink);
    line-height: 1.2;
    margin: 0;
  }

  .sheet-brand-sub {
    font-size: 11px;
    color: var(--sheet-ink-soft);
    line-height: 1.2;
    display: block;
  }

  .sheet-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .sheet-close-circle {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--sheet-field);
    border: 1px solid var(--sheet-hair);
    color: var(--sheet-ink-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.15s ease;
  }

  /* Vùng chạm 44×44pt như iOS, nhưng kích thước nhìn thấy vẫn 32px */
  .sheet-close-circle::after {
    content: "";
    position: absolute;
    inset: -6px;
  }

  .sheet-close-circle:active {
    transform: scale(0.92);
    background: var(--sheet-tint);
  }

  /* Sheet Search Filter — vạch kẻ duy nhất còn lại, đúng kiểu UISearchController */
  .sheet-search-wrap {
    padding: 10px 18px;
    background: var(--sheet-surface);
    border-bottom: 1px solid var(--sheet-hair);
    flex-shrink: 0;
  }

  .sheet-search-input-box {
    position: relative;
  }

  .sheet-search-input {
    width: 100%;
    height: 36px;
    border-radius: 10px;
    background: var(--sheet-field);
    border: 1px solid transparent;
    /* Chừa 38px bên phải cho nút xoá — luôn chừa để chữ không nhảy khi nút hiện */
    padding: 0 38px 0 34px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    color: var(--sheet-ink);
    transition: background 0.18s ease, border-color 0.18s ease;
  }

  .sheet-search-input::placeholder {
    color: var(--sheet-ink-faint);
  }

  .sheet-search-input:focus {
    background: var(--sheet-surface);
    border-color: var(--cct-navy-600);
  }

  /* Nút xoá nhanh trong ô tìm kiếm (trước đây không có, phải xoá từng ký tự) */
  .sheet-search-clear {
    position: absolute;
    right: 4px;
    top: 3px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--sheet-ink-faint);
    font-size: 13px;
    cursor: pointer;
    padding: 0;
  }

  .sheet-search-clear::after {
    content: "";
    position: absolute;
    inset: -7px;
  }

  .sheet-search-clear:active {
    background: var(--sheet-tint);
  }

  .sheet-search-icon {
    position: absolute;
    left: 10px;
    top: 10px;
    font-size: 16px;
    color: var(--sheet-ink-faint);
    pointer-events: none;
  }

  /* Sheet Scrollable Body */
  .sheet-body-scroll {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* 30px đệm + home indicator: trước đây footer sheet bị che trên iPhone notch */
    padding: 14px 18px calc(30px + var(--safe-bottom));
    /* Cuộn tới đáy sheet không kéo dính cả trang (rubber-band kiểu web) */
    overscroll-behavior-y: contain;
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  /* Section Title — dính khi cuộn, đúng grouped table của iOS */
  .sheet-section-title {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--sheet-bg);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--sheet-ink-soft);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 4px;
  }

  .sheet-section-badge {
    font-size: 10.5px;
    font-weight: 600;
    background: var(--sheet-tint);
    color: var(--cct-navy-800);
    padding: 1px 7px;
    border-radius: var(--cct-radius-pill);
  }

  /* iOS Grouped Cell: không viền, không shadow — chỉ nền trắng trên nền grouped */
  .ios-group-card {
    background: var(--sheet-surface);
    border-radius: var(--cct-radius-lg);
    overflow: hidden;
  }

  /* Lưới chip 2 cột cho nhóm ngắn (9 trang Giới thiệu, 8 tỉnh).
     Dùng lưới thay vì 9 dòng đầy đủ để sheet không dài thêm ~560px. */
  .sheet-chip-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .sheet-chip {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    padding: 8px 10px;
    background: var(--sheet-surface);
    border: 1px solid var(--sheet-hair);
    border-radius: 12px;
    color: var(--cct-ink-800);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
  }

  .sheet-chip:active {
    background: var(--sheet-field);
    border-color: var(--cct-navy-200);
  }

  /* Global `a:hover` đổi màu chữ sang vàng accent; chip phải giữ màu navy,
     nếu không chữ nhãn sẽ nhá vàng mỗi lần chạm. */
  .sheet-chip:hover,
  .sheet-chip:focus-visible {
    color: var(--cct-ink-800);
  }

  .sheet-chip i {
    flex-shrink: 0;
    font-size: 14px;
    color: var(--cct-navy-600);
  }

  .sheet-chip span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .sheet-chip-count {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--sheet-ink-soft);
    background: var(--sheet-field);
    border-radius: var(--cct-radius-pill);
    padding: 1px 6px;
  }

  /* Số mục lẻ (9 trang Giới thiệu) -> chip cuối chiếm cả hàng cho cân lưới */
  .sheet-chip-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  /* Trạng thái rỗng của ô tìm kiếm */
  .sheet-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 36px 20px 28px;
    text-align: center;
    color: var(--sheet-ink-soft);
  }

  .sheet-empty.d-none {
    display: none;
  }

  .sheet-empty i {
    font-size: 26px;
    color: var(--sheet-grabber);
  }

  .sheet-empty p {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
  }

  .sheet-empty button {
    margin-top: 2px;
    border: 1px solid var(--cct-navy-200);
    background: var(--sheet-surface);
    color: var(--sheet-ink);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--cct-radius-pill);
    cursor: pointer;
  }

  .sheet-empty button:active {
    background: var(--sheet-field);
  }

  .ios-list-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    text-decoration: none;
    color: var(--sheet-ink);
    cursor: pointer;
    transition: background 0.3s ease;
  }

  /* Separator inset: bắt đầu sau icon (14px pad + 32px badge + 12px gap), đúng iOS */
  .ios-list-row::after {
    content: "";
    position: absolute;
    left: 58px;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--sheet-hair);
  }

  /* JS gắn is-last-visible sau mỗi lần lọc: dòng cuối không còn vạch lửng */
  .ios-list-row.is-last-visible::after {
    display: none;
  }

  /* iOS: highlight hiện ngay lúc chạm, mờ dần khi nhả ra */
  .ios-list-row:active {
    background: var(--sheet-field);
    transition: none;
  }

  .ios-row-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
  }

  .ios-icon-badge {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
  }

  /* Badge Colors */
  .badge-indigo  { background: #e0e7ff; color: #4338ca; }
  .badge-blue    { background: #e0f2fe; color: #0284c7; }
  .badge-cyan    { background: #cffafe; color: #0891b2; }
  .badge-amber   { background: #fef3c7; color: #d97706; }
  .badge-purple  { background: #f3e8ff; color: #7e22ce; }
  .badge-emerald { background: #d1fae5; color: #059669; }
  .badge-rose    { background: #ffe4e6; color: #e11d48; }
  .badge-sky     { background: #e0f2fe; color: #0369a1; }
  .badge-orange  { background: #ffedd5; color: #ea580c; }
  .badge-pink    { background: #fce7f3; color: #db2777; }

  .ios-row-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--sheet-ink);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ios-row-desc {
    font-size: 11px;
    color: var(--sheet-ink-faint);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Disclosure indicator của iOS: mỏng, xám nhạt, không chiếm trọng lượng */
  .ios-row-right {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--sheet-grabber);
    font-size: 13px;
    flex-shrink: 0;
  }

  .ios-count-pill {
    font-size: 11px;
    font-weight: 600;
    background: var(--sheet-field);
    color: var(--sheet-ink-soft);
    padding: 2px 7px;
    border-radius: var(--cct-radius-pill);
    border: 1px solid var(--sheet-hair);
  }

  /* Quick Contact Card */
  .contact-action-card {
    background: linear-gradient(135deg, var(--cct-navy-900) 0%, var(--cct-navy-800) 100%);
    border-radius: var(--cct-radius-lg);
    padding: 16px;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(18, 22, 52, 0.08);
  }

  .contact-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
  }

  .contact-card-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .contact-hotline-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--cct-gold-400);
    background: rgba(245, 158, 11, 0.18);
    padding: 2px 8px;
    border-radius: var(--cct-radius-pill);
    border: 1px solid rgba(245, 158, 11, 0.35);
  }

  .contact-buttons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  /* Khi DB chưa có số điện thoại, lưới chỉ còn 3 nút -> nút cuối chiếm cả hàng,
     tránh ô trống lẻ loi bên cạnh. */
  .contact-buttons-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .btn-contact-quick {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
    font-family: inherit;
  }

  .btn-call-direct {
    background: var(--cct-gold-gradient);
    color: var(--cct-navy-950);
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.28);
  }

  .btn-call-direct:active {
    transform: scale(0.95);
  }

  .btn-contact-map {
    background: rgba(6, 182, 212, 0.16);
    color: #a5f3fc;
    border: 1px solid rgba(6, 182, 212, 0.35);
  }

  .btn-contact-map:active {
    transform: scale(0.95);
    background: rgba(6, 182, 212, 0.26);
  }

  .btn-contact-fb {
    background: rgba(24, 119, 242, 0.18);
    color: #bfdbfe;
    border: 1px solid rgba(24, 119, 242, 0.40);
  }

  .btn-contact-fb:active {
    transform: scale(0.95);
    background: rgba(24, 119, 242, 0.30);
  }

  .btn-contact-yt {
    background: rgba(239, 68, 68, 0.18);
    color: #fecaca;
    border: 1px solid rgba(239, 68, 68, 0.40);
  }

  .btn-contact-yt:active {
    transform: scale(0.95);
    background: rgba(239, 68, 68, 0.30);
  }


  .sheet-footer-info {
    text-align: center;
    font-size: 11px;
    color: var(--sheet-ink-faint);
    padding: 10px 0 16px;
    line-height: 1.5;
  }

  /* --------------------------------------------------------
     4. INTERACTIVE TOAST FEEDBACK
     -------------------------------------------------------- */
  .preview-toast {
    position: fixed;
    bottom: calc(76px + var(--safe-bottom));
    left: 50%;
    transform: translateX(-50%) translateY(40px);
    background: rgba(18, 22, 52, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff;
    padding: 9px 18px;
    border-radius: var(--cct-radius-pill);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
    font-size: 12.5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1200;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.24s ease;
    white-space: nowrap;
  }

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

  /* --------------------------------------------------------
     5. ACCESSIBILITY (iOS HIG)
     Giao diện CHỈ có một chế độ sáng, cố định theo nhận diện thương hiệu —
     không đổi màu theo prefers-color-scheme của máy (Sếp chốt 2026-11-09).
     -------------------------------------------------------- */

  /* Reduce Motion: iOS tắt hoàn toàn chuyển động của sheet khi người dùng bật */
  @media (prefers-reduced-motion: reduce) {
    .sheet-overlay,
    .sheet-container,
    .bottom-nav-dock,
    .preview-toast,
    .nav-dock-tab,
    .dock-tab-icon,
    .dock-active-dot,
    .ios-list-row,
    .sheet-chip,
    .sheet-close-circle,
    .sheet-brand-group,
    .sheet-header,
    .sheet-top,
    .btn-contact-quick {
      transition: none;
      animation: none;
    }
  }
}
