/* ============================================================
   TOKI KHO — ĐỢT HÌNH DÁNG 1: CSS RIÊNG của trang
   tim-hinh-dang.php (Tìm theo hình dáng). Ngôn ngữ thị giác
   chép đúng hero trang chủ: nền lưới sẫm than #101114, đỏ
   TOKI #ec0010, khung ngắm đỏ. Không phụ thuộc storefront.css.
   ĐỢT HÌNH DÁNG CLIP (2026-11-28): kết quả dùng khối .v7-* của
   trang quét đo (chép nguyên văn ở cuối mục Kết quả).
   ============================================================ */
:root{
  --sh-red:#ec0010;
  --sh-red-dark:#c5000d;
  --sh-ink:#17181c;
  --sh-charcoal:#101114;
  --sh-grey:#6f7278;
  --sh-line:#e7e7ea;
  --sh-bg:#f4f4f6;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{scroll-behavior:smooth}
body{margin:0;font-family:'Segoe UI',Arial,Helvetica,sans-serif;background:var(--sh-bg);color:var(--sh-ink);font-size:15px;line-height:1.45}
img{max-width:100%}
a{text-decoration:none;color:inherit}
button{font-family:inherit;cursor:pointer}
.sh-wrap{max-width:1200px;margin:0 auto;padding:0 14px}

/* Logo TOKI (cùng kiểu .toki-logo của mặt tiền) */
.toki-logo{display:inline-flex;align-items:center;gap:9px}
.toki-logo-mark{width:38px;height:38px;border-radius:50%;background:var(--sh-red);border:2px solid #fff;color:#fff;font-weight:900;font-style:italic;font-size:21px;display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.toki-logo-text{color:var(--sh-red);font-weight:900;font-style:italic;font-size:23px;letter-spacing:.5px;line-height:1;display:flex;flex-direction:column}
.toki-logo-text small{color:#fff;font-style:normal;font-weight:600;font-size:8.5px;letter-spacing:2.5px;margin-top:3px}

/* ---------- Header ---------- */
.sh-header{background:var(--sh-charcoal);position:sticky;top:0;z-index:900;box-shadow:0 1px 0 rgba(255,255,255,.06)}
.sh-header-in{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:58px}
.sh-nav{display:flex;gap:6px}
.sh-nav a{color:#f2f2f4;font-size:14px;font-weight:600;padding:8px 10px;border-radius:10px;white-space:nowrap}
.sh-nav a:hover{background:rgba(255,255,255,.09)}

/* ---------- Hero (nền lưới + quầng đỏ như trang chủ) ---------- */
.sh-hero{background:
  radial-gradient(620px 340px at 78% 42%, rgba(236,0,16,.34), rgba(236,0,16,0) 62%),
  linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px),
  var(--sh-charcoal);
  background-size:auto,44px 44px,44px 44px,auto;
  color:#fff;padding:34px 0 30px}
.sh-hero-grid{display:grid;grid-template-columns:1fr;gap:26px;align-items:center}
@media (min-width:992px){ .sh-hero-grid{grid-template-columns:1.05fr .95fr;gap:44px} .sh-hero{padding:52px 0 46px} }
.sh-chip{display:inline-block;border:1px solid rgba(255,255,255,.35);background:rgba(255,255,255,.07);color:#fff;border-radius:999px;padding:5px 14px;font-size:12.5px;font-weight:600}
.sh-hero h1{font-size:40px;line-height:1.12;font-weight:900;margin:16px 0 12px}
.sh-hero h1 .line2{color:var(--sh-red)}
@media (min-width:992px){ .sh-hero h1{font-size:54px} }
.sh-hero-sub{color:#c9cacd;font-size:15.5px;max-width:480px;margin:0 0 22px}
.sh-steps{display:flex;gap:18px;margin-top:22px;color:#d7d8db;font-size:13.5px;flex-wrap:wrap}
.sh-steps b{display:inline-flex;width:20px;height:20px;border-radius:50%;background:rgba(255,255,255,.14);color:#fff;align-items:center;justify-content:center;font-size:12px;margin-right:6px}

/* Khung ngắm chọn ảnh (cùng kiểu .viewfinder trang chủ) */
.sh-viewfinder{position:relative;border-radius:22px;background:rgba(120,10,18,.20);border:1px solid rgba(255,255,255,.09);min-height:320px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:38px 18px 30px;overflow:hidden;cursor:pointer;text-align:center}
.sh-corner{position:absolute;width:44px;height:44px;border:0 solid var(--sh-red);z-index:3}
.sh-corner.tl{top:14px;left:14px;border-top-width:5px;border-left-width:5px;border-top-left-radius:14px}
.sh-corner.tr{top:14px;right:14px;border-top-width:5px;border-right-width:5px;border-top-right-radius:14px}
.sh-corner.bl{bottom:14px;left:14px;border-bottom-width:5px;border-left-width:5px;border-bottom-left-radius:14px}
.sh-corner.br{bottom:14px;right:14px;border-bottom-width:5px;border-right-width:5px;border-bottom-right-radius:14px}
.sh-scanline{position:absolute;left:5%;right:5%;top:-76px;height:72px;z-index:1;pointer-events:none;border-radius:4px;
  background:linear-gradient(to bottom, rgba(236,0,16,0) 0%, rgba(236,0,16,.16) 55%, rgba(255,42,53,.5) 90%, rgba(255,53,64,.95) 100%);
  border-bottom:2px solid #ff3540;
  filter:drop-shadow(0 0 12px rgba(236,0,16,.85));
  animation:shScan 3.4s linear infinite}
@keyframes shScan{ from{top:-76px} to{top:100%} }
.sh-cam{position:relative;z-index:2;width:104px;height:104px;border-radius:50%;background:var(--sh-red);color:#fff;font-size:46px;display:flex;align-items:center;justify-content:center;box-shadow:0 12px 30px rgba(236,0,16,.5),0 0 0 14px rgba(236,0,16,.13),0 0 46px rgba(236,0,16,.35)}
.sh-vf-title{position:relative;z-index:2;font-weight:800;font-size:19px;margin-top:18px}
.sh-vf-sub{position:relative;z-index:2;color:#bdbec2;font-size:13px;margin-top:5px;max-width:340px}

/* ĐỢT 172: hai nút chọn đường ảnh dưới khung ngắm (camera / thư viện) */
.sh-pick-row{display:flex;gap:10px;margin-top:12px}
.sh-pick-btn{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:7px;cursor:pointer;border-radius:12px;padding:13px 10px;font-weight:700;font-size:14.5px;color:#fff;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.30);text-align:center}
.sh-pick-btn.sh-pick-cam{background:var(--sh-red);border-color:var(--sh-red);box-shadow:0 8px 20px rgba(236,0,16,.35)}

/* ---------- Thân trang ---------- */
.sh-main{padding:20px 14px 34px}
.sh-picked{background:#fff;border:1px solid var(--sh-line);border-radius:16px;padding:12px;margin-bottom:14px}
.sh-thumbs{display:flex;gap:10px;flex-wrap:wrap}
.sh-thumb{position:relative;width:104px;height:104px;border-radius:12px;overflow:hidden;border:1px solid var(--sh-line);background:#fafafa}
.sh-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.sh-thumb button{position:absolute;top:4px;right:4px;width:24px;height:24px;border:none;border-radius:50%;background:rgba(16,17,20,.78);color:#fff;font-size:14px;line-height:1;display:flex;align-items:center;justify-content:center}
.sh-picked-note{margin:10px 0 0;color:var(--sh-grey);font-size:13px}

.sh-go{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;background:var(--sh-red);color:#fff;border:none;border-radius:14px;padding:16px;font-size:16.5px;font-weight:800;box-shadow:0 8px 20px rgba(236,0,16,.35)}
.sh-go:hover:not(:disabled){background:var(--sh-red-dark)}
.sh-go:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}

.sh-guide{background:#fff;border:1px solid var(--sh-line);border-radius:16px;padding:16px 18px;margin-top:16px}
.sh-guide h2{font-size:16.5px;margin:0 0 8px}
.sh-guide ul{margin:0;padding-left:19px;color:#33343a}
.sh-guide li{margin:5px 0}

.sh-status{margin-top:16px;background:#fff;border:1px solid var(--sh-line);border-left:5px solid var(--sh-red);border-radius:12px;padding:14px 16px;font-weight:600}
.sh-status.err{border-left-color:#8a8d94;background:#fdf3f3}

/* ---------- Kết quả ---------- */
/* ĐỢT HÌNH DÁNG CLIP (2026-11-28): bỏ lưới thẻ .sh-card (không dùng
   nữa); kết quả vẽ bằng khối .v7-* y hệt trang quét đo, nên khu kết
   quả là một cột như tim-anh.php (cột nội dung 640px). */
.sh-results{margin:18px auto 0;max-width:640px;display:block}
/* .v7-row dùng var(--line) và khung tải dùng .scan-spin62 — cả hai
   định nghĩa trong storefront.css (trang này không nạp). --line đã
   khớp (#e7e7ea); .scan-spin62 chép đúng từ storefront.css
   (vòng 42px, vành #fdecec, đỉnh đỏ TOKI #ec0010, 0.9s). */
.sh-results{--line:var(--sh-line)}
.scan-spin62{width:42px;height:42px;margin:0 auto 14px;border-radius:50%;border:4px solid #fdecec;border-top-color:var(--sh-red);animation:scanSpin62 .9s linear infinite}
@keyframes scanSpin62{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.scan-spin62{animation:none}}
.sh-caption{background:#fff8e6;border:1px solid #f0dfa8;border-radius:12px;padding:12px 15px;font-size:14px;margin-top:12px}
.sh-empty{background:#fff;border:1px solid var(--sh-line);border-radius:16px;padding:18px;text-align:center}
.sh-empty p{margin:4px 0}
.sh-empty .sh-empty-title{font-weight:800;font-size:16.5px}

/* ---------- Khối gợi ý .v7-* — CHÉP NGUYÊN VĂN từ <style> của
   tim-anh.php (live 2026-11-28), giữ tên class + giá trị. Không chép
   các rule đo (.v7-tag-len, .v7-len, .v7-measure, .v7-recalc*) vì
   trang này không quét thông số. ---------- */
.v7-title { font-size: 17px; font-weight: 800; margin: 14px 0 8px; }
.v7-list { display: flex; flex-direction: column; gap: 8px; }
.v7-row { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; text-decoration: none; color: inherit; }
.v7-num { font-weight: 800; color: #55565c; min-width: 18px; text-align: center; }
.v7-thumb { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; border: 1px solid #e3e3e8; }
.v7-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.v7-code { font-weight: 800; color: #d0021b; }
.v7-code-big { font-size: 20px; }
.v7-name { font-size: 14px; color: #26262b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v7-label { font-size: 12px; font-weight: 700; color: #1c7c3c; background: #e7f6ec; border-radius: 999px; padding: 3px 8px; white-space: nowrap; }
.v7-arrow { font-size: 20px; color: #a0a0a8; }
.v7-more-btn { margin-top: 8px; background: none; border: none; color: #d0021b; font-weight: 700; cursor: pointer; padding: 6px 0; font-size: 15px; }
.v7-wait { display: flex; align-items: center; gap: 10px; margin-top: 14px; color: #55565c; font-size: 14px; }
.v7-reads { font-size: 15px; margin: 12px 0 8px; }
.v7-answer { display: flex; gap: 14px; background: #fff; border: 2px solid #d0021b; border-radius: 16px; padding: 14px; margin: 10px 0; }
.v7-answer-img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.v7-answer-main { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.v7-answer-badge { align-self: flex-start; background: #d0021b; color: #fff; font-weight: 800; font-size: 13px; border-radius: 999px; padding: 4px 10px; }
/* ĐỢT CT2 — thẻ đáp án DỰ PHÒNG (giống hình nhất khi số
đo không chốt được mã): viền + huy hiệu vàng để phân
biệt rõ với thẻ chốt chắc viền đỏ. */
.v7-answer-soft { border-color: #d9a406; }
.v7-answer-badge-soft { background: #ffe08a; color: #5c3d00; }
.v7-fallback-note { font-size: 14px; color: #55565c; margin: 8px 0 0; line-height: 1.5; }
.v7-price { font-weight: 800; font-size: 16px; }
.v7-answer-link { color: #d0021b; font-weight: 800; text-decoration: none; margin-top: 4px; }
.v7-yellow { background: #fff7d6; border: 1px solid #ecd27a; border-radius: 12px; padding: 12px 14px; margin: 12px 0; }
.v7-yellow p { margin: 0 0 8px; }
.v7-retake { background: #d0021b; color: #fff; border: none; border-radius: 10px; padding: 9px 14px; font-weight: 700; cursor: pointer; }
.v7-manual { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-top: 12px; }
.v7-manual summary { font-weight: 800; cursor: pointer; }
.v7-manual-body { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.v7-field { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; }
.v7-field input, .v7-field select { padding: 9px 10px; border: 1px solid #d7d7db; border-radius: 10px; font-size: 15px; }
.v7-manual-note { color: #55565c; font-size: 13px; margin: 0; }
.v7-manual-go { background: #d0021b; color: #fff; border: none; border-radius: 10px; padding: 10px; font-weight: 800; cursor: pointer; }
.v7-load { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding: 16px 4px; }
.v7-progress { width: 100%; height: 8px; background: #eee; border-radius: 999px; overflow: hidden; }
.v7-progress span { display: block; height: 100%; width: 2%; background: #d0021b; transition: width .2s; }
.v7-answer { padding: 10px; gap: 10px; }
.v7-time{margin-top:8px;font-size:12px;color:#888;line-height:1.5}

/* ---------- Chuyển hướng ---------- */
.sh-handoffs{margin-top:22px;background:var(--sh-charcoal);border-radius:16px;padding:18px;color:#fff}
.sh-handoffs-title{margin:0 0 12px;font-weight:800;font-size:16px}
.sh-handoff-btns{display:flex;gap:10px;flex-wrap:wrap}
.sh-hbtn{display:inline-flex;align-items:center;gap:7px;border-radius:12px;padding:12px 16px;font-weight:700;font-size:14.5px;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.16);color:#fff}
.sh-hbtn:hover{background:rgba(255,255,255,.16)}
.sh-hbtn-red{background:var(--sh-red);border-color:var(--sh-red)}
.sh-hbtn-red:hover{background:var(--sh-red-dark)}

/* ---------- Footer ---------- */
.sh-footer{background:var(--sh-charcoal);color:#d7d8db;padding:22px 0 30px;margin-top:8px}
.sh-footer p{margin:3px 0}
.sh-footer-sub{color:#9a9ba0;font-size:13px}
