/* ==========================================================================
   TOPSOFT.VN - TRANG GIỚI THIỆU SẢN PHẨM (dùng kèm home.css)
   ========================================================================== */

/* ----- Hero ----- */
.ts-phero { padding: 1.75rem 0 4rem; }

.ts-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .82rem; margin-bottom: 2.25rem; color: var(--ts-body); }
.ts-crumb a { color: var(--ts-body); text-decoration: none; }
.ts-crumb a:hover { color: var(--ts-blue); }
.ts-crumb i { font-size: .65rem; color: var(--ts-muted); }
.ts-crumb span { color: var(--ts-ink); font-weight: 600; }

.ts-phero-title { color: var(--ts-ink); font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; margin-bottom: 1.1rem; }

.ts-checks { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .65rem; }
.ts-checks li { display: flex; gap: .65rem; align-items: flex-start; color: var(--ts-ink); font-weight: 500; }
.ts-checks i { color: var(--ts-green); margin-top: .1rem; }

.ts-pwindow {
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    border: 1px solid var(--ts-line);
    box-shadow: 0 20px 40px -24px rgba(15, 27, 45, .35);
}
.ts-pwindow .carousel-item img { display: block; width: 100%; aspect-ratio: 1291 / 702; object-fit: cover; object-position: top left; background: #f1f5f9; }
.ts-shot-dots { position: absolute; left: 0; right: 0; bottom: .75rem; display: flex; justify-content: center; gap: .4rem; z-index: 2; }
.ts-shot-dots button { width: 22px; height: 5px; border: 0; border-radius: 3px; background: rgba(6, 22, 49, .3); padding: 0; transition: width .2s, background-color .2s; }
.ts-shot-dots button.active { width: 34px; background: var(--ts-red); }

/* ----- Số liệu nhanh ----- */
.ts-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #fff;
    border: 1px solid var(--ts-line);
    border-radius: var(--ts-radius-lg);
    overflow: hidden;
}
.ts-kpis > div { padding: 1.4rem 1.5rem; border-right: 1px solid var(--ts-line); }
.ts-kpis > div:last-child { border-right: 0; }
.ts-kpis b { display: block; font-size: 1.5rem; font-weight: 800; color: var(--ts-blue); line-height: 1.2; }
.ts-kpis > div:nth-child(even) b { color: var(--ts-red); }
.ts-kpis span { display: block; margin-top: .3rem; font-size: .86rem; color: var(--ts-body); line-height: 1.45; }

@media (max-width: 991.98px) {
    .ts-kpis { grid-template-columns: repeat(2, 1fr); }
    .ts-kpis > div:nth-child(2) { border-right: 0; }
    .ts-kpis > div:nth-child(-n+2) { border-bottom: 1px solid var(--ts-line); }
}

/* ----- Phân hệ ----- */
.ts-module {
    display: flex;
    gap: 1rem;
    height: 100%;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid var(--ts-line);
    border-radius: var(--ts-radius-lg);
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.ts-module:hover { border-color: var(--ts-blue-100); box-shadow: var(--ts-shadow-sm); }
.ts-module-icon { width: 50px; height: 50px; flex: none; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem; color: #fff; color: var(--ts-blue); background: var(--ts-blue-50); }
.row > div:nth-child(3n+2) .ts-module-icon { color: var(--ts-red); background: var(--ts-red-50); }
.ts-module h3 { color: var(--ts-ink); font-size: 1.08rem; font-weight: 700; margin-bottom: .4rem; }
.ts-module p { font-size: .9rem; line-height: 1.6; color: var(--ts-body); margin: 0; }

/* ----- Luồng số liệu ----- */
.ts-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.ts-flow li {
    position: relative;
    padding: 1.4rem;
    background: #fff;
    border: 1px solid var(--ts-line);
    border-radius: var(--ts-radius-lg);
    box-shadow: var(--ts-shadow-sm);
}
.ts-flow li::before {
    content: counter(list-item, decimal-leading-zero);
    position: absolute;
    top: 1.1rem;
    right: 1.2rem;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--ts-blue-100);
}
.ts-flow-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; color: var(--ts-blue); background: var(--ts-blue-50); margin-bottom: .9rem; }
.ts-flow-icon.is-red { color: #fff; background: var(--ts-red); }
.ts-flow b { display: block; color: var(--ts-ink); font-size: 1rem; margin-bottom: .3rem; }
.ts-flow small { display: block; color: var(--ts-body); font-size: .86rem; line-height: 1.55; }

@media (max-width: 575.98px) { .ts-flow { grid-template-columns: 1fr; } }

/* Biểu tượng tính năng lấy từ Admin: bỏ màu riêng, dùng màu thương hiệu */
#tinh-nang .ts-cap p { color: var(--ts-body); }

/* ----- Ứng dụng di động ----- */
.ts-papp { background: var(--ts-soft); border-top: 1px solid var(--ts-line); border-bottom: 1px solid var(--ts-line); }
.ts-papp-title { color: var(--ts-ink); font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; line-height: 1.25; margin-bottom: 1rem; }
.ts-papp-text { color: var(--ts-body); font-size: 1.05rem; line-height: 1.75; margin-bottom: 1.75rem; }

.ts-papp-phone {
    position: relative;
    display: inline-block;
    width: 260px;
    max-width: 70%;
    aspect-ratio: 9 / 16.6;
    padding: 9px;
    border-radius: 36px;
    background: #1e293b;
    box-shadow: 0 24px 48px -24px rgba(15, 27, 45, .5);
}
.ts-papp-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 28px; display: block; }

.ts-store {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    padding: .6rem 1.1rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--ts-line);
    color: var(--ts-ink);
    text-decoration: none;
    transition: border-color .2s;
}
.ts-store:hover { color: var(--ts-ink); border-color: var(--ts-blue); }
.ts-store i { font-size: 1.6rem; color: var(--ts-ink); }
.ts-store small { display: block; font-size: .68rem; color: var(--ts-body); line-height: 1; }
.ts-store b { display: block; font-size: 1rem; line-height: 1.2; }

/* App đi kèm: ai dùng, ảnh màn hình */
.ts-papp-mockup { width: 300px; max-width: 80%; height: auto; filter: drop-shadow(0 24px 30px rgba(15, 27, 45, .22)); }
.ts-who { height: 100%; padding: 1.1rem 1.2rem; background: #fff; border: 1px solid var(--ts-line); border-radius: var(--ts-radius-lg); }
.ts-who i { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; margin-bottom: .6rem; font-size: 1.1rem; color: var(--ts-blue); background: var(--ts-blue-50); }
.ts-who.is-free { border-color: #a7f3d0; }
.ts-who.is-free i { color: #047857; background: #d1fae5; }
.ts-who > b { display: block; color: var(--ts-ink); margin-bottom: .25rem; }
.ts-who p { margin: 0; font-size: .9rem; line-height: 1.55; color: var(--ts-body); }
.ts-papp-shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 3rem; }
.ts-papp-shots figure { margin: 0; text-align: center; }
.ts-papp-shots .ts-papp-phone { width: 100%; max-width: 210px; aspect-ratio: 780 / 1688; padding: 6px; border-radius: 28px; }
.ts-papp-shots .ts-papp-phone img { border-radius: 22px; }
.ts-papp-shots figcaption { margin-top: .8rem; font-size: .9rem; font-weight: 600; color: var(--ts-ink); }
@media (max-width: 767.98px) { .ts-papp-shots { grid-template-columns: repeat(2, 1fr); gap: 1.25rem 1rem; } }

/* Dòng giới thiệu nhanh ở hero */
.ts-promo { display: inline-flex; align-items: center; gap: .55rem; margin-top: 1.5rem; padding: .35rem .9rem .35rem .4rem; border-radius: 999px; background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; font-size: .88rem; font-weight: 600; text-decoration: none; }
.ts-promo span { background: var(--ts-red); color: #fff; font-size: .7rem; font-weight: 700; border-radius: 999px; padding: .15rem .55rem; }
.ts-promo:hover { color: #064e3b; border-color: #6ee7b7; }

/* ----- Bảng giá ----- */
.ts-price {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2rem 1.75rem;
    background: #fff;
    border: 1px solid var(--ts-line);
    border-radius: var(--ts-radius-lg);
    transition: transform .25s, box-shadow .25s;
}
.ts-price:hover { box-shadow: var(--ts-shadow-sm); }
.ts-price.is-featured { border: 2px solid var(--ts-blue); }
.ts-price-flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--ts-blue); color: #fff; font-size: .74rem; font-weight: 700; border-radius: 999px; padding: .3rem .9rem; white-space: nowrap; }
.ts-price h3 { color: var(--ts-ink); font-size: 1.15rem; font-weight: 700; margin-bottom: 1rem; }
.ts-price-value { font-size: 2.2rem; font-weight: 800; color: var(--ts-blue); line-height: 1.1; letter-spacing: -.02em; }

.ts-price-period { color: var(--ts-body); font-size: .88rem; margin: .3rem 0 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px dashed var(--ts-line); }
.ts-price ul { list-style: none; padding: 0; margin: 0 0 1.75rem; flex: 1; display: grid; gap: .7rem; align-content: start; }
.ts-price li { display: flex; gap: .6rem; font-size: .92rem; color: var(--ts-ink); line-height: 1.5; }
.ts-price li i { color: var(--ts-green); font-size: 1.05rem; line-height: 1.35; }

/* ----- Nội dung chi tiết ----- */
.ts-rich { height: 100%; padding: 2.25rem; background: #fff; border: 1px solid var(--ts-line); border-radius: var(--ts-radius-lg); color: var(--ts-ink); line-height: 1.8; }
.ts-rich h2 { color: var(--ts-ink); font-size: 1.5rem; font-weight: 800; margin-bottom: 1.25rem; }
.ts-rich h3, .ts-rich h4, .ts-rich h5 { color: var(--ts-ink); font-weight: 700; margin-top: 1.5rem; }
.ts-rich ul { padding-left: 1.2rem; }
.ts-rich li { margin-bottom: .4rem; }
.ts-rich li::marker { color: var(--ts-red); }
.ts-rich img { max-width: 100%; height: auto; border-radius: 12px; }

.ts-side {
    position: sticky;
    top: 100px;
    padding: 2rem;
    border-radius: var(--ts-radius-lg);
    background: var(--ts-blue-50);
    border: 1px solid var(--ts-blue-100);
}
.ts-side-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; color: #fff; background: var(--ts-blue); margin-bottom: 1rem; }
.ts-side h3 { color: var(--ts-ink); font-size: 1.2rem; font-weight: 700; margin-bottom: .6rem; }
.ts-side p { color: var(--ts-body); font-size: .93rem; line-height: 1.65; margin-bottom: 1.25rem; }
.ts-side-hotline { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--ts-blue-100); text-align: center; }
.ts-side-hotline small { display: block; color: var(--ts-body); font-size: .8rem; }
.ts-side-hotline a { display: inline-flex; align-items: center; gap: .5rem; font-size: 1.35rem; font-weight: 800; color: var(--ts-red); text-decoration: none; }

@media (max-width: 575.98px) { .ts-rich, .ts-side { padding: 1.5rem; } }

/* ==========================================================================
   TRANG HƯỚNG DẪN SỬ DỤNG (ví dụ /huongdan/goshop)
   ========================================================================== */
.ts-toc { position: sticky; top: 100px; display: flex; flex-direction: column; gap: .15rem; padding: 1.25rem; background: var(--ts-soft); border: 1px solid var(--ts-line); border-radius: var(--ts-radius-lg); }
.ts-toc > b { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ts-muted); margin-bottom: .5rem; }
.ts-toc a { display: flex; align-items: center; gap: .6rem; padding: .45rem .5rem; border-radius: 8px; color: var(--ts-ink); font-size: .92rem; font-weight: 500; text-decoration: none; }
.ts-toc a:hover { background: #fff; color: var(--ts-blue); }
.ts-toc a span { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 1px solid var(--ts-line); font-size: .75rem; font-weight: 700; color: var(--ts-blue); }

.ts-guide { padding-bottom: 2.5rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--ts-line); scroll-margin-top: 100px; color: var(--ts-ink); line-height: 1.7; }
.ts-guide:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.ts-guide h2 { display: flex; align-items: center; gap: .75rem; font-size: 1.5rem; font-weight: 800; color: var(--ts-ink); margin-bottom: 1rem; }
.ts-guide h2 span { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--ts-blue); color: #fff; font-size: 1rem; }
.ts-guide h3 { font-size: 1.1rem; font-weight: 700; color: var(--ts-ink); margin-bottom: .6rem; }
.ts-guide ul, .ts-guide ol { padding-left: 1.2rem; margin-bottom: 0; }
.ts-guide li { margin-bottom: .4rem; }
.ts-guide li::marker { color: var(--ts-blue); font-weight: 700; }

.ts-guide-box { height: 100%; padding: 1.25rem 1.4rem; background: #fff; border: 1px solid var(--ts-line); border-radius: var(--ts-radius-lg); }
.ts-guide-box h3 i { color: var(--ts-blue); margin-right: .5rem; }
.ts-guide-box.is-free { background: #ecfdf5; border-color: #a7f3d0; }
.ts-guide-box.is-free h3 i { color: #059669; }
.ts-guide-h3 { margin-top: 1.75rem; }
.ts-guide-note { display: flex; gap: .6rem; align-items: flex-start; margin: 1.25rem 0 0; padding: .8rem 1rem; border-radius: 12px; background: var(--ts-blue-50); color: var(--ts-ink); font-size: .92rem; }
.ts-guide-note i { color: var(--ts-blue); margin-top: .15rem; }

.ts-gsteps { list-style: none; padding: 0 !important; counter-reset: step; display: grid; gap: .75rem; }
.ts-gsteps li { counter-increment: step; position: relative; padding: 1rem 1.2rem 1rem 3.6rem; background: #fff; border: 1px solid var(--ts-line); border-radius: 14px; margin: 0; }
.ts-gsteps li::before { content: counter(step); position: absolute; left: 1.1rem; top: 1rem; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--ts-red); color: #fff; font-size: .85rem; font-weight: 700; }
.ts-gsteps li > b { display: block; }
.ts-gsteps li > span { display: block; color: var(--ts-body); font-size: .93rem; }

.ts-guide-row { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; align-items: center; margin-top: 2rem; }
.ts-guide-row:first-of-type { margin-top: 0; }
.ts-guide-shot { text-align: center; }
.ts-guide-shot .ts-papp-phone { width: 100%; max-width: 220px; aspect-ratio: 780 / 1688; padding: 6px; border-radius: 28px; }
.ts-guide-shot .ts-papp-phone img { border-radius: 22px; }

@media (max-width: 991.98px) { .ts-toc { position: static; } }
@media (max-width: 575.98px) {
    .ts-guide-row { grid-template-columns: 1fr; gap: 1rem; }
    .ts-guide-shot .ts-papp-phone { max-width: 200px; }
}


/* ===== TRANG APP (huongdan/go*): bảng so sánh, hỏi đáp, điện thoại minh họa ===== */
.ts-compare { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--ts-line); border-radius: var(--ts-radius-lg); overflow: hidden; font-size: .93rem; }
.ts-compare th, .ts-compare td { padding: .8rem 1rem; border-bottom: 1px solid var(--ts-line); vertical-align: middle; }
.ts-compare tr:last-child td { border-bottom: 0; }
.ts-compare thead th { background: var(--ts-soft, #f5f8fc); color: var(--ts-ink); font-weight: 700; text-align: center; }
.ts-compare thead th:first-child { text-align: left; }
.ts-compare td:not(:first-child) { text-align: center; color: var(--ts-body); }
.ts-compare td:first-child { color: var(--ts-ink); font-weight: 600; }
.ts-compare .is-free { color: #047857; }
.ts-compare .bi-check-circle-fill { color: #059669; font-size: 1.1rem; }
.ts-compare .bi-dash { color: #94a3b8; }
.ts-compare-tag { display: inline-block; margin-bottom: .25rem; padding: .1rem .6rem; border-radius: 999px; font-size: .7rem; font-weight: 700; letter-spacing: .4px; color: #fff; background: var(--ts-blue); }
.ts-compare-tag.is-free { background: #059669; color: #fff; }
.ts-faq { display: grid; gap: .6rem; }
.ts-faq details { background: #fff; border: 1px solid var(--ts-line); border-radius: 14px; padding: .9rem 1.1rem; }
.ts-faq summary { cursor: pointer; font-weight: 700; color: var(--ts-ink); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.ts-faq summary::-webkit-details-marker { display: none; }
.ts-faq summary::after { content: "+"; color: var(--ts-blue); font-size: 1.2rem; line-height: 1; }
.ts-faq details[open] summary::after { content: "–"; }
.ts-faq details p { margin: .6rem 0 0; color: var(--ts-body); font-size: .93rem; line-height: 1.6; }
.ts-mock-big { display: inline-block; zoom: 2.3; }
@media (max-width: 991.98px) { .ts-mock-big { zoom: 1.8; } }
.ts-guide-shot { margin: 0; }
.ts-guide-shot figcaption { margin-top: .6rem; font-size: .85rem; color: var(--ts-muted); }
