/* ==========================================================================
   Thin Bot Community — Authentic Portfolio Visual System
   Matches exact Framer cream rice-paper, notched gold plaques, obsidian cards,
   diamond-tile textures, and ornate purple/hex CTA aesthetics.
   ========================================================================== */

:root {
  --thin-font-display: "HYWenHei 85W", "Inter", system-ui, sans-serif;
  --thin-font-sans: "Samsung Sharp Sans Bold", "Inter", system-ui, sans-serif;
  --thin-font-serif: "Averia Serif Libre", Georgia, serif;
}

/* Allow search input typing, copying commands, and smooth terms book scrolling */
#commands-section input,
#commands-section button,
#commands-section .thin-cmd-code,
#dieu-khoan-reader,
#dieu-khoan-reader * {
  -webkit-user-select: text !important;
  user-select: text !important;
  pointer-events: auto !important;
}

/* Shared Portfolio Section Heading + Gold Star Divider */
.thin-pf-sec-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  margin-bottom: 36px;
}

.thin-pf-sec-title {
  margin: 0;
  font-family: var(--thin-font-display);
  font-size: clamp(30px, 3.3vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.04em;
  background: linear-gradient(0deg, rgb(18, 16, 13) 8%, rgb(140, 130, 106) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.thin-pf-star-line {
  width: min(337px, 78vw);
  height: 24px;
  display: block;
}

.thin-pf-sec-sub {
  margin: 2px auto 0;
  max-width: 580px;
  font-family: var(--thin-font-sans);
  font-size: clamp(13px, 1.25vw, 15px);
  line-height: 1.5;
  color: rgb(125, 111, 88);
}

#commands-section .thin-pf-sec-title {
  background: linear-gradient(0deg, #fffdf8 12%, #d8c39b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#commands-section .thin-pf-sec-sub {
  color: #cfc5b1;
}

/* ==========================================================================
   1. HERO TITLE SVG & GENUINE FRAMER BUTTON SIZING (Section 1)
   ========================================================================== */

/* Keep native baked Hero title image /assets/img/hero-title.png visible */
.framer-z9lgyi {
  width: clamp(320px, 36vw, 485px) !important;
}

.framer-z9lgyi img {
  opacity: 1 !important;
}

/* Keep "Nhấn vô đây để hỗ trợ" & "Mời bot ngay" side by side on desktop like original */
.framer-mjtfyw {
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  width: max-content !important;
  max-width: 96vw !important;
}

/* Widen genuine Framer hex pill SVG cleanly for "Nhấn vô đây để hỗ trợ" */
.framer-8t4vj6-container {
  width: 214px !important;
  flex: none !important;
}

.framer-8t4vj6-container .framer-3klqu6 {
  width: 214px !important;
  height: 52px !important;
}

.framer-8t4vj6-container .framer-1qm9grn {
  width: 210px !important;
  height: 48px !important;
  left: calc(50% - 105px) !important;
  top: calc(50% - 24px) !important;
}

.framer-8t4vj6-container .framer-1vshoav,
.framer-8t4vj6-container p.framer-text {
  white-space: nowrap !important;
  font-size: 13px !important;
  letter-spacing: -0.04em !important;
}

/* Fit "Mời bot ngay" comfortably inside Framer ornate purple SVG */
.framer-1cqgph2-container .framer-p52ehu,
.framer-1gikujj-container .framer-p52ehu,
.framer-zowctz-container .framer-1vshoav {
  white-space: nowrap !important;
}

.framer-1cqgph2-container .framer-p52ehu p.framer-text,
.framer-1gikujj-container .framer-p52ehu p.framer-text {
  font-size: 16.5px !important;
  letter-spacing: -0.04em !important;
}

/* Hanging Board hex buttons: prevent right-edge clipping & jitter-free scale hover */
.framer-14kk04a-container,
.framer-UiWos,
.framer-UiWos.framer-zi7tj3,
.framer-UiWos.framer-2wpnh4,
.framer-UiWos .framer-1b53xmb,
.framer-UiWos .framer-1g6wmw2 {
  overflow: visible !important;
}

.framer-UiWos .framer-1g6wmw2 {
  left: 165.5px !important;
  transform: translateX(-50%) !important;
  align-items: center !important;
}

/* SMALL variant (<1440px / zoomed): image width is 205px so rope midpoint is 136.3px */
.framer-UiWos.framer-v-2wpnh4 .framer-1g6wmw2 {
  left: 136.3px !important;
  transform: translateX(-50%) !important;
}

.framer-UiWos .framer-3klqu6 {
  width: 174px !important;
}

.framer-UiWos .framer-1qm9grn {
  width: 170px !important;
  left: calc(50% - 85px) !important;
}

.framer-UiWos p.framer-text {
  font-size: 12.5px !important;
  letter-spacing: -0.04em !important;
  white-space: nowrap !important;
}

/* Smooth centered scale-up on BOARD buttons without vertical edge jitter */
.framer-UiWos .framer-1g6wmw2 > div {
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1) !important;
  transform-origin: center center !important;
}

.framer-UiWos .framer-1g6wmw2 > div:hover {
  transform: scale(1.045) !important;
}

/* PC hanging section board: scales proportionally on zoom/resize, shows ONLY on scroll UP */
@media (min-width: 810px) {
  .framer-14kk04a-container {
    z-index: 40 !important;
    left: clamp(-68px, calc(2.5vw - 74px), -28px) !important;
    transform-origin: left center !important;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease !important;
  }

  .framer-14kk04a-container .framer-UiWos {
    transform-origin: left center !important;
    transform: scale(clamp(0.72, calc(100vw / 1440), 1)) !important;
  }

  body:not(.thin-board-visible) .framer-14kk04a-container {
    opacity: 0 !important;
    transform: translateX(-340px) !important;
    pointer-events: none !important;
  }

  body.thin-board-visible .framer-14kk04a-container {
    opacity: 1 !important;
    transform: translateX(0) !important;
    pointer-events: auto !important;
  }

  body.thin-board-visible .framer-14kk04a-container .framer-zi7tj3,
  body.thin-board-visible .framer-14kk04a-container .framer-1b53xmb {
    transform: none !important;
    opacity: 1 !important;
  }
}

/* Center floating "Mời bot" text cleanly vertically in brown-red ribbon */
.framer-a9srib-container .framer-1sqn5vp {
  top: 53% !important;
  transform: translate(-50%, -50%) !important;
}

@media (max-width: 809.98px) {
  .framer-z9lgyi {
    width: 278px !important;
    top: 64px !important;
  }
  .framer-mjtfyw {
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    top: 244px !important;
    bottom: unset !important;
  }
  .framer-flZOT #hero .framer-8t4vj6-container.hidden-mr2ya7,
  #hero .framer-8t4vj6-container {
    display: block !important;
    opacity: 1 !important;
  }
  .framer-8t4vj6-container,
  .framer-8t4vj6-container .framer-3klqu6 {
    width: 184px !important;
    height: 42px !important;
  }
  .framer-8t4vj6-container .framer-1qm9grn {
    width: 180px !important;
    height: 40px !important;
    left: calc(50% - 90px) !important;
    top: calc(50% - 20px) !important;
  }
  .framer-8t4vj6-container p.framer-text {
    font-size: 11.5px !important;
  }
}

/* ==========================================================================
   2. PROBLEM CARDS & NATIVE SOLUTION REVEAL (Section 2)
   ========================================================================== */

/* Hide removed sections cleanly alongside bundle removal */
#partner,
.framer-1n5h1hq,
#buy .framer-yifyu9 {
  display: none !important;
  visibility: hidden !important;
}

/* Clean cloned Portfolio CTA button inside Section 2 (appears ONLY when scrolled to pb-4) */
.thin-sec2-inline-cta {
  display: none !important;
  margin-top: 20px;
  justify-content: center;
  align-items: center;
  width: 100%;
  pointer-events: auto !important;
  z-index: 12;
}

.thin-sec2-inline-cta.is-visible {
  display: flex !important;
  animation: thinFadeUp 0.35s ease forwards;
}

.thin-sec2-inline-cta .framer-1cqgph2-container,
.thin-sec2-mobile-sol .framer-1cqgph2-container {
  position: relative !important;
  inset: unset !important;
  transform: none !important;
  opacity: 1 !important;
  flex: none !important;
  display: block !important;
  width: 192px !important;
  height: 70px !important;
  margin: 0 auto !important;
  overflow: visible !important;
}

.thin-sec2-mobile-sol .framer-9SY2A.framer-jmcu14 {
  display: block !important;
  width: 192px !important;
  height: 70px !important;
  margin: 0 auto !important;
  position: relative !important;
}

.thin-sec2-mobile-sol {
  display: none !important;
}

.thin-sec2-mobile-sol-title {
  margin: 0 0 8px;
  font-family: var(--thin-font-display);
  font-size: clamp(17px, 4.8vw, 22px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #161411;
  text-align: center;
}

@keyframes thinFadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes thinFadeInOnly {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Genuine Portfolio Purple Ornate CTA Button SVG replica */
.thin-pf-purple-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 196px;
  height: 68px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), filter 0.22s ease;
}

.thin-pf-purple-btn:hover {
  transform: scale(1.035);
  filter: brightness(1.06);
}

.thin-pf-purple-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.thin-pf-purple-wing-l {
  position: absolute;
  left: -18px;
  top: 6px;
  width: 56px;
  height: 34px;
  pointer-events: none;
}

.thin-pf-purple-wing-r {
  position: absolute;
  right: -18px;
  bottom: 4px;
  width: 56px;
  height: 34px;
  pointer-events: none;
}

.thin-pf-purple-label {
  position: relative;
  z-index: 2;
  font-family: var(--thin-font-display);
  font-size: 16.5px;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(60, 12, 54, 0.55);
}

/* Genuine Portfolio Cream Hex Pill CTA */
.thin-pf-hex-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 176px;
  height: 52px;
  padding: 0 28px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), filter 0.22s ease;
}

.thin-pf-hex-btn:hover {
  transform: scale(1.03);
  filter: brightness(1.02);
}

.thin-pf-hex-btn .thin-hex-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.thin-pf-hex-btn .thin-hex-label {
  position: relative;
  z-index: 2;
  font-family: var(--thin-font-display);
  font-size: 14px;
  letter-spacing: -0.04em;
  color: rgb(109, 84, 47);
  white-space: nowrap;
}

/* ==========================================================================
   3. PORTFOLIO-NATIVE #bot-intro (Transparent cream canvas + Section-3 sibling cards)
   ========================================================================== */

.thin-pf-section {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 28px 64px;
  background: transparent;
  box-sizing: border-box;
}

@media (min-width: 810px) {
  .thin-pf-section {
    max-width: 1340px;
    padding-left: clamp(202px, 16.5vw, 224px);
    padding-right: 36px;
  }
}

/* Hero Overview Card in #bot-intro — Dark Obsidian framed like Section 3 Card + Parchment Stats */
.thin-pf-obsidian-shell {
  position: relative;
  border-radius: 28px;
  padding: 28px;
  background:
    radial-gradient(circle at 18% 12%, rgba(205, 191, 159, 0.08), transparent 45%),
    linear-gradient(180deg, #1b1c25 0%, #101117 100%);
  border: 1.5px solid #49444c;
  box-shadow:
    0 24px 56px rgba(32, 24, 15, 0.24),
    inset 0 0 0 1px rgba(205, 191, 159, 0.22);
  margin-bottom: 28px;
}

.thin-corner-star {
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
  z-index: 3;
}
.thin-corner-star.tl { top: 14px; left: 14px; }
.thin-corner-star.tr { top: 14px; right: 14px; }
.thin-corner-star.bl { bottom: 14px; left: 14px; }
.thin-corner-star.br { bottom: 14px; right: 14px; }

.thin-bot-overview-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 24px;
  align-items: center;
}

.thin-bot-identity {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.thin-bot-avatar-ring {
  padding: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f2e0c6 0%, #9c8463 100%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}

.thin-bot-avatar {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
}

.thin-bot-title {
  margin: 0;
  font-family: var(--thin-font-display);
  font-size: 26px;
  background: linear-gradient(180deg, #ffffff 15%, #cdbf9e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.thin-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(250, 241, 223, 0.08);
  border: 1px solid rgba(205, 191, 159, 0.35);
  color: #efe2c6;
  font-family: var(--thin-font-sans);
  font-size: 12px;
}

.thin-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #52e096;
  box-shadow: 0 0 8px #52e096;
}

.thin-bot-copy {
  margin: 0 0 18px;
  font-family: var(--thin-font-display);
  font-size: 14.5px;
  line-height: 1.62;
  color: #d6cec0;
}

.thin-bot-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

/* Parchment framed Banner + Stats plaque inside Overview Card */
.thin-parchment-stats-card {
  border-radius: 20px;
  overflow: hidden;
  background:
    repeating-linear-gradient(45deg, rgba(214, 196, 164, 0.14) 0px, rgba(214, 196, 164, 0.14) 1px, transparent 1px, transparent 14px),
    linear-gradient(180deg, #faf1df 0%, #ede0c5 100%);
  border: 2px solid #b0997a;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55);
}

.thin-bot-banner {
  width: 100%;
  height: 118px;
  object-fit: cover;
  display: block;
  border-bottom: 2px solid #c3ad89;
}

.thin-stat-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 14px 10px;
  text-align: center;
  gap: 6px;
}

.thin-stat-trio-item {
  border-right: 1px dashed rgba(156, 132, 99, 0.45);
  padding: 2px 6px;
}

.thin-stat-trio-item:last-child {
  border-right: none;
}

.thin-stat-val {
  font-family: var(--thin-font-display);
  font-size: 22px;
  color: #6d472b;
  line-height: 1.1;
}

.thin-stat-lbl {
  font-family: var(--thin-font-sans);
  font-size: 11px;
  color: #826d4e;
  margin-top: 4px;
}

/* 6 Feature Cards — Exact Visual Siblings to Section 3 ("Chỉ số nhân vật") */
.thin-pf-features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.thin-pf-feature-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, #1b1c25 0%, #0d0e13 100%);
  border: 1px solid rgb(58, 55, 65);
  box-shadow: 0 14px 30px rgba(20, 16, 12, 0.18);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.22s ease;
}

.thin-pf-feature-card:hover {
  transform: scale(1.025);
  border-color: #9c8463;
}

.thin-pf-feat-body {
  padding: 20px 20px 14px;
  background:
    radial-gradient(circle at 85% 15%, rgba(230, 193, 128, 0.08), transparent 55%),
    linear-gradient(180deg, rgba(35, 36, 46, 0.55) 0%, rgba(16, 17, 23, 0.2) 100%);
  flex: 1;
}

.thin-pf-feat-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid rgba(205, 191, 159, 0.35);
  background: rgba(205, 191, 159, 0.08);
  color: #e6c180;
  font-family: var(--thin-font-sans);
  font-size: 10px;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.thin-pf-feat-desc {
  margin: 0;
  font-family: var(--thin-font-display);
  font-size: 13.5px;
  line-height: 1.55;
  color: #d8d0c2;
}

/* Signature Section-3 Bottom Strip with 4-point Star & Cream-Gold Title */
.thin-pf-feat-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(205, 191, 159, 0.16);
}

.thin-pf-feat-star {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.thin-pf-feat-title {
  margin: 0;
  font-family: var(--thin-font-sans);
  font-size: 15.5px;
  background: linear-gradient(0deg, rgb(255, 255, 255) 15%, rgb(205, 191, 158) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   4. PORTFOLIO-NATIVE #commands-section (Cream Parchment + FAQ-Plaque Cards)
   ========================================================================== */

#commands-section {
  padding-top: 64px;
  padding-bottom: 118px; /* Clean buffer above #buy clouds */
}

/* Parchment Scroll Frame for Search & Category Filter */
.thin-cmd-scroll-panel {
  position: relative;
  border-radius: 24px;
  padding: 20px 24px;
  margin-bottom: 22px;
  background:
    repeating-linear-gradient(45deg, rgba(208, 187, 150, 0.13) 0px, rgba(208, 187, 150, 0.13) 1px, transparent 1px, transparent 16px),
    linear-gradient(180deg, #fbf3e4 0%, #efe1c6 100%);
  border: 2px solid #b0997a;
  box-shadow:
    0 12px 28px rgba(74, 53, 29, 0.12),
    inset 0 0 0 2px rgba(255, 255, 255, 0.65);
}

.thin-cmd-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 14px;
  background: #fffdf8;
  border: 1.5px solid #c3ad89;
  box-shadow: inset 0 2px 6px rgba(109, 84, 47, 0.08);
  margin-bottom: 14px;
}

.thin-cmd-search-bar input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: #3d250d;
  font-family: var(--thin-font-display);
  font-size: 14.5px;
  padding: 7px 4px;
}

.thin-cmd-search-bar input::placeholder {
  color: #a18d70;
}

.thin-cmd-clear-btn {
  border: 1px solid #b0997a;
  background: #faf1df;
  color: #6d542f;
  border-radius: 8px;
  padding: 4px 10px;
  font-family: var(--thin-font-sans);
  font-size: 11px;
  cursor: pointer;
}

.thin-cmd-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

/* Hex-cut Portfolio pills matching BOARD & NAV CTA */
.thin-pf-cat-pill {
  border: 1.5px solid #bfa784;
  background: #fffbf2;
  color: #6d542f;
  padding: 7px 18px;
  font-family: var(--thin-font-display);
  font-size: 13px;
  cursor: pointer;
  clip-path: polygon(10px 0%, calc(100% - 10px) 0%, 100% 50%, calc(100% - 10px) 100%, 10px 100%, 0% 50%);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), filter 0.2s ease;
}

.thin-pf-cat-pill:hover {
  transform: scale(1.04);
  background: #ffffff;
}

.thin-pf-cat-pill.is-active {
  background: linear-gradient(180deg, #b550a7 0%, #862c7f 100%);
  border-color: #e6c180;
  color: #ffffff;
}

.thin-cmd-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  padding: 0 4px;
  font-family: var(--thin-font-sans);
  font-size: 13px;
  color: #6f5d42;
}

/* Command Cards — Exact FAQ-Card Architecture (Dark Outer Housing #262730 + Inner Cream Plaque #FAF2E4) */
.thin-cmd-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.thin-pf-cmd-outer {
  padding: 6px;
  border-radius: 18px;
  background: rgb(38, 39, 48);
  border: 1px solid #524d59;
  box-shadow: 0 10px 22px rgba(26, 22, 16, 0.14);
  display: flex;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.22s ease;
}

.thin-pf-cmd-outer:hover {
  transform: scale(1.02);
  border-color: #9c8463;
}

.thin-pf-cmd-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 16px;
  border-radius: 13px;
  background: linear-gradient(180deg, #fbf4e7 0%, #efe3cd 100%);
  border: 1px solid #d7c3a1;
}

.thin-cmd-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.thin-cmd-code {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  background: #23242f;
  color: #f6ddb1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  font-weight: 700;
  word-break: break-word;
}

.thin-cmd-copy-btn {
  flex-shrink: 0;
  border: 1px solid #b0997a;
  background: #fffcf5;
  color: #6d542f;
  border-radius: 7px;
  padding: 4px 10px;
  font-family: var(--thin-font-sans);
  font-size: 11px;
  cursor: pointer;
}

.thin-cmd-copy-btn.is-copied {
  background: #2d7a53;
  border-color: #2d7a53;
  color: #ffffff;
}

.thin-cmd-desc {
  margin: 8px 0 0;
  font-family: var(--thin-font-display);
  font-size: 13px;
  line-height: 1.48;
  color: #3f2d19;
}

.thin-cmd-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(156, 132, 99, 0.45);
  font-family: var(--thin-font-sans);
  font-size: 11px;
  color: #7e6747;
}

.thin-cmd-en {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #6d542f;
}

.thin-cmd-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  border-radius: 18px;
  background: #faf1df;
  border: 2px dashed #bfa784;
  color: #5c462b;
  font-family: var(--thin-font-display);
}

.thin-pagination {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.thin-pf-page-btn {
  min-width: 38px;
  height: 36px;
  padding: 0 14px;
  border: 1.5px solid #bfa784;
  background: #fffbf2;
  color: #6d542f;
  font-family: var(--thin-font-display);
  font-size: 13px;
  cursor: pointer;
  clip-path: polygon(8px 0%, calc(100% - 8px) 0%, 100% 50%, calc(100% - 8px) 100%, 8px 100%, 0% 50%);
}

.thin-pf-page-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.thin-pf-page-btn.is-active {
  background: linear-gradient(180deg, #b550a7 0%, #862c7f 100%);
  border-color: #e6c180;
  color: #ffffff;
}

@media (max-width: 1023.98px) {
  .thin-bot-overview-grid {
    grid-template-columns: 1fr;
  }
  .thin-pf-features-grid,
  .thin-cmd-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 809.98px) {
  .thin-pf-section {
    padding: 44px 14px 48px;
  }
  #commands-section {
    padding-bottom: 64px;
  }
  .thin-pf-obsidian-shell {
    padding: 18px 16px;
  }
  .thin-pf-features-grid,
  .thin-cmd-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   5. SECTION 4 (ĐỐI TÁC) — No Decorative Icons & Blank Editable Project Slots
   ========================================================================== */

#buy .framer-kb5ta2,
#buy .framer-179pcs2,
#buy .framer-143fz38,
#buy .framer-fa8qgu,
#buy .framer-18nq1i3,
#buy .framer-1g059q4,
#buy .framer-1vy30fx,
#buy .framer-elrwyt,
#buy .framer-95zh1r,
#buy .framer-1b1s0hh,
#buy .framer-1f34uk7 {
  display: none !important;
  visibility: hidden !important;
}

/* Card 2 ("wQRpJfS0e") keep active & crisp like Card 1 */
#buy .framer-rqg7w4-container,
#buy .framer-rqg7w4-container * {
  opacity: 1 !important;
}

#buy .framer-1hutq93,
#buy .framer-qi6x38 {
  margin-top: 22px !important;
}

/* ==========================================================================
   6. SECTION 5 (ĐIỀU KHOẢN SỬ DỤNG) — Baked Texture Banner + Non-Sticky Book
   ========================================================================== */

/* Stop #output from forcing a 6000px sticky scroll trap after reading Terms */
#output.framer-1bncbmm {
  height: auto !important;
  min-height: 0 !important;
  padding: 48px 0 64px !important;
}

#output .framer-lcsam4 {
  position: relative !important;
  top: unset !important;
  height: auto !important;
  min-height: clamp(600px, 78vh, 840px) !important;
}

#output .framer-1yyl37g,
#output .framer-1gf5ndk,
#output .framer-ywnjnn,
#output .framer-sl7g0e,
#output [data-framer-name="SKILL TREE HOLDER"],
#output [data-framer-name="Skills Curve"],
#output [data-framer-name="BRANCH"],
#output [data-framer-name^="Branch"],
#output [data-framer-name^="Leaf"],
#output [data-framer-name="Fan"],
#output [data-framer-name="Vine"],
#output [data-framer-name="PeaCock"],
#output [data-framer-name="MAIN"],
#output [data-framer-name="MIDDLE"],
#output .framer-d8dgqh,
#output .framer-1vozwpz,
#output .framer-bqicp4,
#output [data-framer-name="Tips"],
#output [data-framer-name="ARROW"],
#output [data-framer-name="TEXT"],
#output [data-framer-name="TAG"] {
  display: none !important;
  visibility: hidden !important;
}

/* Keep baked scroll banner /assets/img/terms-banner-bg.png & HEADER 100% opaque on all viewports */
#output .framer-15muw7s,
#output [data-framer-name="HEADER"],
#output img[src*="terms-banner-bg"],
#hero .framer-z9lgyi {
  opacity: 1 !important;
}

#output .framer-aaav4z {
  pointer-events: auto !important;
  align-items: flex-start !important;
  padding-top: 122px !important;
}

/* Native Open Book Ink Reader positioned strictly BELOW the scroll banner */
.thin-terms-book-wrap {
  position: relative;
  z-index: 20;
  width: min(84%, 740px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: auto !important;
}

.thin-terms-scroll-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 12px;
  border-bottom: 1px dashed rgba(138, 107, 68, 0.45);
  color: #6b4c28;
  font-family: var(--thin-font-sans);
  font-size: 11px;
  letter-spacing: 0.05em;
}

#dieu-khoan-reader {
  height: clamp(275px, 37vh, 330px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 10px 18px 28px;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#dieu-khoan-reader::-webkit-scrollbar {
  width: 6px;
}

#dieu-khoan-reader::-webkit-scrollbar-thumb {
  background: rgba(156, 132, 99, 0.65);
  border-radius: 999px;
}

.thin-term-clause {
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(156, 132, 99, 0.4);
}

.thin-term-clause:last-child {
  border-bottom: none;
}

.thin-term-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.thin-term-roman {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #5b3b1e;
  color: #faf0da;
  font-family: var(--thin-font-display);
  font-size: 12px;
  flex-shrink: 0;
}

.thin-term-title {
  margin: 0;
  font-family: var(--thin-font-display);
  font-size: 16px;
  color: #3d250d;
}

.thin-term-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.thin-term-list li {
  font-family: var(--thin-font-display);
  font-size: 13.5px;
  line-height: 1.54;
  color: #554028;
}

/* Clear sticky navbar height on direct #anchor jumps */
#section2,
#bot-intro,
#skillset,
#commands-section,
#buy,
#output,
#curriculum,
#curriculum-1 {
  scroll-margin-top: 78px;
}

/* Safe horizontal clip without breaking position:sticky in Section 2 */
html,
body {
  overflow-x: clip !important;
}

@media (max-width: 809.98px) {
  /* Disable heavy Framer multi-layer GPU allocations & continuous shadows on mobile for 60fps smoothness */
  .framer-flZOT [style*="will-change"] {
    will-change: auto !important;
  }

  /* Eliminate overflow on narrow screens WITHOUT shifting left-centered scroll backdrops */
  #buy,
  #output [data-framer-name="HEADER"] {
    max-width: 100vw !important;
  }

  /* Give Section 2 modest bottom clearance on mobile so user sees open room below Card 4 before #bot-intro */
  #section2 {
    padding-bottom: 140px !important;
  }

  /* Section 2 mobile: hide top behind-card text when pb-4 triggers & show crisp bottom Solution bar above cards */
  #section2.thin-sec2-sol-active .framer-1c7dlic {
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .thin-sec2-inline-cta {
    display: none !important;
  }

  .thin-sec2-mobile-sol.is-visible {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    left: 0 !important;
    right: 0 !important;
    bottom: 16px;
    margin: 0 auto !important;
    transform: none !important;
    width: min(90vw, 316px);
    padding: 10px 16px 12px;
    border-radius: 18px;
    background: rgba(251, 245, 232, 0.97);
    border: 1.5px solid #d4bf99;
    box-shadow: 0 12px 28px rgba(42, 28, 12, 0.22);
    z-index: 90;
    pointer-events: auto !important;
    animation: thinFadeInOnly 0.25s ease forwards;
  }

  .framer-z9lgyi {
    width: min(84vw, 290px) !important;
    top: 56px !important;
  }

  .thin-pf-obsidian-shell {
    padding: 16px 14px;
    border-radius: 18px;
  }

  .thin-cmd-scroll-panel {
    padding: 14px 12px;
    border-radius: 18px;
  }

  .thin-cmd-top {
    flex-wrap: wrap;
    gap: 6px;
  }

  .thin-cmd-code {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-size: 12px;
  }

  .thin-pf-cat-pill {
    padding: 6px 11px;
    font-size: 11.5px;
  }

  /* Center mobile #buy scroll backdrop ("Đối tác") & red ribbon symmetrically */
  #buy .framer-evwvqk {
    width: 100% !important;
    max-width: 100vw !important;
    padding: 48px 14px 24px !important;
    box-sizing: border-box !important;
  }

  #buy .framer-w2er1e {
    left: 50% !important;
    right: unset !important;
    transform: translateX(-50%) !important;
    width: min(100vw, 430px) !important;
    max-width: 100vw !important;
  }

  #buy .framer-1ra99qn {
    display: none !important;
  }

  #buy .framer-c13Lm.framer-v-1kqutao .framer-asu8xl {
    left: 50% !important;
    right: unset !important;
    top: 52% !important;
    bottom: unset !important;
    transform: translate(-50%, -50%) !important;
  }

  #output.framer-1bncbmm {
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
  }

  #output .framer-lcsam4 {
    position: relative !important;
    top: unset !important;
    width: 100% !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    left: 0 !important;
    transform: none !important;
    height: auto !important;
    min-height: 560px !important;
    padding: 28px 0 36px !important;
    overflow: hidden !important;
    justify-content: center !important;
  }

  #output .framer-nkjsgl {
    width: 100% !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    left: 0 !important;
    right: unset !important;
    transform: none !important;
    flex: none !important;
    position: relative !important;
    height: auto !important;
    min-height: 510px !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Reset Framer's 1263px/left:-172px BOOK & WINDOW wrappers on mobile so 50% = exact viewport center */
  #output .framer-1n4yp9f {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    height: 100% !important;
    left: 0 !important;
  }

  #output .framer-1vk0i7s {
    width: 100% !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    position: relative !important;
    height: auto !important;
    min-height: 510px !important;
  }

  #output .framer-awsi17 {
    left: 50% !important;
    top: 12px !important;
    transform: translateX(-50%) rotate(-2deg) !important;
  }

  /* Reset Framer's scaled/offset book wrapper on mobile so banner & reader sit 1:1 dead-center inside open parchment */
  #output .framer-aaav4z {
    left: 50% !important;
    right: unset !important;
    top: 24px !important;
    width: 780px !important;
    height: 465px !important;
    aspect-ratio: unset !important;
    transform: translateX(-50%) !important;
    padding-top: 78px !important;
    padding-bottom: 24px !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
  }

  #output .framer-15muw7s {
    left: 50% !important;
    right: unset !important;
    top: -10px !important;
    width: min(86vw, 316px) !important;
    max-width: 316px !important;
    transform: translateX(-50%) !important;
  }

  .thin-terms-book-wrap {
    width: min(334px, calc(100vw - 36px)) !important;
    max-width: calc(100vw - 36px) !important;
    margin: 0 auto !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
  }

  .thin-terms-scroll-hint {
    font-size: 9.5px;
    padding: 4px 6px;
  }

  #dieu-khoan-reader {
    height: clamp(195px, 31vh, 232px);
    padding: 6px 8px 14px;
    touch-action: pan-y;
  }

  .thin-term-title {
    font-size: 14.5px;
  }

  .thin-term-list li {
    font-size: 12.5px;
    line-height: 1.48;
  }
}

@media (max-width: 374.98px) {
  .framer-z9lgyi {
    width: min(86vw, 258px) !important;
  }
  .thin-terms-book-wrap {
    padding: 0 6px 0 16px !important;
  }
  .thin-terms-scroll-hint {
    font-size: 8.5px;
  }
  .thin-term-title {
    font-size: 13.5px;
  }
  .thin-term-list li {
    font-size: 11.8px;
  }
}
