/* Tên Hay Cho Bé – khung chọn tên */

/* Trang chủ: bỏ chòm sao 3D, ô ngày sinh và link nhỏ ở đầu trang; khung chọn tên là nút chính */
.tl-hero .thcb-stage > :not(.tlc), .tl-hero .sb-s2d { display: none !important; }
.tl-hero .tl-hero-copy > .tl-qm, .tl-hero .tl-hero-copy > .tl-hero-links { display: none !important; }
.tl-hero.tlc-on { overflow-x: hidden; }
.tl-hero.tlc-on .thcb-stage { display: flex; align-items: center; justify-content: center; min-height: 0; height: auto; }
@media (max-width: 1023px) {
  .tl-hero.tlc-on .thcb-stage { display: none !important; }
  .tl-hero.tlc-on .tl-hero-copy { max-width: 100%; box-sizing: border-box; }
}

/* Hero trang chủ trên điện thoại: gọn lại để khung chọn tên nằm trong màn hình đầu */
@media (max-width: 760px) {
  .tl-hero.tlc-on { padding-top: 84px !important; padding-bottom: 28px !important; gap: 0 !important; grid-template-columns: minmax(0, 1fr) !important; overflow: visible !important; }
  .thcb-home { overflow-x: clip; } /* nền sao tràn sát mép, không trượt ngang */
  .tl-hero.tlc-on .tl-hero-copy { min-width: 0; width: 100%; max-width: 100% !important; padding: 8px 0 0 !important; overflow: visible;
    background: transparent !important; border: 0 !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .tl-hero.tlc-on .tl-hero-copy > * { max-width: 100%; }
  /* 2 thẻ lớn → 1 hàng nút nhỏ dạng tab */
  .tl-hero.tlc-on .tldh-chon { display: flex !important; gap: 4px !important; margin: 0 0 14px !important; padding: 4px; max-width: none;
    border-radius: 999px; background: var(--giay-2, #FCE8DF); }
  .tl-hero.tlc-on .tldh-chon-a { flex: 1 1 0; min-width: 0; overflow: hidden; flex-direction: row !important; align-items: center !important; justify-content: center; gap: 6px !important;
    min-height: 40px; padding: 6px 10px !important; border: 0 !important; border-radius: 999px !important; background: transparent !important;
    box-shadow: none !important; transform: none !important; font-size: 14px; line-height: 1.2; white-space: nowrap; color: var(--muc-2, #5B4F6E) !important; }
  .tl-hero.tlc-on .tldh-chon-a.do { background: #fff !important; color: var(--son, #D2604D) !important; box-shadow: 0 2px 8px -2px rgba(46, 36, 66, .18) !important; }
  .tl-hero.tlc-on .tldh-chon-a .ic { width: 20px !important; height: 20px !important; margin: 0 !important; flex: none; }
  .tl-hero.tlc-on .tldh-chon-a .ic svg, .tl-hero.tlc-on .tldh-chon-a .ic img { width: 20px !important; height: 20px !important; }
  .tl-hero.tlc-on .tldh-chon-a b { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 14px !important; font-weight: 600; }
  .tl-hero.tlc-on .tl-hero-copy .tlc { width: auto; }
  .tl-hero.tlc-on .tldh-chon-a small, .tl-hero.tlc-on .tldh-chon-a .mui { display: none !important; }
  /* Chữ: nhỏ lại, bỏ đoạn mô tả dài (khung chọn tên đã tự nói) */
  .tl-hero.tlc-on .tl-kicker { margin: 0 0 6px !important; font-size: 10.5px !important; letter-spacing: .12em; text-align: center; }
  .tl-hero.tlc-on .tl-hero-copy h1 { margin: 0 0 4px !important; font-size: clamp(26px, 7.4vw, 31px) !important; line-height: 1.12 !important; text-align: center; text-wrap: balance; }
  .tl-hero.tlc-on .tl-hero-sub { display: none !important; }
  /* Khung chọn tên: tràn hết bề ngang hộp */
  .tl-hero.tlc-on .tl-hero-copy .tlc { max-width: none; margin: 16px 0 4px !important; padding: 18px 16px 14px; border-radius: 20px; }
  .tl-hero.tlc-on .tlc-h { font-size: 23px !important; margin-bottom: 12px !important; }
  .tl-hero.tlc-on .tlc-nut-to { min-height: 72px; padding: 12px 14px; }
  .tl-hero.tlc-on .tlc-nut-to b { font-size: 1.08rem; }
  .tl-hero.tlc-on .tlc-nut-to i { width: 40px; height: 40px; font-size: 19px; }
}
@media (max-width: 380px) {
  .tl-hero.tlc-on .tldh-chon-a { gap: 4px !important; padding: 6px 6px !important; }
  .tl-hero.tlc-on .tldh-chon-a b { font-size: 12.5px !important; }
  .tl-hero.tlc-on .tldh-chon-a .ic, .tl-hero.tlc-on .tldh-chon-a .ic svg { width: 16px !important; height: 16px !important; }
  .tl-hero.tlc-on .tl-hero-copy .tlc { padding: 16px 12px 12px; }
}
/* Dòng nhỏ dưới khung trên trang chủ */
.tlc-dam { margin: 10px 0 0; font-size: 12.5px; text-align: center; color: var(--muc-3, #857A96); }
.tl-hero:not(.tlc-on) .tlc-dam { display: none; }

.tlc {
  --tlc-son: var(--son, #B23A2B); --tlc-son2: var(--son-2, #8E2B1F); --tlc-muc: #3B2A24; --tlc-nhat: #7A6A62; --tlc-vien: #EADBCB;
  box-sizing: border-box; width: 100%; max-width: 480px; margin: 18px 0; padding: 22px 20px 18px;
  background: #FFFCF6; color: var(--tlc-muc); border: 1px solid var(--tlc-vien); border-radius: 22px;
  box-shadow: 0 24px 50px -28px rgba(90, 40, 30, .45); font-size: 16px; line-height: 1.5; text-align: left;
}
.tlc *, .tlc *::before, .tlc *::after { box-sizing: border-box; }
.thcb-stage .tlc { margin: 0; }
.tlc-tool, .tlc-tiep { max-width: 640px; }
.tlc button { font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tlc button[disabled] { opacity: .4; cursor: default; }
.tlc [hidden] { display: none !important; }

.tlc-k { display: block; margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tlc-son); }
.tlc-h { margin: 0 0 14px !important; font-family: var(--serif, Georgia, serif); font-size: clamp(24px, 6vw, 30px) !important; line-height: 1.15; color: var(--tlc-muc); }
.tlc-q { display: block; margin: 14px 0 8px !important; font-size: 1rem !important; font-weight: 600; font-family: inherit !important; color: var(--tlc-muc); }
.tlc-q:first-child { margin-top: 0 !important; }

/* Bước */
.tlc-buoc { display: flex; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; counter-reset: b; }
.tlc-buoc li { flex: 1; margin: 0; padding: 6px 0 0; border-top: 3px solid var(--tlc-vien); font-size: 12px; color: var(--tlc-nhat); }
.tlc-buoc li.qua { border-color: #E3A99C; }
.tlc-buoc li.on { border-color: var(--tlc-son); color: var(--tlc-son); font-weight: 700; }

/* Hai nút chính */
.tlc-2nut { display: grid; gap: 12px; }
.tlc-nut-to { display: grid; grid-template-columns: 46px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; width: 100%; min-height: 84px; padding: 14px 16px; text-align: left;
  border: 0; border-radius: 18px; color: #fff; background: linear-gradient(135deg, #D9604A, var(--tlc-son)); box-shadow: 0 14px 28px -16px rgba(178, 58, 43, .9); transition: transform .15s, box-shadow .15s; }
.tlc-nut-to:hover, .tlc-nut-to:focus-visible { transform: translateY(-2px); box-shadow: 0 18px 32px -16px rgba(178, 58, 43, 1); }
.tlc-nut-to i { grid-row: 1 / 3; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .2); font-style: normal; font-size: 22px; }
.tlc-nut-to b { font-size: 1.2rem; line-height: 1.2; }
.tlc-nut-to small { font-size: .85rem; opacity: .9; line-height: 1.35; }
.tlc-nut-to.tlc-xanh { background: linear-gradient(135deg, #3F7F6E, #2F5E55); box-shadow: 0 14px 28px -16px rgba(47, 94, 85, .9); }
.tlc-lai { margin: 14px 0 0; font-size: .9rem; color: var(--tlc-nhat); }

/* Ô nhập, chips */
.tlc-in { display: block; width: 100%; min-height: 50px; padding: 12px 14px; margin: 0; border: 1px solid #DCCAB8; border-radius: 12px; background: #fff; font: inherit; font-size: 17px; color: var(--tlc-muc); box-shadow: none; }
.tlc-in:focus { outline: 2px solid rgba(178, 58, 43, .35); border-color: var(--tlc-son); }
.tlc-chips, .tlc-goi, .tlc-che, .tlc-huong-chon { display: flex; flex-wrap: wrap; gap: 8px; }
.tlc-chips button, .tlc-che button, .tlc-huong-chon button { min-height: 42px; padding: 8px 14px; border: 1px solid #DCCAB8; border-radius: 999px; background: #fff; color: var(--tlc-muc); font-weight: 500; }
.tlc-chips button.on, .tlc-che button.on, .tlc-huong-chon button.on { background: var(--tlc-son); border-color: var(--tlc-son); color: #fff; }
.tlc-goi { margin: 8px 0 0; }
.tlc-goi button { padding: 4px 10px; border: 0; border-radius: 999px; background: #F4E9DD; color: var(--tlc-muc); font-size: 14px; }
.tlc-chk { display: flex; align-items: center; gap: 8px; margin: 14px 0 8px; font-size: .95rem; cursor: pointer; }
.tlc-chk input { width: 20px; height: 20px; margin: 0; accent-color: var(--tlc-son); }
.tlc-chk small { color: var(--tlc-nhat); }
.tlc-ghep { display: flex; align-items: center; gap: 10px; }
.tlc-ghep span { flex: none; font-family: var(--serif, Georgia, serif); font-size: 1.3rem; font-weight: 600; }
.tlc-goi-y { margin: 8px 0 0; font-size: .85rem; color: var(--tlc-nhat); }
.tlc-loi { margin: 10px 0 0; color: var(--tlc-son2); font-weight: 500; font-size: .92rem; }

/* Lựa chọn dạng thẻ */
.tlc-chon3 { display: grid; gap: 10px; }
.tlc-chon3 > button { display: grid; gap: 2px; width: 100%; padding: 14px 16px; text-align: left; border: 1px solid #E5D3C2; border-radius: 14px; background: #fff; color: var(--tlc-muc); transition: border-color .15s, transform .15s; }
.tlc-chon3 > button:hover, .tlc-chon3 > button:focus-visible { border-color: var(--tlc-son); transform: translateY(-1px); }
.tlc-chon3 b { font-size: 1.02rem; }
.tlc-chon3 small { color: var(--tlc-nhat); font-size: .86rem; }
.tlc-lot-nhap { display: grid; gap: 10px; margin: 12px 0 0; }

/* Nút điều hướng */
.tlc-dieu { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 16px 0 0; flex-wrap: wrap; }
.tlc-chinh { min-height: 50px; padding: 12px 22px; border: 0; border-radius: 14px; background: var(--tlc-son); color: #fff; font-weight: 700; font-size: 1.02rem; box-shadow: 0 10px 22px -14px rgba(178, 58, 43, .9); }
.tlc-chinh:hover { background: var(--tlc-son2); }
.tlc-rong { display: block; width: 100%; margin: 12px 0 0; }
.tlc-link { padding: 6px 0; border: 0; background: none; color: var(--tlc-son); font-weight: 600; font-size: .92rem; text-decoration: underline; text-underline-offset: 3px; }
.tlc-boqua { display: block; margin: 14px auto 0; color: var(--tlc-nhat); font-weight: 500; }

/* Thẻ tên khi lướt */
.tlc-che { margin: 0 0 12px; }
.tlc-che { flex-wrap: nowrap; gap: 6px; }
.tlc-che button { flex: 1 1 0; min-width: 0; min-height: 38px; padding: 6px 6px; font-size: 13px; line-height: 1.2; white-space: normal; }
.tlc-the { display: grid; justify-items: center; gap: 4px; min-height: 210px; padding: 22px 16px 18px; text-align: center; border-radius: 18px;
  background: radial-gradient(120% 90% at 50% 0%, #FFF3E6, #FBE6DA 60%, #F6D9CC); border: 1px solid #F0D3C2; touch-action: pan-y; user-select: none; animation: tlcVao .28s ease; }
@keyframes tlcVao { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tlc-cho { place-content: center; color: var(--tlc-nhat); animation: none; }
.tlc-ho { font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; color: var(--tlc-nhat); }
.tlc-ten { display: block; font-family: var(--serif, Georgia, serif); font-size: clamp(30px, 8vw, 40px); line-height: 1.1; font-weight: 700; color: var(--tlc-muc); }
.tlc-ten em { font-style: normal; color: var(--tlc-son); }
.tlc-han { font-size: 1.15rem; letter-spacing: .25em; color: var(--tlc-son2); font-family: 'Noto Serif TC', 'Songti TC', serif; }
.tlc-y { margin: 6px 0 0 !important; max-width: 36ch; font-size: .98rem; line-height: 1.5; color: #5A4840; }
.tlc-moi { margin: 8px 0 0 !important; font-size: .85rem; font-style: italic; color: var(--tlc-son2); }
.tlc-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0 0; }
.tlc-nav button { flex: 1; min-height: 48px; border: 1px solid #DCCAB8; border-radius: 14px; background: #fff; color: var(--tlc-muc); font-weight: 600; font-size: 1.02rem; }
.tlc-dem { min-width: 2.5em; text-align: center; font-size: .85rem; color: var(--tlc-nhat); }

/* Sau khi chọn tên: danh sách sản phẩm */
.tlc-xong { display: grid; justify-items: center; gap: 2px; padding: 16px; margin: 0 0 6px; text-align: center; border-radius: 18px; background: radial-gradient(120% 90% at 50% 0%, #FFF3E6, #FBE6DA); }
.tlc-xong .tlc-ten { font-size: clamp(26px, 7vw, 34px); }
.tlc-huong-chon { align-items: center; margin: 14px 0 0; font-size: .9rem; color: var(--tlc-nhat); }
.tlc-huong-chon button { min-height: 34px; padding: 4px 12px; font-size: 14px; }
.tlc-sps { display: grid; gap: 10px; }
.tlc-sp { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: start; padding: 14px; border: 1px solid #EAD8C8; border-radius: 16px; background: #fff; color: var(--tlc-muc) !important; text-decoration: none !important; transition: transform .15s, box-shadow .15s, border-color .15s; }
.tlc-sp:hover, .tlc-sp:focus-visible { transform: translateY(-2px); border-color: var(--tlc-son); box-shadow: 0 12px 24px -16px rgba(142, 43, 31, .6); }
.tlc-sp i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #F8E7DC; color: var(--tlc-son); font-style: normal; font-size: 20px; font-family: 'Noto Serif TC', serif; }
.tlc-sp span { display: grid; gap: 3px; min-width: 0; }
.tlc-sp b { font-size: 1.02rem; line-height: 1.3; }
.tlc-sp small { font-size: .88rem; line-height: 1.45; color: var(--tlc-nhat); }
.tlc-sp em { font-style: normal; font-size: .85rem; font-weight: 700; color: var(--tlc-son); }
.tlc-sp-top { background: linear-gradient(135deg, #3B2A24, #6B3A2C); border: 0; color: #FBF1EA !important; }
.tlc-sp-top i { background: rgba(242, 196, 109, .2); color: #F2C46D; }
.tlc-sp-top small { color: #EBD5C8; }
.tlc-sp-top em { color: #F2C46D; }
.tlc-het { margin: 14px 0 0; text-align: center; color: var(--tlc-nhat); }

/* Trang công cụ */
.tlc-an { display: none !important; }
.tlc-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: #FBF1EA; border: 1px solid #EED8C8; }
.tlc-bar b { font-family: var(--serif, Georgia, serif); font-size: 1.15rem; color: var(--son, #B23A2B); }
.tlc-bar button { padding: 6px 12px; border: 1px solid #DCCAB8; border-radius: 999px; background: #fff; font: inherit; font-size: .9rem; cursor: pointer; }
.tlc-tiep { margin: 26px auto; }

@media (prefers-reduced-motion: reduce) { .tlc-the { animation: none; } .tlc-nut-to, .tlc-sp, .tlc-chon3 > button { transition: none; } }
