/* Thành phần dùng chung cho mọi trang (xem DESIGN.md). Trang chủ thêm home.css, hoạt cảnh ở scenes.css. */

/* Nhãn mục (chữ hoa nhỏ, xanh) */
.eyebrow { font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: .75rem; }

/* Nút tải app (đen; bản sáng dùng trên nền xanh) */
.store-buttons { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.store-btn { display: inline-flex; align-items: center; gap: .7rem; min-height: 56px; padding: .55rem 1.25rem .55rem 1rem;
  background: var(--ink); color: var(--on-ink); border-radius: 14px; text-decoration: none; font-weight: 700; font-size: 1.05rem; line-height: 1.15;
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out); }
.store-btn:hover { background: var(--ink-hover); transform: translateY(-1px); }
.store-btn:active { transform: scale(.97); transition-duration: var(--dur-press); }
.store-btn span { display: flex; flex-direction: column; }
.store-btn small { font-size: .75rem; font-weight: 500; opacity: .8; }
.store-buttons-light { justify-content: center; }
.store-buttons-light .store-btn { background: #fff; color: #0B1B2E; }
.store-buttons-light .store-btn:hover { background: var(--accent-soft); }

@media (max-width: 520px) {
    .store-buttons:not(.store-buttons-light) .store-btn { flex: 1 1 100%; }
}

/* Nhãn tính năng có nền */
.eyebrow-chip { display: inline-block; padding: .3rem .75rem; border-radius: 999px; letter-spacing: .04em; }
/* Nhãn dùng nền nhạt + chữ đậm cùng tông để đủ tương phản 4.5:1 */
.eyebrow-chip.tint-purple { background: var(--chip-purple-bg); color: var(--chip-purple-fg); }
.eyebrow-chip.tint-orange { background: var(--chip-orange-bg); color: var(--chip-orange-fg); }
.eyebrow-chip.tint-blue { background: var(--chip-blue-bg); color: var(--chip-blue-fg); }
.eyebrow-chip.tint-green { background: var(--chip-green-bg); color: var(--chip-green-fg); }

.check-list { list-style: none; display: grid; gap: .8rem; }
.check-list li { position: relative; padding-left: 2rem; color: var(--body); }
.check-list li::before { content: ""; position: absolute; left: 0; top: .2em; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--go-soft); }
.check-list li::after { content: ""; position: absolute; left: 0; top: .2em; width: 1.3rem; height: 1.3rem; background: var(--go);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/62% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/62% no-repeat; }

/* ── Ô icon kiểu Cài đặt iPhone (màu cố định theo bảng SettingsRowTint) ── */
.icon-tile { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #fff; flex-shrink: 0; }
.tint-green { background: var(--tint-green); }
.tint-blue { background: var(--tint-blue); }
.tint-purple { background: var(--tint-purple); }
.tint-orange { background: var(--tint-orange); }
.tint-pink { background: var(--tint-pink); }
.tint-slate { background: var(--tint-slate); }
.tint-teal { background: var(--tint-teal); }
.tint-yellow { background: var(--tint-yellow); }
.tint-gray { background: var(--tint-gray); }
.tint-fb { background: #1877F2; }

/* ── Các bước ── */
.step-list { list-style: none; display: grid; gap: 1rem; counter-reset: none; }
@media (min-width: 640px) { .step-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .step-list { grid-template-columns: repeat(4, 1fr); } }
.step-list li { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 1.5rem; }
.step-num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-fill); color: #fff; font-weight: 800; font-variant-numeric: tabular-nums; }
.step-list h3 { margin: .9rem 0 .35rem; }
.step-list p { font-size: .98rem; color: var(--body); }
.step-note a { color: var(--accent-soft-text); }
.step-note { margin-top: 1.5rem; padding: 1rem 1.25rem; background: var(--accent-soft); color: var(--ink); border-radius: var(--radius); font-size: .98rem; }

/* ── Bảng giá rút gọn ── */
.price-grid { display: grid; gap: 1rem; }
@media (min-width: 720px) { .price-grid { grid-template-columns: repeat(3, 1fr); } }
.price-grid:empty { display: none; }
.price-card { position: relative; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 1.6rem; border: 2px solid transparent; }
.price-card.best { border-color: var(--accent-fill); }
.price-badge { position: absolute; top: -12px; left: 1.4rem; background: var(--accent-fill); color: #fff; font-size: .78rem; font-weight: 700; padding: .25rem .7rem; border-radius: 999px; }
.price-name { font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.price-value { margin-top: .5rem; font-size: 2rem; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.price-per-day { color: var(--ink); font-weight: 600; font-size: .95rem; }
.price-days { margin-top: .25rem; color: var(--ink-muted); font-size: .92rem; }
.price-more { margin-top: 1.5rem; text-align: center; }

/* Thẻ giá hiện dần sau khi tải xong dữ liệu */
.price-card { animation: fade-up var(--dur-enter) var(--ease-out) both; animation-delay: calc(var(--i, 0) * 40ms); }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── Thẻ liên hệ (Hotline / Zalo / Gia hạn): viên trắng, vòng màu chứa icon, tên đậm + dòng hướng dẫn ── */
.cpill { display: inline-flex; align-items: center; gap: .8rem; min-height: 64px; padding: 8px 22px 8px 8px; border-radius: 999px;
  background: var(--surface); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-card);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.cpill:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(var(--shadow-ink), .12); }
.cpill:active { transform: scale(.97); transition-duration: var(--dur-press); }
.cpill-icon { display: grid; place-items: center; flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; color: #fff; }
.cpill-icon.is-phone { background: radial-gradient(circle at 30% 25%, #3CC765, var(--call-green)); }
.cpill-icon.is-zalo { background: var(--zalo-blue); font-weight: 800; font-size: .9rem; letter-spacing: -.01em; }
.cpill-icon.is-renew { background: var(--accent-fill); }
.cpill-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.cpill-text b { font-size: 1.02rem; color: var(--ink); }
.cpill-text small { font-size: .82rem; color: var(--ink-muted); }

/* ── Đầu trang con: dải xanh nhạt + hàng nhà mờ, thẻ nội dung đè lên mép dưới ── */
.page-head { position: relative; overflow: hidden; padding: clamp(2.25rem, 6vw, 3.75rem) 0 clamp(4rem, 9vw, 5.5rem);
  background: linear-gradient(180deg, var(--hero-tint) 0%, var(--bg) 92%); }
.page-head .container { position: relative; z-index: 1; }
.page-head h1 { font-size: clamp(1.9rem, 5vw, 2.75rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.12; }
.page-meta { margin-top: .6rem; color: var(--ink-muted); font-size: var(--fs-small); }
.page-lead { margin-top: .8rem; max-width: var(--measure); color: var(--body); font-size: 1.1rem; }
.page-skyline { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(70px, 10vw, 110px); color: var(--skyline); opacity: .65;
  -webkit-mask-image: linear-gradient(to top, #000 30%, transparent); mask-image: linear-gradient(to top, #000 30%, transparent); }
.page-body { position: relative; z-index: 1; margin-top: clamp(-3.25rem, -6vw, -2.5rem); padding-bottom: clamp(3rem, 7vw, 4.5rem); flex-grow: 1; }

@media (prefers-reduced-motion: reduce) {
  .store-btn:hover, .cpill:hover { transform: none; }
  .price-card { animation: none; }
}

/* ══ Sửa UI/UX 14/11/2026 (giữ phong cách "Thân quen", gom màu) ══
   Một màu nhấn (xanh ZaGo) cho mọi ô icon, nhãn, dấu tích. Ngoại lệ duy nhất: vòng "Zalo" (logo).
   Màu trạng thái (xanh lá/vàng/đỏ) chỉ còn trong màn app minh họa. */
.icon-tile[class*="tint-"] { background: var(--accent-fill); color: #fff; }
.eyebrow-chip[class*="tint-"] { background: var(--accent-soft); color: var(--accent-soft-text); }
.check-list li::before { background: var(--accent-soft); }
.check-list li::after { background: var(--accent); }
.cpill-icon.is-phone { background: var(--accent-fill); }

/* Nút tải: hai nút bằng nhau, chữ căn trái, logo Google Play 4 màu */
.store-btn { width: 220px; justify-content: flex-start; text-align: left; }
.store-btn svg { width: 26px; height: 26px; flex-shrink: 0; }
/* Điện thoại: hai nút tải và hai thẻ liên hệ nằm cạnh nhau, đầu trang ngắn lại */
@media (max-width: 520px) {
  .store-buttons { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
  .store-btn span { white-space: nowrap; }
  .store-buttons .store-btn, .store-buttons:not(.store-buttons-light) .store-btn { width: auto; min-width: 0; padding: .5rem .7rem; gap: .5rem; font-size: .95rem; }
  .store-btn svg { width: 22px; height: 22px; }
  .store-btn small { font-size: .68rem; white-space: nowrap; }
  .hero .hero-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .hero-contact .cpill { min-height: 56px; padding: 6px 10px 6px 6px; gap: .5rem; }
  .hero-contact .cpill-icon { width: 40px; height: 40px; }
  .hero-contact .cpill-text b { font-size: .95rem; }
  .hero-contact .cpill-text small { font-size: .75rem; }
}

/* Thẻ liên hệ đầu trang: hai thẻ rộng bằng nhau */
.hero-contact { max-width: 452px; }
.hero-contact .cpill { flex: 1 1 0; min-width: 0; padding-right: 16px; }

/* Cụm nút nổi gọn: một hàng, chỉ tên nút — không che nội dung */
.fab-dock { flex-direction: row; align-items: center; gap: 8px; }
.fab-dock .cpill { min-height: 48px; padding: 4px 16px 4px 4px; gap: .55rem; }
.fab-dock .cpill-icon { width: 40px; height: 40px; }
.fab-dock .cpill-icon svg { width: 18px; height: 18px; }
.fab-dock .cpill-icon.is-zalo { font-size: .78rem; }
.fab-dock .cpill-text b { font-size: .95rem; white-space: nowrap; }
.fab-dock .cpill-text small { display: none; }
@media (max-width: 520px) {
  .fab-dock { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); justify-content: center; }
  .fab-dock .cpill { flex: 1 1 0; min-width: 0; padding-right: 10px; gap: .45rem; }
  .fab-dock .cpill-icon { width: 36px; height: 36px; }
  .fab-dock .cpill-icon.is-zalo { font-size: .7rem; }
  .fab-dock .cpill-text b { font-size: .86rem; overflow: hidden; text-overflow: ellipsis; }
  .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* Khung giữ chỗ thẻ giá khi đang tải (trang /pricing) */
.price-skel { min-height: 235px; border-radius: var(--radius-lg); background: linear-gradient(100deg, var(--surface) 30%, var(--surface-sunk) 50%, var(--surface) 70%) 0 0 / 300% 100%;
  box-shadow: var(--shadow-card); animation: skel 1.4s linear infinite; }
@keyframes skel { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .price-skel { animation: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Thẻ giá trên điện thoại gọn hơn (trước: mỗi thẻ gần nửa màn hình) */
@media (max-width: 520px) {
  .price-card { padding: 1.15rem 1.25rem; }
  .price-value { font-size: 1.65rem; margin-top: .25rem; }
  .price-card .btn { margin-top: .9rem; }
}
