/* ============================================================
   desktopchill — trang chủ: giới thiệu Studio, hàng thông số + Tìm vibe gọn, nút Gửi shop / Danh sách góc trái dưới
   Nạp SAU glass.css (2026-11-23).
   ============================================================ */

/* ---------- Giới thiệu Studio (ngay dưới hero) ---------- */
.studio-promo {
  max-width: 1280px; margin: 52px auto 0; padding: 18px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 46px; align-items: center; border-radius: var(--r-xl, 32px);
  background: var(--glass-bg, rgba(255, 255, 255, .06)); border: 1px solid var(--glass-border, rgba(255, 255, 255, .1));
  box-shadow: var(--glass-shadow, 0 18px 50px rgba(0, 0, 0, .35)); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
}
.sp-media {
  position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 24px; overflow: hidden; background: #0b0c10;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset, 0 20px 50px rgba(0, 0, 0, .35); isolation: isolate;
}
.sp-video { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease, ease); }
@media (hover: hover) and (pointer: fine) { .sp-media:hover .sp-video { transform: scale(1.02); } }
.sp-media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); pointer-events: none; }
.sp-live {
  position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 13px;
  border-radius: 999px; font-size: 13px; font-weight: 600; color: #fff; background: rgba(10, 11, 14, .62);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .18);
}
.sp-live i { width: 7px; height: 7px; border-radius: 50%; background: #34c759; box-shadow: 0 0 0 3px rgba(52, 199, 89, .25); }
.sp-text { padding: 10px 26px 10px 0; }
.sp-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-text, #ff8a73);
}
.sp-eyebrow svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.sp-title { margin: 12px 0 12px; font-size: clamp(1.9rem, 3.3vw, 2.85rem); line-height: 1.15; font-weight: 750; letter-spacing: -.025em; color: var(--text); }
.sp-sub { margin: 0; color: var(--text-dim); font-size: 1.1rem; line-height: 1.6; }
.sp-points { list-style: none; margin: 22px 0 28px; padding: 0; display: grid; gap: 13px; }
.sp-points li { display: flex; align-items: center; gap: 14px; font-size: 1.02rem; color: var(--text); font-weight: 500; }
.sp-points svg {
  flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  color: var(--accent-text, #ff8a73); background: color-mix(in srgb, var(--accent, #ff6a58) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent, #ff6a58) 22%, transparent);
}
.sp-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
.sp-go {
  display: inline-flex; align-items: center; gap: 10px; height: 58px; padding: 0 32px; border-radius: 999px; font-weight: 700; font-size: 1.08rem;
  background: var(--text); color: var(--bg); border: 0; text-decoration: none;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .3); transition: transform .2s var(--ease, ease), box-shadow .2s var(--ease, ease);
}
.sp-go:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(0, 0, 0, .38); }
.sp-go:active { transform: translateY(0) scale(.98); }
.sp-go svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease, ease); }
.sp-go:hover svg { transform: translateX(3px); }
.sp-free { font-size: .92rem; color: var(--text-faint, var(--text-dim)); }

/* ---------- Hàng thông số + Tìm vibe (gọn, chung một hàng trên máy tính) ---------- */
.hb-row { max-width: 1080px; margin: 14px auto 0; display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); gap: 14px; align-items: stretch; }
.hb-row .stat-band {
  max-width: none; margin: 0; padding: 14px 6px; gap: 0; border-radius: 22px; align-items: center;
}
.hb-row .stat { padding: 2px 10px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.hb-row .stat-num { font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -.03em; }
.hb-row .stat-label { margin-top: 5px; font-size: .76rem; line-height: 1.35; font-weight: 500; }
.hb-row .quiz-cta {
  max-width: none; margin: 0; padding: 12px 14px; gap: 14px; border-radius: 22px;
  grid-template-columns: auto minmax(0, 1fr) auto;
}
.hb-row .qc-art { width: 92px; height: 56px; }
.hb-row .qc-art img { width: 64px; top: 4px; border-radius: 8px; }
.hb-row .qc-art img:nth-child(2) { left: 14px; }
.hb-row .qc-art img:nth-child(3) { left: 28px; }
.hb-row .qc-title { font-size: 1rem; line-height: 1.3; white-space: nowrap; }
.hb-row .qc-sub { font-size: .8rem; line-height: 1.4; }
.hb-row .qc-go { height: 40px; padding: 0 14px; font-size: .85rem; border-radius: 999px; white-space: nowrap; }

@media (max-width: 1023px) {
  .hb-row { grid-template-columns: 1fr; margin: 12px 16px 0; }
  .studio-promo { margin: 32px 16px 0; grid-template-columns: 1fr; gap: 18px; padding: 10px; border-radius: 26px; }
  .sp-text { padding: 2px 10px 12px; }
}
@media (max-width: 640px) {
  .studio-promo { margin: 24px 14px 0; }
  .sp-media { border-radius: 16px; }
  .studio-promo { padding: 10px; }
  .sp-title { font-size: 1.75rem; }
  .sp-sub { font-size: 1rem; }
  .sp-points { margin: 16px 0 20px; gap: 10px; }
  .sp-points li { font-size: .95rem; }
  .sp-points svg { width: 34px; height: 34px; padding: 8px; }
  .sp-go { height: 54px; width: 100%; justify-content: center; font-size: 1.02rem; }
  .sp-free { width: 100%; text-align: center; }
  .hb-row { margin: 10px 14px 0; gap: 10px; }
  /* 4 thông số trên 1 hàng, chữ nhỏ gọn */
  .hb-row .stat-band { grid-template-columns: repeat(4, 1fr); max-width: none; padding: 12px 2px; border-radius: 18px; }
  .hb-row .stat { padding: 0 4px; border-right: 1px solid var(--border) !important; }
  .hb-row .stat:last-child { border-right: 0 !important; }
  .hb-row .stat-num { font-size: 1.1rem; }
  .hb-row .stat-label { font-size: .68rem; margin-top: 4px; }
  /* Tìm vibe: 1 hàng ảnh + chữ + nút */
  .hb-row .quiz-cta { grid-template-columns: auto minmax(0, 1fr); text-align: left; padding: 12px; gap: 10px 12px; border-radius: 18px; }
  .hb-row .qc-art { margin: 0; width: 76px; height: 48px; }
  .hb-row .qc-art img { width: 52px; }
  .hb-row .qc-art img:nth-child(2) { left: 11px; }
  .hb-row .qc-art img:nth-child(3) { left: 22px; }
  .hb-row .qc-go { grid-column: 1 / -1; width: 100%; height: 42px; justify-content: center; }
}

/* ---------- Nút Gửi shop + Danh sách: góc trái dưới; mèo trợ lý sang phải (trên nút Đặt ngay) ---------- */
.fab-favs { left: 18px !important; right: auto !important; bottom: 18px !important; }
.cat-helper { left: auto; right: 22px; bottom: 146px; }   /* trên nút Lướt kiểu TikTok */
@media (max-width: 760px) {
  .fab-favs { left: 14px !important; bottom: calc(86px + env(safe-area-inset-bottom, 0px)) !important; }
  .cat-helper { left: auto; right: 14px; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
}
/* ---------- Nút "Lướt kiểu TikTok": máy tính hiện nút nổi góc phải dưới, trên nút Tư vấn Zalo; điện thoại đã có trên thanh dưới ---------- */
@media (min-width: 761px) {
  /* ngay trên nút Tư vấn Zalo (góc phải dưới) */
  .fab-feed { display: inline-flex !important; left: auto; right: 18px; bottom: 84px; }
}

@media (prefers-reduced-motion: reduce) { .sp-video, .sp-go, .sp-go svg { transition: none; } }

/* ---------- Đang lướt kiểu TikTok / xem toàn màn hình: ẩn nút nổi của trang (trong phần lướt đã có nút Tư vấn Zalo riêng) ---------- */
html.dc-cover .fab-zalo, html.dc-cover .fab-feed, html.dc-cover .mobile-cta, html.dc-cover .cat-helper, html.dc-cover .cat-bubble { display: none !important; }

/* ---------- Chế độ lướt: nút Tư vấn Zalo cùng kiểu với nút nổi ngoài trang ---------- */
.feed .feed-send {
  height: 46px; padding: 0 18px 0 14px; gap: 9px; border-radius: 999px; font-weight: 700; font-size: .95rem; letter-spacing: -.01em; color: #fff;
  background: var(--accent-grad, linear-gradient(120deg, #cf331c, #dc4a2c)); border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 10px 28px var(--accent-shadow, rgba(220, 74, 44, .45)), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.feed .feed-send svg { width: 20px; height: 20px; }
/* nút Tự lướt (cột nút bên phải) + thanh thời gian dưới cùng */
.fd-act.fd-auto.on > svg { background: var(--accent-grad, linear-gradient(120deg, #cf331c, #dc4a2c)); border-color: rgba(255, 255, 255, .3); }
.fd-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 4; background: rgba(255, 255, 255, .16); opacity: 0; transition: opacity .2s; pointer-events: none; }
.fd-prog.on { opacity: 1; }
.fd-prog i { display: block; height: 100%; transform: scaleX(0); transform-origin: left center; background: var(--accent-grad, linear-gradient(120deg, #cf331c, #dc4a2c)); }
.feed.full-on .fd-prog { bottom: 0; }
/* nút Tư vấn Zalo: góc phải bên dưới, ngay dưới cột nút (♥ / Toàn màn / Tự lướt); chữ tên mẫu chừa chỗ cho nút */
.feed > .feed-send { position: absolute; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 4; margin: 0; }
.feed .fd-info { right: 180px; }
.feed.full-on > .feed-send { display: none; }
/* nút Nhạc (cột nút bên phải): tắt nhạc thì icon mờ đi */
.fd-act.fd-music:not(.on) > svg { opacity: .7; }

/* ===== Studio là trọng tâm (28/11/2026) ===== */
.hero-studio svg { flex: none; }
.sp-browse { color: var(--text); font-weight: 600; font-size: .98rem; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .28); padding-bottom: 2px; }
.sp-browse:hover { border-bottom-color: currentColor; }
.studio-promo { box-shadow: 0 0 0 1px rgba(255, 106, 88, .22), 0 30px 80px rgba(0, 0, 0, .35); }
/* menu: mục "Tự thiết kế" nổi bật như nút */
.nav-studio { color: #fff !important; background: linear-gradient(135deg, #cf331c, #dc4a2c); padding: 6px 12px !important; border-radius: 999px; box-shadow: 0 6px 16px rgba(220, 74, 44, .35); }
.nav-studio:hover { filter: brightness(1.08); }

/* ===== Dải LED chạy quanh viền khung Studio (28/11/2026) ===== */
@property --sp-led { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.studio-promo { position: relative; isolation: isolate; max-width: min(1280px, calc(100% - 32px)); }
.studio-promo::before, .studio-promo::after {
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; padding: 3px; pointer-events: none;
  background: conic-gradient(from var(--sp-led),
    transparent 0deg, #ff3d2e 30deg, #ff8a3d 55deg, #ffd36b 75deg, #fff4d6 85deg, transparent 120deg,
    transparent 180deg, #ff3d6e 210deg, #ff8a3d 235deg, #ffd36b 255deg, #fff4d6 265deg, transparent 300deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: spLed 5s linear infinite;
}
/* lớp sau: cùng dải LED nhưng nhoè ra thành quầng sáng */
.studio-promo::after { inset: -3px; padding: 6px; z-index: -1; filter: blur(12px); opacity: .9; }
@keyframes spLed { to { --sp-led: 360deg; } }
@media (prefers-reduced-motion: reduce) { .studio-promo::before, .studio-promo::after { animation: none; } }
@media (max-width: 640px) { .studio-promo::after { filter: blur(7px); } }

/* ---------- thanh menu: viền mảnh như trang admin (bỏ viền kính trắng, bỏ vệt sáng trên) ---------- */
.site-header .header-inner { border: 1px solid rgba(255, 255, 255, .09); box-shadow: 0 18px 50px rgba(0, 0, 0, .42); }
.site-header .header-inner.liquid-glass::before { display: none; }
.site-header.on-dark .header-inner { border-color: rgba(255, 255, 255, .09); }
:root[data-theme="light"] .site-header:not(.on-dark) .header-inner { border-color: rgba(20, 22, 40, .08); box-shadow: 0 14px 40px rgba(40, 40, 70, .1); }
/* màn 1101–1500px: menu 8 mục không vừa → bỏ "Trang chủ" (logo đã về đầu trang), "Liên hệ" không bị cắt */
@media (max-width: 1500px) and (min-width: 1101px) { .main-nav a[href="#home"] { display: none; } }
.site-header.on-dark .icon-btn { border-color: rgba(255, 255, 255, .16); }

/* Studio trên trang chủ: chỉ còn tiêu đề + nút "Tải ảnh lên Studio" (2026-12-03) */
.sp-text .sp-title { margin: 0 0 26px; }
@media (max-width: 640px) { .sp-text .sp-title { margin: 6px 0 16px; text-align: center; } }
