/* Koh Reels — Hệ thiết kế chuẩn chuỗi ứng dụng Koh (Giao diện kính mờ, hai chủ đề Đêm / Ngà) */
@font-face {
  font-family: "Be Vietnam Pro";
  src: url("../fonts/be-vietnam-pro-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Be Vietnam Pro";
  src: url("../fonts/be-vietnam-pro-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #080d18;
  --bg2: #0d1526;
  --panel: rgba(13, 20, 36, 0.76);
  --panel-solid: #0f172a;
  --card-bg: rgba(255, 255, 255, 0.042);
  --line: rgba(255, 255, 255, 0.09);
  --line2: rgba(255, 255, 255, 0.16);
  --tx: #e9edf5;
  --tx2: #a3aec4;
  --tx3: #6f7b92;
  --gold: #d6b26b;
  --gold2: #f0d9a0;
  --gold-d: #9c7a36;
  --cyan: #5fd3e0;
  --green: #58c99a;
  --red: #f2706d;
  --amber: #f0b45a;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.3);
  --r: 16px;
  --r2: 11px;
  --font: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
  --wrap: 1240px;
}

:root[data-theme="light"] {
  --bg: #efeae0;
  --bg2: #f7f4ed;
  --panel: rgba(255, 253, 248, 0.84);
  --panel-solid: #fffdf8;
  --card-bg: rgba(255, 255, 255, 0.72);
  --line: rgba(22, 38, 52, 0.11);
  --line2: rgba(22, 38, 52, 0.22);
  --tx: #17212f;
  --tx2: #4a566b;
  --tx3: #758096;
  --gold: #9b7425;
  --gold2: #7a5a16;
  --gold-d: #7a5a16;
  --cyan: #0e8aa0;
  --green: #1f8f68;
  --red: #c9443f;
  --amber: #b9791a;
  --shadow: 0 18px 44px rgba(40, 50, 70, 0.14), 0 2px 8px rgba(40, 50, 70, 0.08);
}

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 520px at 82% -10%, rgba(214, 178, 107, 0.13), transparent 60%),
    radial-gradient(760px 480px at 8% 14%, rgba(95, 211, 224, 0.08), transparent 60%),
    var(--bg);
  color: var(--tx);
  font: 400 15px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

:root[data-theme="light"] body {
  background:
    radial-gradient(900px 520px at 82% -10%, rgba(155, 116, 37, 0.10), transparent 60%),
    radial-gradient(760px 480px at 8% 14%, rgba(14, 138, 160, 0.06), transparent 60%),
    var(--bg);
}

a {
  color: var(--gold);
  text-decoration: none;
}

button, input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

img, video, svg {
  display: block;
  max-width: 100%;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--gold);
  color: #1a1306;
  font-weight: 700;
}
.skip:focus {
  left: 12px;
}

.wrap {
  width: min(var(--wrap), calc(100% - 32px));
  margin: 0 auto;
}

.glass {
  background: var(--panel);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* Thanh đầu trang kính mờ nổi chuẩn Koh */
.top {
  position: sticky;
  top: 10px;
  z-index: 40;
  padding: 0 12px;
}

.top-in {
  width: min(var(--wrap), 100%);
  margin: 0 auto;
  min-height: 60px;
  padding: 8px 14px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--tx);
  font-weight: 800;
  letter-spacing: 0.1px;
  white-space: nowrap;
  flex: none;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--gold2), var(--gold-d));
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(214, 178, 107, 0.35);
}

.brand-mark svg {
  width: 18px;
  height: 18px;
}

.brand-name {
  line-height: 1.15;
  font-size: 15px;
}

.brand-name small {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--tx3);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-top: 1px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav a {
  color: var(--tx2);
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 11px;
  border-radius: 10px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}

.nav a:hover {
  background: rgba(214, 178, 107, 0.12);
  color: var(--gold2);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.btn {
  height: 40px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid var(--line2);
  background: rgba(255, 255, 255, 0.06);
  color: var(--tx);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), filter 0.2s var(--ease);
}

:root[data-theme="light"] .btn {
  background: rgba(23, 33, 47, 0.05);
}

.btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(214, 178, 107, 0.4);
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(145deg, var(--gold2), var(--gold));
  border-color: transparent;
  color: #1d1507;
  box-shadow: 0 8px 24px rgba(214, 178, 107, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(145deg, var(--gold2), var(--gold));
  filter: brightness(1.07);
  color: #1d1507;
}

.btn-sm {
  height: 34px;
  padding: 0 12px;
  font-size: 12.5px;
  border-radius: 10px;
}

.btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex: none;
}

.ibtn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--tx2);
  display: grid;
  place-items: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.ibtn:hover {
  background: rgba(214, 178, 107, 0.16);
  border-color: rgba(214, 178, 107, 0.45);
  color: var(--gold2);
}

.ibtn svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Khối mở đầu (Hero) */
.hero {
  padding: 46px 0 56px;
}

.hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 340px);
  gap: 44px;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(214, 178, 107, 0.32);
  background: rgba(214, 178, 107, 0.10);
  color: var(--gold2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  margin: 0 0 16px;
}

.kicker .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin: 0 0 10px;
  font-size: 17px;
  color: var(--tx2);
  max-width: 560px;
}

.lead-sub {
  margin: 0 0 24px;
  font-size: 14.5px;
  color: var(--tx3);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  max-width: 520px;
}

.facts > div {
  padding: 12px 14px;
  border-radius: var(--r2);
  background: var(--card-bg);
  border: 1px solid var(--line);
}

.facts dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--tx3);
  margin-bottom: 3px;
}

.facts dd {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--gold2);
}

.hero-media {
  margin: 0;
}

.phone {
  position: relative;
  border-radius: 26px;
  padding: 8px;
  background: linear-gradient(145deg, rgba(214, 178, 107, 0.35), rgba(255, 255, 255, 0.06));
  box-shadow: var(--shadow);
}

.phone video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 20px;
  background: #000;
}

.hero-media figcaption {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--tx3);
  text-align: center;
}

/* Các khối nội dung chính */
.sec {
  padding: 58px 0;
}

.sec-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

:root[data-theme="light"] .sec-alt {
  background: rgba(255, 255, 255, 0.42);
}

.sec-head {
  max-width: 680px;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--gold);
}

.sec-head h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.sec-lead {
  margin: 0;
  color: var(--tx2);
  font-size: 15px;
}

/* Mục tính năng mới */
.news {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.new {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 12px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.new:hover {
  border-color: rgba(214, 178, 107, 0.4);
  transform: translateY(-2px);
}

.new-media {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 12px;
  background: var(--bg2);
}

.new-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.new h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
}

.new p {
  margin: 0;
  font-size: 13px;
  color: var(--tx2);
  line-height: 1.5;
}

/* Thanh tìm kiếm và bộ lọc thư viện */
.library-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.search-box {
  position: relative;
  flex: 1 1 320px;
  max-width: 520px;
}

.search-box input {
  width: 100%;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line2);
  background: var(--card-bg);
  padding: 0 74px 0 40px;
  outline: none;
  font-size: 14px;
  transition: border-color 0.2s, background 0.2s;
}

.search-box input:focus {
  border-color: var(--gold);
  background: var(--panel);
}

.search-box .si {
  position: absolute;
  left: 13px;
  top: 12px;
  width: 18px;
  height: 18px;
  stroke: var(--tx3);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  pointer-events: none;
}

.search-box .kbd {
  position: absolute;
  right: 10px;
  top: 9px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid var(--line2);
  color: var(--tx3);
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.result-count {
  font-size: 13px;
  color: var(--tx2);
  font-weight: 600;
}

.result-count b {
  color: var(--gold2);
}

.filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card-bg);
  color: var(--tx2);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s var(--ease);
}

.chip-sm {
  height: 32px;
  padding: 0 12px;
  font-size: 12.5px;
}

.chip span {
  font-size: 11.5px;
  color: var(--tx3);
}

.chip:hover {
  border-color: rgba(214, 178, 107, 0.4);
  color: var(--tx);
}

.chip[aria-pressed="true"] {
  background: linear-gradient(145deg, rgba(214, 178, 107, 0.25), rgba(214, 178, 107, 0.10));
  border-color: rgba(214, 178, 107, 0.55);
  color: var(--gold2);
}

.chip[aria-pressed="true"] span {
  color: var(--gold);
}

/* Lưới 143 thẻ video mẫu */
.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.card[hidden] {
  display: none;
}

.card:hover {
  border-color: rgba(214, 178, 107, 0.45);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card-media {
  position: relative;
  aspect-ratio: 9 / 16;
  background: #050811;
  overflow: hidden;
  cursor: pointer;
}

.card-media img,
.card-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-media video {
  opacity: 0;
  transition: opacity 0.22s var(--ease);
}

.card-media.is-playing video {
  opacity: 1;
}

.play {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(8, 13, 24, 0.72);
  backdrop-filter: blur(10px);
  color: var(--gold2);
  display: grid;
  place-items: center;
  transition: transform 0.2s, background 0.2s;
}

.play:hover {
  transform: scale(1.07);
  background: rgba(214, 178, 107, 0.9);
  color: #1a1306;
}

.play svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.play .i-pause {
  display: none;
}

.card-media.is-playing .play .i-play {
  display: none;
}

.card-media.is-playing .play .i-pause {
  display: block;
}

.card-body {
  padding: 13px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.card-id {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--gold);
}

.card-name {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}

.card-blurb {
  margin: 0;
  font-size: 13px;
  color: var(--tx2);
  line-height: 1.48;
  flex: 1;
}

.card-tags {
  margin: 4px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.card-tags span {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--tx2);
}

.card-more {
  margin-top: 6px;
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--gold2);
  font-size: 12.5px;
  font-weight: 700;
}

.card-more:hover {
  text-decoration: underline;
}

.empty {
  padding: 28px;
  text-align: center;
  border-radius: var(--r);
  background: var(--card-bg);
  border: 1px dashed var(--line2);
  color: var(--tx2);
}

.link {
  border: 0;
  background: none;
  color: var(--gold2);
  font-weight: 700;
  text-decoration: underline;
}

.note {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--tx3);
}

/* Sơ đồ quy trình hoạt động */
.flow {
  margin: 0 0 28px;
  padding: 18px;
  border-radius: var(--r);
  background: var(--card-bg);
  border: 1px solid var(--line);
}

.flow-v {
  display: none;
}

.f-box {
  fill: var(--panel-solid);
  stroke: var(--line2);
  stroke-width: 1.5;
}

.f-box-hot {
  fill: rgba(214, 178, 107, 0.16);
  stroke: var(--gold);
}

.f-ico {
  fill: none;
  stroke: var(--tx2);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.f-ico-hot {
  stroke: var(--gold2);
}

.f-accent {
  fill: rgba(214, 178, 107, 0.35);
  stroke: var(--gold);
}

.f-fill {
  fill: var(--gold);
  stroke: none;
}

.f-t {
  fill: var(--tx);
  font-size: 15px;
  font-weight: 800;
}

.f-t-hot {
  fill: var(--gold2);
}

.f-s {
  fill: var(--tx3);
  font-size: 12px;
}

.f-s-hot {
  fill: var(--gold);
}

.f-line, .f-loop {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
}

.f-loop {
  stroke-dasharray: 4 4;
}

.f-arrowhead {
  fill: var(--gold);
}

.steps {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.steps li {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px;
}

.step-n {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--gold2), var(--gold));
  color: #1a1306;
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 10px;
}

.steps h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.steps p {
  margin: 0;
  font-size: 13.5px;
  color: var(--tx2);
}

.points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.points li {
  padding: 14px 16px;
  border-radius: var(--r2);
  border: 1px solid var(--line);
  background: var(--card-bg);
  font-size: 13.5px;
  color: var(--tx2);
}

.points strong {
  color: var(--gold2);
}

/* Mục trợ lý AI và thẻ cấu hình */
.tabs {
  margin-bottom: 24px;
}

.tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.tablist [role="tab"] {
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card-bg);
  color: var(--tx2);
  font-size: 13px;
  font-weight: 700;
}

.tablist [role="tab"][aria-selected="true"] {
  background: linear-gradient(145deg, rgba(214, 178, 107, 0.25), rgba(214, 178, 107, 0.10));
  border-color: rgba(214, 178, 107, 0.55);
  color: var(--gold2);
}

.panel {
  padding: 18px;
  border-radius: var(--r);
  background: var(--card-bg);
  border: 1px solid var(--line);
}

.panel p {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--tx2);
}

pre {
  margin: 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(5, 8, 16, 0.72);
  border: 1px solid var(--line);
  color: #e9edf5;
  font: 13px/1.55 var(--mono);
  overflow-x: auto;
}

:root[data-theme="light"] pre {
  background: #17212f;
  color: #f4f7fb;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
}

.agent-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 16px;
}

.ask, .tools {
  padding: 18px;
  border-radius: var(--r);
  background: var(--card-bg);
  border: 1px solid var(--line);
}

.ask-label {
  margin: 0 0 10px;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--gold);
}

.ask blockquote {
  margin: 0 0 12px;
  padding: 14px;
  border-left: 3px solid var(--gold);
  background: rgba(214, 178, 107, 0.08);
  border-radius: 0 10px 10px 0;
  font-size: 14.5px;
}

.ask-foot {
  margin: 0;
  font-size: 13px;
  color: var(--tx3);
}

.tools dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

.tools dt {
  color: var(--gold2);
  font-weight: 700;
  font-size: 13px;
}

.tools dd {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--tx2);
}

/* Cài đặt */
.install {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
}

.env {
  margin: 14px 0 20px;
  padding-left: 18px;
  color: var(--tx2);
  font-size: 14px;
}

.env li + li {
  margin-top: 6px;
}

/* Chân trang */
.foot {
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
}

.foot-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13.5px;
  color: var(--tx2);
}

.foot-sub {
  margin: 0;
  font-size: 12.5px;
  color: var(--tx3);
}

/* Hộp thoại chi tiết video mẫu */
.sheet {
  padding: 0;
  border: 1px solid var(--line2);
  border-radius: 22px;
  background: var(--panel-solid);
  color: var(--tx);
  width: min(860px, calc(100% - 24px));
  max-height: calc(100vh - 32px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.sheet::backdrop {
  background: rgba(5, 8, 16, 0.72);
  backdrop-filter: blur(8px);
}

.sheet-in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  max-height: calc(100vh - 32px);
}

.sheet-media {
  background: #000;
  display: grid;
  place-items: center;
}

.sheet-media video {
  width: 100%;
  max-height: calc(100vh - 32px);
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.sheet-body {
  padding: 24px 24px 24px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sheet-body h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}

.sheet-tags {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sheet-tags span {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(214, 178, 107, 0.4);
  background: rgba(214, 178, 107, 0.12);
  color: var(--gold2);
}

.sheet-body blockquote {
  margin: 0;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card-bg);
  white-space: pre-line;
  font-size: 14px;
  line-height: 1.6;
}

.sheet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.sheet-note {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--tx3);
}

.sheet-close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line2);
  background: rgba(8, 13, 24, 0.72);
  color: #fff;
  display: grid;
  place-items: center;
}

.sheet-close svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
}

/* Thích ứng máy tính bảng (iPad thế hệ 10) */
@media (max-width: 1024px) {
  .news {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .agent-grid,
  .install {
    grid-template-columns: 1fr;
  }
}

/* Thích ứng điện thoại thông minh (iPhone 15 Pro Max) */
@media (max-width: 720px) {
  .nav {
    display: none;
  }
  .top-in {
    justify-content: space-between;
  }
  .hero {
    padding: 28px 0 38px;
  }
  .hero-in {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .hero-media {
    max-width: 300px;
    margin: 0 auto;
  }
  .facts {
    grid-template-columns: 1fr;
  }
  .news {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .card-body {
    padding: 10px;
  }
  .card-name {
    font-size: 13.5px;
  }
  .card-blurb {
    font-size: 12px;
  }
  .flow-h {
    display: none;
  }
  .flow-v {
    display: block;
    margin: 0 auto;
  }
  .steps,
  .points,
  .tools dl {
    grid-template-columns: 1fr;
  }
  .sheet-in {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }
  .sheet-media video {
    max-height: 46vh;
  }
}
