/* Trang demo mẫu giao diện: thanh công cụ + website mẫu (responsive theo khung chứa) */
.demo-body { padding: 0; background: #e9eeec; }
.demo-bar { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: 16px; height: 58px; padding: 0 16px; background: #0c1c17; color: #fff; box-shadow: 0 6px 20px -10px rgba(0, 0, 0, .5); }
.demo-logo { display: flex; align-items: center; color: #fff; }
.demo-logo .logo-mark { width: 34px; height: 34px; color: #fff; }
.demo-logo .logo-mark path { stroke: #0e7a5f; }
.demo-logo .logo-text b { font-size: 21px; color: #fff; }
.demo-logo .logo-text small { display: none; }
.demo-logo .logo-text { display: flex; }
.demo-back { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .8); font-size: 14px; font-weight: 600; padding: 6px 10px; border-radius: 8px; }
.demo-back:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.demo-title { margin: 0 auto 0 8px; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-title b { color: #8fd8bf; }
.demo-title span { color: rgba(255, 255, 255, .55); font-size: 13px; margin-left: 6px; }
.demo-devices { display: flex; background: rgba(255, 255, 255, .08); border-radius: 10px; padding: 3px; }
.demo-devices button { width: 38px; height: 32px; border: 0; border-radius: 8px; background: none; color: rgba(255, 255, 255, .65); display: grid; place-items: center; }
.demo-devices button[aria-pressed="true"] { background: #fff; color: #0c1c17; }
.demo-act { display: flex; gap: 8px; }
.demo-stage { padding: 0; transition: padding .3s; }
.demo-frame { container: tpl / inline-size; margin: 0 auto; background: #fff; transition: max-width .35s ease; max-width: 100%; }
.is-mobile .demo-stage { padding: 24px 16px 48px; }
.is-mobile .demo-frame { max-width: 390px; height: calc(100vh - 58px - 72px); overflow-y: auto; border-radius: 34px; border: 12px solid #1c1f24; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45); scrollbar-width: none; }
.is-mobile .demo-frame::-webkit-scrollbar { display: none; }
@media (max-width: 900px) {
  .demo-title span, .demo-back span, .demo-act .btn-light, .demo-devices { display: none; }
  .demo-bar { gap: 8px; padding: 0 10px; }
  .demo-logo .logo-text { display: none; }
}

/* ─── Website mẫu ─── */
.tpl { --c1: #0e7a5f; --c2: #f59e0b; --bg: #f7f7f7; background: var(--bg); color: #2b2b2b; font-family: var(--font); line-height: 1.6; font-size: 16px; }
.tpl img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tpl h1, .tpl h2, .tpl h3 { color: #151515; letter-spacing: -.015em; }
.t-wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.t-kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--c1); margin-bottom: 12px; }
.t-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 26px; border-radius: 999px; background: var(--c1); color: #fff; font-weight: 700; border: 2px solid var(--c1); transition: transform .2s, filter .2s; white-space: nowrap; }
.t-btn:hover { color: #fff; transform: translateY(-1px); filter: brightness(1.1); }
.t-btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.t-btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .7); }
.t-btn--line { background: transparent; color: var(--c1); }
.t-btn--line:hover { color: var(--c1); }
.t-header { position: sticky; top: 58px; z-index: 5; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); box-shadow: 0 1px 0 rgba(0, 0, 0, .06); }
.is-mobile .t-header { top: 0; }
.t-header .t-wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.t-logo { font-size: 22px; font-weight: 800; color: var(--c1); white-space: nowrap; letter-spacing: -.02em; }
.t-logo:hover { color: var(--c1); }
.t-nav { display: flex; gap: 26px; margin-left: auto; }
.t-nav a { color: #333; font-weight: 600; font-size: 15px; }
.t-nav a:hover { color: var(--c1); }
.t-head-act { display: flex; align-items: center; gap: 10px; }
.t-burger { display: none; width: 40px; height: 40px; border-radius: 10px; background: color-mix(in srgb, var(--c1) 8%, #fff); position: relative; }
.t-burger i, .t-burger::before, .t-burger::after { content: ""; position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: var(--c1); }
.t-burger::before { top: 13px; } .t-burger i { top: 19px; } .t-burger::after { top: 25px; }
.t-icon-btn { position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--c1) 8%, #fff); color: var(--c1); }
.t-icon-btn i { position: absolute; top: -4px; right: -4px; width: 18px; height: 18px; border-radius: 50%; background: var(--c2); color: #111; font-size: 11px; font-style: normal; font-weight: 800; display: grid; place-items: center; }
.t-hero h1 { font-size: 54px; line-height: 1.08; margin: 0 0 16px; }
.t-hero p { font-size: 18px; }
.t-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.t-hero--full { position: relative; min-height: 600px; display: flex; align-items: center; color: #fff; overflow: hidden; }
.t-hero--full .t-hero-bg { position: absolute; inset: 0; }
.t-hero--full::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--c1) 90%, #000) 0%, color-mix(in srgb, var(--c1) 55%, transparent) 50%, transparent 85%); }
.t-hero--full .t-wrap { position: relative; z-index: 1; width: 100%; }
.t-hero--full .t-wrap > * { max-width: 580px; }
.t-hero--full h1 { color: #fff; }
.t-hero--full .t-kicker { color: var(--c2); }
.t-hero--full .t-btn:not(.t-btn--ghost) { background: var(--c2); border-color: var(--c2); color: #111; }
.t-hero--split { padding: 72px 0; background: linear-gradient(180deg, #fff, var(--bg)); }
.t-hero--split .t-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.t-hero-media { position: relative; }
.t-hero-media img { aspect-ratio: 5 / 4; border-radius: 28px; box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .45); }
.t-badge { position: absolute; left: -20px; bottom: 30px; display: flex; align-items: center; gap: 8px; background: #fff; padding: 12px 18px; border-radius: 14px; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .3); font-weight: 700; font-size: 14px; }
.t-badge svg { color: var(--c2); fill: var(--c2); width: 20px; height: 20px; }
.t-hero--shop { padding: 28px 0 8px; }
.t-hero--shop .t-wrap { display: grid; grid-template-columns: 2.2fr 1fr; gap: 18px; }
.t-banner { position: relative; border-radius: 24px; overflow: hidden; min-height: 440px; color: #fff; display: flex; align-items: center; }
.t-banner > img { position: absolute; inset: 0; }
.t-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .65), transparent 75%); }
.t-banner > div { position: relative; z-index: 1; padding: 48px; max-width: 560px; }
.t-banner h1 { color: #fff; font-size: 44px; }
.t-banner .t-kicker { color: var(--c2); }
.t-banner .t-btn { background: var(--c2); border-color: var(--c2); color: #111; margin-top: 10px; }
.t-side { display: grid; gap: 18px; }
.t-side-card { position: relative; border-radius: 20px; overflow: hidden; min-height: 200px; }
.t-side-card span { position: absolute; left: 16px; bottom: 16px; background: #fff; color: #111; padding: 8px 14px; border-radius: 99px; font-weight: 700; font-size: 14px; }
.t-hero--mag { padding: 28px 0 8px; }
.t-hero--mag .t-wrap { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 250px 250px; gap: 18px; }
.t-hero--mag a { position: relative; border-radius: 22px; overflow: hidden; color: #fff; }
.t-hero--mag a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .72), transparent 65%); }
.t-hero--mag a img { transition: transform .6s; }
.t-hero--mag a:hover img { transform: scale(1.05); }
.t-mag-a { grid-row: span 2; }
.t-mag-a > div { position: absolute; z-index: 1; left: 36px; right: 36px; bottom: 32px; }
.t-mag-a h1 { color: #fff; font-size: 46px; }
.t-mag-a .t-kicker { color: var(--c2); }
.t-mag-a p { color: rgba(255, 255, 255, .85); margin: 0; }
.t-mag-b span, .t-mag-c span { position: absolute; z-index: 1; left: 20px; bottom: 18px; font-weight: 700; font-size: 18px; }
.t-features { padding: 28px 0; }
.t-features .t-wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.t-features div { display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; align-items: center; background: #fff; border-radius: 18px; padding: 18px; box-shadow: 0 8px 24px -16px rgba(0, 0, 0, .25); }
.t-features svg { grid-row: span 2; width: 52px; height: 52px; padding: 13px; border-radius: 14px; background: color-mix(in srgb, var(--c2) 22%, #fff); color: var(--c1); }
.t-features b { color: #151515; }
.t-features span { font-size: 14px; color: #666; }
.t-section { padding: 80px 0; }
.t-head { text-align: center; margin-bottom: 40px; }
.t-head h2, .t-section h2 { font-size: 36px; margin: 0 0 10px; }
.t-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.t-card { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .3); transition: transform .3s, box-shadow .3s; }
.t-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .35); }
.t-card-img { aspect-ratio: 4 / 3.2; overflow: hidden; }
.t-card-body { padding: 16px 18px 20px; }
.t-card h3 { font-size: 17px; margin: 0 0 4px; }
.t-price { color: var(--c1); font-weight: 800; font-size: 17px; margin: 0 0 10px; }
.t-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: #151515; }
.t-link svg { width: 16px; height: 16px; transition: transform .2s; }
.t-card:hover .t-link { color: var(--c1); }
.t-card:hover .t-link svg { transform: translateX(3px); }
.t-about { background: #fff; }
.t-about .t-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.t-about-media img { aspect-ratio: 1 / 1; border-radius: 28px; }
.t-about ul { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 10px; }
.t-about li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.t-about li svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--c1); color: #fff; flex: none; }
.t-stats { background: var(--c1); color: #fff; padding: 44px 0; }
.t-stats .t-wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.t-stats b { display: block; font-size: 40px; font-weight: 800; color: var(--c2); line-height: 1.1; }
.t-stats span { opacity: .85; }
.t-gallery { display: grid; grid-template-columns: repeat(6, 1fr); height: 220px; }
.t-gallery img { transition: filter .3s; }
.t-gallery img:hover { filter: brightness(1.1) saturate(1.1); }
.t-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.t-quotes figure { margin: 0; background: #fff; border-radius: 20px; padding: 28px; box-shadow: 0 10px 30px -20px rgba(0, 0, 0, .3); }
.t-stars { display: flex; gap: 2px; color: var(--c2); }
.t-stars svg { width: 18px; height: 18px; fill: var(--c2); }
.t-quotes blockquote { margin: 14px 0 18px; font-size: 16px; color: #333; }
.t-quotes figcaption { display: flex; align-items: center; gap: 12px; font-weight: 700; color: #151515; }
.t-quotes figcaption span { width: 42px; height: 42px; border-radius: 50%; background: var(--c1); color: #fff; display: grid; place-items: center; }
.t-contact { background: color-mix(in srgb, var(--c1) 6%, #fff); }
.t-contact .t-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.t-info { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.t-info li { display: flex; align-items: center; gap: 12px; }
.t-info svg { width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: #fff; color: var(--c1); flex: none; }
.t-form { background: #fff; border-radius: 24px; padding: 30px; display: grid; gap: 12px; box-shadow: 0 20px 50px -25px rgba(0, 0, 0, .35); }
.t-form input, .t-form textarea { width: 100%; border: 1px solid #ddd; border-radius: 12px; padding: 13px 16px; font: inherit; background: #fafafa; }
.t-form input:focus, .t-form textarea:focus { outline: none; border-color: var(--c1); background: #fff; }
.t-form .t-btn { border: 0; cursor: pointer; }
.t-foot { background: color-mix(in srgb, var(--c1) 88%, #000); color: rgba(255, 255, 255, .75); padding: 56px 0 0; }
.t-foot .t-wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.t-foot .t-logo { color: #fff; display: block; margin-bottom: 10px; }
.t-foot b { color: #fff; display: block; margin-bottom: 10px; }
.t-foot a { display: block; color: rgba(255, 255, 255, .75); margin-bottom: 6px; }
.t-foot a:hover { color: #fff; }
.t-copy { text-align: center; font-size: 13px; padding: 20px; margin: 40px 0 0; border-top: 1px solid rgba(255, 255, 255, .12); }

@container tpl (max-width: 900px) {
  .t-nav { display: none; }
  .t-burger { display: block; }
  .t-header .t-wrap { height: 62px; gap: 12px; }
  .t-head-act { margin-left: auto; }
  .t-hero h1, .t-banner h1, .t-mag-a h1 { font-size: 34px; }
  .t-hero p { font-size: 16px; }
  .t-hero--full { min-height: 520px; }
  .t-hero--full::after { background: linear-gradient(0deg, color-mix(in srgb, var(--c1) 92%, #000) 20%, color-mix(in srgb, var(--c1) 35%, transparent)); }
  .t-hero--full .t-wrap { align-self: flex-end; padding-bottom: 40px; }
  .t-hero--split .t-wrap, .t-hero--shop .t-wrap, .t-about .t-wrap, .t-contact .t-wrap { grid-template-columns: 1fr; gap: 28px; }
  .t-hero--split { padding: 40px 0; }
  .t-badge { left: 12px; }
  .t-banner { min-height: 380px; }
  .t-banner > div { padding: 28px; }
  .t-side { grid-template-columns: 1fr 1fr; }
  .t-side-card { min-height: 150px; }
  .t-hero--mag .t-wrap { grid-template-columns: 1fr 1fr; grid-template-rows: 380px 170px; }
  .t-mag-a { grid-row: auto; grid-column: 1 / -1; }
  .t-mag-a > div { left: 22px; right: 22px; bottom: 22px; }
  .t-features .t-wrap { grid-template-columns: 1fr; }
  .t-section { padding: 56px 0; }
  .t-head h2, .t-section h2 { font-size: 28px; }
  .t-cards { grid-template-columns: 1fr 1fr; gap: 14px; }
  .t-card-body { padding: 12px 14px 16px; }
  .t-card h3 { font-size: 15px; }
  .t-stats .t-wrap { grid-template-columns: 1fr 1fr; gap: 24px; }
  .t-stats b { font-size: 32px; }
  .t-gallery { grid-template-columns: repeat(3, 1fr); height: auto; }
  .t-gallery img { aspect-ratio: 1; }
  .t-quotes { grid-template-columns: 1fr; }
  .t-foot .t-wrap { grid-template-columns: 1fr 1fr; }
  .t-foot .t-wrap > div:first-child { grid-column: 1 / -1; }
  .t-form { padding: 22px; }
}
@container tpl (max-width: 480px) {
  .t-btn--sm { display: none; }
  .t-hero h1, .t-banner h1, .t-mag-a h1 { font-size: 30px; }
}
