/* ==========================================================================
 * BIN TỬ VI — Giao Diện Không Gian Đêm Sao "Thiên Cơ Đinh Mùi 2027" & "Lì Xì Lá Số"
 * Nền đêm huyền nhiệm độc lập — độ tương phản chữ sáng đạt chuẩn AAA ở cả Sáng & Tối.
 * ========================================================================== */

/* --- KHUNG TRANG ĐỘC LẬP /lixi (.tc-standalone-body) --- */
html.tc-standalone-doc,
.tc-standalone-body {
  --font-display: 'Tinos', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-han: 'Noto Serif TC', serif;
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #0d0c11;
  color: #f6eedc;
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
html.tc-standalone-doc *,
html.tc-standalone-doc *::before,
html.tc-standalone-doc *::after {
  box-sizing: border-box;
}
html.tc-standalone-doc [hidden] {
  display: none !important;
}
html.tc-standalone-doc button,
html.tc-standalone-doc input,
html.tc-standalone-doc select,
html.tc-standalone-doc textarea {
  font-family: inherit;
}
.tc-lixi-banner-btns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.tc-lixi-try {
  color: #f3d285;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}
.tc-lixi-try:hover {
  text-decoration: underline;
}
.tc-standalone-main {
  flex: 1 0 auto;
}
.tc-standalone-bar {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(243, 210, 133, 0.22);
  background: rgba(13, 11, 17, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.tc-standalone-bar-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tc-standalone-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: #f6eedc;
  flex-shrink: 0;
}
.tc-standalone-seal {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: linear-gradient(145deg, #a62a1e, #6d160f);
  border: 1.5px solid #f3d285;
  box-shadow: 0 4px 14px rgba(166, 42, 30, 0.45);
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  font-family: var(--font-han, 'Noto Serif TC', serif);
  font-size: 16px;
  font-weight: 600;
  color: #fff6e4;
}
.tc-standalone-brand-txt {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.tc-standalone-brand-txt strong {
  font-family: var(--font-display, 'Tinos', Georgia, serif);
  font-size: 1.2rem;
  color: #fff8ea;
}
.tc-standalone-brand-txt small {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #d8b56c;
}
.tc-standalone-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}
.tc-snav-btn,
.tc-snav-home {
  min-height: 36px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid rgba(243, 210, 133, 0.28);
  background: rgba(255, 255, 255, 0.05);
  color: #efe4cf;
  font-family: inherit;
  font-size: 0.81rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.tc-snav-btn:hover,
.tc-snav-btn.is-active,
.tc-snav-home:hover {
  border-color: #f3d285;
  background: rgba(243, 210, 133, 0.18);
  color: #ffffff;
}
.tc-snav-btn.is-lixi {
  border-color: rgba(232, 116, 97, 0.52);
  background: rgba(161, 41, 29, 0.36);
  color: #ffeed8;
}
.tc-snav-home {
  border-color: rgba(255, 255, 255, 0.18);
  background: transparent;
  color: #cbbda4;
}
@media (min-width: 761px) {
  .tc-standalone-body .tc-tabs-dock {
    top: 66px;
  }
}
.tc-standalone-foot {
  border-top: 1px solid rgba(243, 210, 133, 0.16);
  background: #0b0a0e;
  color: #b7a992;
  font-size: 0.82rem;
}
.tc-standalone-foot-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.tc-standalone-foot strong {
  color: #f3d285;
}
.tc-standalone-foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.tc-standalone-foot-links a {
  color: #d6c8ae;
  text-decoration: none;
}
.tc-standalone-foot-links a:hover {
  color: #f3d285;
  text-decoration: underline;
}

.tc-cosmos-stage {
  --tb-nhan: #f3d285;
  --tb-chu: #f6eedc;
  --tb-chu-2: #cfc2a9;
  --tb-chu-3: #a89b84;
  --tb-kim: #dfbe78;
  --chu: #f6eedc;
  --chu-2: #cfc2a9;
  --chu-3: #a89b84;
  --kim: #dfbe78;
  color-scheme: dark;
  position: relative;
  min-height: calc(100vh - 80px);
  padding: 44px 0 110px;
  background:
    radial-gradient(65% 50% at 50% 12%, rgba(92, 68, 36, 0.24), transparent 70%),
    radial-gradient(60% 65% at 18% 45%, rgba(36, 56, 98, 0.22), transparent 72%),
    linear-gradient(180deg, #0d0c11 0%, #141118 52%, #0e0c10 100%);
  color: #f6eedc;
  overflow-x: clip;
}
.tc-cosmos-stage h1,
.tc-cosmos-stage h2,
.tc-cosmos-stage h3,
.tc-cosmos-stage h4 {
  color: #f8f1e1;
}
.tc-cosmos-stage h1 em,
.tc-cosmos-stage h2 em,
.tc-cosmos-stage h3 em,
.tc-cosmos-stage em {
  color: #f3d285;
}
.tc-cosmos-stage select option {
  background: #17141d;
  color: #f6eedc;
}
.tc-cosmos-stage > .container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.tc-sky-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.tc-intake-wrap,
.tc-res-container {
  position: relative;
  z-index: 2;
}
.tc-intake-wrap {
  max-width: 650px;
  margin: 0 auto;
}
.tc-res-container {
  max-width: 820px;
  margin: 0 auto;
}

/* --- 1. LA KINH BÁT QUÁI 24 SƠN & CHỮ 2027 CHÌM --- */
.tc-lakinh-wrap {
  position: relative;
  text-align: center;
  margin-bottom: 30px;
}
.tc-watermark-2027 {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(5.5rem, 19vw, 9.5rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(243, 210, 133, 0.14);
  pointer-events: none;
  user-select: none;
}
.tc-lakinh-svg {
  width: min(296px, 76vw);
  height: auto;
  margin: 0 auto;
  display: block;
}
.tc-lk-son {
  font-family: var(--font-han);
  font-size: 11px;
  fill: rgba(235, 222, 195, 0.58);
}
.tc-lk-son.is-hl {
  fill: #f5d88a;
  font-weight: 700;
  font-size: 13px;
}
.tc-lk-bagua {
  font-size: 15px;
  fill: rgba(243, 210, 133, 0.72);
}
@keyframes tcSlowOrbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.tc-lk-ring-spin {
  transform-origin: 180px 180px;
  animation: tcSlowOrbit 220s linear infinite;
}
.tc-lakinh-sub {
  margin: 12px 0 0;
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  color: #d8b56c;
  text-transform: uppercase;
}

/* --- 2. LUỒNG HỘI THOẠI TỪNG CÂU (CONVERSATIONAL INTAKE) --- */
.tc-story-form {
  display: grid;
  gap: 20px;
  padding: 8px 4px 18px;
}
.tc-step {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 4.6vw, 2.2rem);
  line-height: 1.38;
  color: #f6eedc;
  animation: tcFadeStep 0.38s ease both;
}
.tc-step.is-done {
  color: rgba(236, 226, 206, 0.62);
}
@keyframes tcFadeStep {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.tc-prompt {
  margin-right: 8px;
}
.tc-inline-edit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
}
.tc-inline-edit input {
  width: min(290px, 68vw);
  padding: 4px 2px 6px;
  border: 0;
  border-bottom: 1.5px solid rgba(243, 210, 133, 0.65);
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: inherit;
  font-weight: 700;
  outline: none;
}
.tc-inline-edit input::placeholder {
  color: rgba(246, 238, 220, 0.34);
  font-weight: 400;
}
.tc-next-arrow {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 0;
  background: linear-gradient(135deg, #d7ad5d, #b3843a);
  color: #1a1208;
  font-size: 1.45rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}
.tc-collapsed-val {
  display: inline;
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1.5px dashed rgba(243, 210, 133, 0.68);
  background: none;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: inherit;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}
.tc-collapsed-val:hover {
  color: #f5d88a;
  border-bottom-color: #f5d88a;
}

.tc-dob-selects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}
.tc-dob-selects select,
.tc-hour-edit select {
  width: 100%;
  min-height: 48px;
  padding: 6px 8px;
  border: 0;
  border-bottom: 1.5px solid rgba(243, 210, 133, 0.55);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  outline: none;
}
.tc-dob-selects select option,
.tc-hour-edit select option {
  background: #1a151c;
  color: #f6eedc;
}
.tc-hour-edit {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.tc-hour-edit select {
  width: auto;
  min-width: 210px;
}
.tc-mini-pill {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(243, 210, 133, 0.42);
  background: rgba(243, 210, 133, 0.08);
  color: #f3d285;
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
}

.tc-gender-pills,
.tc-sec-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.tc-pill-choice {
  min-height: 46px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(246, 238, 220, 0.28);
  background: rgba(255, 255, 255, 0.05);
  color: #f6eedc;
  font-family: var(--font-body);
  font-size: 0.96rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.tc-pill-choice:hover,
.tc-pill-choice.is-on {
  border-color: #f3d285;
  background: rgba(243, 210, 133, 0.18);
  color: #fff8e6;
}

.tc-ask-title {
  font-size: clamp(1.65rem, 5vw, 2.25rem);
  color: #ffffff;
  margin: 6px 0 14px;
}
.tc-primary-mode-card {
  width: 100%;
  text-align: left;
  padding: 18px 22px;
  border-radius: 14px;
  border: 1px solid #f5d88a;
  background: linear-gradient(135deg, #d7b268, #b5893d);
  color: #181106;
  cursor: pointer;
  box-shadow: 0 14px 34px -12px rgba(215, 178, 104, 0.48);
  transition: transform 0.2s, box-shadow 0.2s;
}
.tc-primary-mode-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px -12px rgba(215, 178, 104, 0.65);
}
.tc-primary-mode-card strong {
  display: block;
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 3px;
}
.tc-primary-mode-card span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: #2b1f0c;
}
.tc-or-divider {
  display: block;
  margin: 18px 0 10px;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(246, 238, 220, 0.55);
}

.tc-partner-box {
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(243, 210, 133, 0.35);
  background: rgba(255, 255, 255, 0.04);
}

/* Lưới 4 chế độ đối chiếu đời thực & danh sách 5 câu hỏi thực tế */
.tc-mode-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.tc-mode-card-btn {
  text-align: left;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(246, 238, 220, 0.24);
  background: rgba(255, 255, 255, 0.045);
  color: #f6eedc;
  font-family: var(--font-body);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.2s, background 0.2s, transform 0.16s;
}
.tc-mode-card-btn strong {
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff8e8;
}
.tc-mode-card-btn small {
  font-size: 0.8rem;
  line-height: 1.42;
  color: #cbbda4;
}
.tc-mode-card-btn:hover,
.tc-mode-card-btn.is-on {
  border-color: #f3d285;
  background: rgba(243, 210, 133, 0.15);
  transform: translateY(-2px);
}

.tc-focus-step {
  font-family: var(--font-body);
  font-size: 1rem;
}
.tc-focus-box {
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid rgba(243, 210, 133, 0.34);
  background: rgba(24, 20, 30, 0.82);
}
.tc-focus-sub {
  margin: 4px 0 12px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #d2c5ae;
}
.tc-focus-list {
  display: grid;
  gap: 9px;
}
.tc-focus-btn {
  width: 100%;
  text-align: left;
  padding: 12px 15px;
  border-radius: 12px;
  border: 1px solid rgba(246, 238, 220, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: #f6eedc;
  font-family: var(--font-body);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: border-color 0.18s, background 0.18s;
}
.tc-focus-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8cbcff;
}
.tc-focus-btn strong {
  font-size: 0.93rem;
  font-weight: 600;
  line-height: 1.45;
  color: #f6eedc;
}
.tc-focus-btn:hover {
  border-color: rgba(243, 210, 133, 0.55);
  background: rgba(243, 210, 133, 0.08);
}
.tc-focus-btn.is-on {
  border-color: #f3d285;
  background: linear-gradient(135deg, rgba(215, 178, 104, 0.24), rgba(161, 41, 29, 0.2));
  box-shadow: 0 8px 22px -12px rgba(243, 210, 133, 0.5);
}
.tc-focus-btn.is-on .tc-focus-tag {
  color: #f5d88a;
}
.tc-focus-btn.is-on strong {
  color: #ffffff;
}

/* --- 3. NÚT GIỮ ĐỂ PHÁ ẤN --- */
.tc-seal-step {
  text-align: center;
  padding: 20px 12px 10px;
}
.tc-seal-quote {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: #d8cebc;
  max-width: 440px;
  margin: 0 auto 18px;
}
.tc-hold-seal-btn {
  position: relative;
  width: 136px;
  height: 136px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}
.tc-seal-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.tc-ring-bg {
  fill: rgba(161, 41, 29, 0.22);
  stroke: rgba(243, 210, 133, 0.35);
  stroke-width: 4;
}
.tc-ring-prog {
  fill: none;
  stroke: #f5d88a;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  transition: stroke-dashoffset 0.08s linear;
}
.tc-seal-core {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #c93b2b, #7d1910 75%);
  border: 1.5px solid #f5d88a;
  box-shadow: 0 12px 30px rgba(161, 41, 29, 0.55);
  color: #fff6e3;
  transition: transform 0.18s;
}
.tc-hold-seal-btn.is-holding .tc-seal-core {
  transform: scale(0.94);
  box-shadow: 0 0 36px rgba(245, 216, 138, 0.65);
}
.tc-seal-core b {
  font-family: var(--font-han);
  font-size: 2rem;
  line-height: 1;
}
.tc-seal-core small {
  margin-top: 5px;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.tc-seal-hint {
  margin: 12px 0 0;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: rgba(243, 210, 133, 0.78);
}

/* --- 4. THẺ LÌ XÌ MỘT LÁ SỐ BANNER --- */
.tc-lixi-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid rgba(232, 168, 92, 0.42);
  background: linear-gradient(135deg, rgba(124, 28, 19, 0.82), rgba(58, 14, 10, 0.9));
  box-shadow: 0 18px 42px -18px rgba(0, 0, 0, 0.65);
}
.tc-lixi-icon {
  flex: 0 0 auto;
  width: 58px;
  height: 76px;
  border-radius: 8px;
  background: linear-gradient(160deg, #b82d20, #7c1810);
  border: 1.2px solid #f3d285;
  display: grid;
  place-items: center;
  position: relative;
}
.tc-lixi-icon span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f3d285;
  color: #6b150e;
  font-family: var(--font-han);
  font-weight: 700;
  font-size: 15px;
  display: grid;
  place-items: center;
}
.tc-lixi-body small {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #f3d285;
}
.tc-lixi-body strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: #fff8eb;
  margin: 2px 0 4px;
}
.tc-lixi-body p {
  margin: 0 0 12px;
  font-size: 0.88rem;
  color: #f0dec4;
  line-height: 1.45;
}
.tc-lixi-cta {
  padding: 8px 18px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, #f5d88a, #d1a24b);
  color: #241505;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}
.tc-restore-links {
  text-align: center;
  margin-top: 18px;
}
.tc-link-btn {
  border: 0;
  background: none;
  color: #d6c8ae;
  font-size: 0.86rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.tc-link-btn:hover { color: #f5d88a; }

/* --- 5. MÀN HÌNH KẾT QUẢ 5 TAB --- */
.tc-res-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
.tc-res-meta {
  margin: 0 0 6px;
  font-size: 0.85rem;
  color: #cbbda4;
}
.tc-res-title {
  font-size: clamp(1.9rem, 5vw, 2.75rem);
  color: #ffffff;
  line-height: 1.12;
}
.tc-res-title em {
  color: #f3d285;
  font-style: italic;
}
.tc-res-top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tc-tabs-dock {
  position: sticky;
  top: 84px;
  z-index: 35;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  margin-bottom: 22px;
  border-radius: 16px;
  border: 1px solid rgba(243, 210, 133, 0.34);
  background: rgba(20, 16, 24, 0.92);
  backdrop-filter: blur(12px);
}
.tc-tab-btn {
  position: relative;
  min-height: 48px;
  padding: 6px 4px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #c8bca6;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: background 0.2s, color 0.2s;
}
.tc-tab-ic {
  font-size: 1.05rem;
  line-height: 1;
}
.tc-tab-btn.is-on {
  background: linear-gradient(135deg, #e0bb6b, #b6883a);
  color: #191106;
  font-weight: 700;
}
.tc-tab-badge {
  position: absolute;
  top: -6px;
  right: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #4787df;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 700;
}

/* Thẻ nội dung kết quả */
.tc-card {
  padding: 26px 24px;
  margin-bottom: 20px;
  border-radius: 18px;
  border: 1px solid rgba(243, 210, 133, 0.24);
  background: rgba(26, 22, 31, 0.88);
  box-shadow: 0 20px 48px -24px rgba(0, 0, 0, 0.72);
}
.tc-card h2,
.tc-card h3 {
  color: #ffffff;
  margin: 4px 0 10px;
}
.tc-card h3 { font-size: 1.5rem; }
.tc-eyebrow {
  display: inline-block;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f3d285;
  margin-bottom: 4px;
}
.tc-muted {
  color: #cfc3ae;
  margin: 0;
  line-height: 1.62;
}

/* Card 1: Bản thể */
.tc-archetype-card {
  text-align: center;
  background:
    radial-gradient(80% 50% at 50% 0%, rgba(84, 132, 224, 0.18), transparent 70%),
    rgba(24, 21, 32, 0.92);
}
.tc-arch-name {
  font-size: clamp(2.1rem, 6.5vw, 3.1rem);
  color: #7ab0ff !important;
  text-shadow: 0 0 28px rgba(100, 160, 255, 0.32);
  margin: 4px 0 !important;
}
.tc-arch-num {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #f6eedc;
}
.tc-arch-poetic {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.12rem;
  color: #dfd4c0;
  margin: 0 0 14px;
}
.tc-pill-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
}
.tc-pill-badges span {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px dashed rgba(243, 210, 133, 0.42);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.82rem;
  color: #f3e8d2;
}
.tc-check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  text-align: left;
  display: grid;
  gap: 10px;
}
.tc-check-list li {
  position: relative;
  padding-left: 26px;
  color: #efe5d2;
  line-height: 1.55;
}
.tc-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #6fd4a4;
  font-weight: 700;
}
.tc-highlight-callout {
  text-align: left;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(114, 168, 248, 0.38);
  background: rgba(54, 92, 158, 0.18);
}
.tc-highlight-callout small {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #8cbcff;
  margin-bottom: 4px;
}
.tc-highlight-callout p {
  margin: 0;
  font-size: 0.92rem;
  color: #eef3fc;
}

.tc-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  text-align: left;
}
.tc-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  text-align: left;
}
.tc-subbox {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(246, 238, 220, 0.14);
  background: rgba(255, 255, 255, 0.035);
}
.tc-subbox small {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f3d285;
  margin-bottom: 5px;
}
.tc-subbox strong {
  display: block;
  font-size: 1.08rem;
  color: #ffffff;
}
.tc-subbox p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #e2d7c3;
}
.tc-subbox.is-do { border-color: rgba(95, 204, 152, 0.4); }
.tc-subbox.is-do small { color: #7be0b3; }
.tc-subbox.is-avoid { border-color: rgba(240, 132, 112, 0.4); }
.tc-subbox.is-avoid small { color: #f59c8c; }
.tc-card-foot {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

/* Bản đồ sao 12 cung tròn */
.tc-smap-wrap {
  text-align: center;
}
.tc-smap-svg {
  width: 100%;
  max-width: 390px;
  margin: 0 auto;
  display: block;
}
.tc-smap-node { cursor: pointer; }
.tc-smap-orb {
  fill: #1b1722;
  stroke: rgba(243, 210, 133, 0.35);
  stroke-width: 1.2;
  transition: transform 0.2s, stroke 0.2s;
}
.tc-smap-node.is-menh .tc-smap-orb { fill: #4a201d; stroke: #ff8e7e; stroke-width: 2; }
.tc-smap-node.is-dh .tc-smap-orb { fill: #1d3654; stroke: #7ab0ff; stroke-width: 2; }
.tc-smap-node.is-2027 .tc-smap-orb { stroke: #f5d88a; stroke-width: 2.2; }
.tc-smap-name { fill: #f6eedc; font-size: 9px; font-weight: 600; }
.tc-smap-chi { fill: #cbbda4; font-size: 8.5px; }
.tc-smap-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 10px 0 12px;
  font-size: 0.8rem;
  color: #d6c8ae;
}
.tc-smap-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
}
.tc-smap-legend i.is-m { background: #ff8e7e; }
.tc-smap-legend i.is-d { background: #7ab0ff; }
.tc-smap-legend i.is-y { background: #f5d88a; }
.tc-smap-detail {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(243, 210, 133, 0.3);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.9rem;
  color: #f3ead8;
}

/* Tab 2: Gauge Chỉ số thử thách + 3 lá lật + Ma trận 4x5 + 6 thẻ lật */
.tc-gauge-card { text-align: center; }
.tc-gauge-wrap {
  position: relative;
  max-width: 250px;
  margin: 8px auto 6px;
}
.tc-gauge-svg { width: 100%; display: block; }
.tc-gauge-num {
  margin-top: -34px;
}
.tc-gauge-num b {
  font-family: var(--font-display);
  font-size: 3.6rem;
  color: #7ab0ff;
  line-height: 1;
}
.tc-gauge-num span {
  font-size: 1.1rem;
  color: #bfb39c;
  margin-left: 3px;
}
.tc-gauge-verdict {
  font-size: 1.08rem;
  font-weight: 600;
  color: #ffffff;
  margin: 8px 0 6px;
}
.tc-formula-details {
  margin-top: 14px;
  text-align: left;
  border-top: 1px dashed rgba(246, 238, 220, 0.16);
  padding-top: 12px;
}
.tc-formula-details summary {
  cursor: pointer;
  color: #8cbcff;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
}
.tc-formula-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 8px;
}
.tc-formula-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.88rem;
}
.tc-formula-list li.is-good b { color: #7be0b3; }
.tc-formula-list li.is-up b { color: #f59c8c; }

/* 3 Lá thông điệp & 6 Thẻ lật 3D */
.tc-msg-grid,
.tc-six-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.tc-msg-card,
.tc-six-card {
  perspective: 1000px;
  cursor: pointer;
}
.tc-msg-inner,
.tc-six-inner {
  position: relative;
  min-height: 238px;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.tc-six-inner { min-height: 196px; }
.tc-msg-card.is-flipped .tc-msg-inner,
.tc-six-card.is-flipped .tc-six-inner {
  transform: rotateY(180deg);
}
.tc-msg-front,
.tc-msg-back,
.tc-six-front,
.tc-six-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 14px;
  padding: 18px 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.tc-msg-front {
  align-items: center;
  text-align: center;
  border: 1.5px solid rgba(122, 176, 255, 0.45);
  background:
    repeating-linear-gradient(45deg, rgba(122, 176, 255, 0.07) 0 6px, rgba(18, 22, 34, 0.92) 6px 12px);
}
.tc-roman-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid #7ab0ff;
  color: #7ab0ff;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
}
.tc-msg-front small { color: #e8dec8; font-weight: 600; font-size: 0.85rem; }
.tc-msg-front em { margin-top: 8px; font-size: 0.76rem; color: #8cbcff; font-style: normal; }
.tc-msg-back {
  transform: rotateY(180deg);
  justify-content: flex-start;
  text-align: left;
  border: 1.5px solid #f3d285;
  background: linear-gradient(160deg, #251e16, #171310);
  overflow-y: auto;
}
.tc-msg-back small { color: #f3d285; font-size: 0.72rem; text-transform: uppercase; }
.tc-msg-back h4 { margin: 4px 0 2px; font-size: 1.18rem; color: #ffffff; }
.tc-msg-sub { font-size: 0.78rem; color: #8cbcff; margin-bottom: 8px; display: block; }
.tc-msg-back p { margin: 0; font-size: 0.84rem; line-height: 1.48; color: #e6dcc8; }

.tc-six-front {
  border: 1px solid rgba(243, 210, 133, 0.3);
  background: rgba(255, 255, 255, 0.04);
  justify-content: space-between;
}
.tc-six-front small { color: #f3d285; font-size: 0.74rem; text-transform: uppercase; font-weight: 700; }
.tc-six-front h4 { font-size: 1.25rem; color: #ffffff; margin: 6px 0 4px; }
.tc-six-front p { margin: 0; font-size: 0.86rem; color: #d0c4ae; }
.tc-flip-hint { font-size: 0.76rem; color: #8cbcff; margin-top: 10px; }
.tc-six-back {
  transform: rotateY(180deg);
  border: 1px solid #58c291;
  background: #17221e;
  justify-content: flex-start;
  gap: 6px;
  overflow-y: auto;
}
.tc-six-back small { color: #7be0b3; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; }
.tc-six-back p { margin: 0; font-size: 0.82rem; line-height: 1.45; color: #eaf4ef; }

/* Ma trận 4x5 & 18 ngày đẹp */
.tc-filter-group { margin: 12px 0; }
.tc-filter-group small { display: block; color: #cfc3ae; margin-bottom: 6px; font-size: 0.82rem; }
.tc-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tc-chip-btn {
  min-height: 38px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(246, 238, 220, 0.24);
  background: rgba(255, 255, 255, 0.05);
  color: #f3ead8;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tc-chip-btn:hover,
.tc-chip-btn.is-on {
  border-color: #f3d285;
  background: rgba(243, 210, 133, 0.2);
  color: #ffffff;
}
.tc-chip-btn.is-red {
  border-color: rgba(232, 116, 97, 0.55);
  background: rgba(161, 41, 29, 0.45);
}

.tc-ctx-output {
  margin-top: 16px;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid rgba(243, 210, 133, 0.34);
  background: rgba(255, 255, 255, 0.04);
}
.tc-lucky18-box {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed rgba(243, 210, 133, 0.28);
}
.tc-lucky18-box h4 {
  color: #f3d285;
  font-size: 1.15rem;
  margin: 0 0 6px;
}
.tc-days-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.tc-day-pill {
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid rgba(95, 204, 152, 0.32);
  background: rgba(45, 98, 74, 0.16);
}
.tc-day-pill strong { display: block; color: #8ce5ba; font-size: 0.9rem; }
.tc-day-pill span { display: block; color: #dce8e2; font-size: 0.76rem; margin-top: 2px; }

/* Tab 3, 4, 5 & Partner */
.tc-partner-head,
.tc-daily-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.tc-big-score {
  padding: 10px 18px;
  border-radius: 14px;
  border: 1.5px solid #f3d285;
  background: rgba(243, 210, 133, 0.12);
  text-align: center;
}
.tc-big-score b { font-family: var(--font-display); font-size: 2.2rem; color: #f5d88a; display: block; line-height: 1; }
.tc-big-score span { font-size: 0.75rem; color: #dfd3bd; }

/* Khối Giải đáp thẳng 5 Câu hỏi thực tế trên Màn hình Kết quả */
.tc-practical-advisor {
  border-color: rgba(243, 210, 133, 0.48);
  background:
    radial-gradient(75% 55% at 100% 0%, rgba(215, 178, 104, 0.14), transparent 70%),
    rgba(24, 20, 30, 0.94);
}
.tc-qa-spotlight {
  margin-top: 8px;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(243, 210, 133, 0.42);
  background: linear-gradient(150deg, rgba(44, 33, 22, 0.78), rgba(22, 18, 26, 0.9));
}
.tc-qa-spot-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(243, 210, 133, 0.18);
  color: #f5d88a;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.tc-qa-spot-q {
  font-size: clamp(1.25rem, 3.2vw, 1.6rem) !important;
  line-height: 1.32;
  color: #fff9ec !important;
  margin: 0 0 12px !important;
}
.tc-qa-verdict {
  padding: 11px 14px;
  border-radius: 10px;
  border-left: 3px solid #6fd4a4;
  background: rgba(62, 148, 108, 0.16);
  color: #eefaf3;
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 10px;
}
.tc-qa-verdict strong {
  color: #84ebb9;
}
.tc-qa-detail {
  margin: 0 0 12px;
  font-size: 0.93rem;
  line-height: 1.65;
  color: #ebe0cc;
}
.tc-qa-action {
  padding: 9px 13px;
  border-radius: 9px;
  background: rgba(243, 210, 133, 0.11);
  border: 1px dashed rgba(243, 210, 133, 0.38);
  color: #f7dfb0;
  font-size: 0.86rem;
  line-height: 1.5;
}
.tc-qa-others {
  margin-top: 16px;
}
.tc-qa-others-lbl {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbbda4;
  margin-bottom: 8px;
}
.tc-qa-list {
  display: grid;
  gap: 8px;
}
.tc-qa-item {
  border-radius: 12px;
  border: 1px solid rgba(246, 238, 220, 0.16);
  background: rgba(255, 255, 255, 0.035);
  overflow: hidden;
}
.tc-qa-item summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 15px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.tc-qa-item summary::-webkit-details-marker {
  display: none;
}
.tc-qa-tag {
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8cbcff;
}
.tc-qa-item summary strong {
  font-size: 0.93rem;
  color: #f6eedc;
  line-height: 1.45;
}
.tc-qa-item[open] {
  border-color: rgba(243, 210, 133, 0.38);
  background: rgba(255, 255, 255, 0.055);
}
.tc-qa-body {
  padding: 0 15px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
  line-height: 1.6;
  color: #e4d9c5;
}
.tc-qa-body p {
  margin: 10px 0 0;
}
.tc-qa-v-inline {
  color: #93efc3;
}
.tc-qa-act-inline {
  color: #f3d285;
  font-size: 0.84rem;
  font-weight: 600;
}

.tc-essay-lead { font-size: 1.02rem; line-height: 1.72; color: #f1e7d4; margin: 12px 0 18px; }
.tc-seasons-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.tc-essay-quote {
  margin: 0 0 18px;
  padding: 14px 18px;
  border-left: 3px solid #f3d285;
  background: rgba(243, 210, 133, 0.08);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.08rem;
  color: #f7eedb;
}

.tc-stages-list { display: grid; gap: 8px; }
.tc-stage-row {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px;
  align-items: center;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}
.tc-stage-row.is-now {
  border-color: #f3d285;
  background: rgba(243, 210, 133, 0.12);
}
.tc-stage-age { color: #f3d285; font-weight: 700; font-size: 0.86rem; }
.tc-stage-row strong { display: block; color: #ffffff; font-size: 0.96rem; }
.tc-stage-row strong em { color: #7be0b3; font-style: normal; font-size: 0.8rem; margin-left: 6px; }
.tc-stage-row small { color: #cfc3ae; font-size: 0.82rem; }

.tc-proverb { font-family: var(--font-display); font-style: italic; color: #dfd3bd; margin: 4px 0 0; font-size: 1.05rem; }
.tc-stars { color: #f5d88a; font-size: 1.25rem; letter-spacing: 2px; }
.tc-ics-btn {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid rgba(122, 176, 255, 0.45);
  background: rgba(52, 92, 160, 0.22);
  color: #e8f1ff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}
.tc-ics-btn:hover { border-color: #8cbcff; background: rgba(52, 92, 160, 0.35); }

/* --- 6. PHONG BAO LÌ XÌ 3D (/li-xi-la-so/) & MODALS --- */
.tc-red-envelope {
  position: relative;
  border-radius: 20px;
  padding: 58px 26px 32px;
  background: var(--env-bg, linear-gradient(155deg, #6d1610, #3a0b08));
  border: 1.5px solid var(--env-acc, #e2b45a);
  box-shadow: 0 28px 60px -20px rgba(0, 0, 0, 0.8);
  text-align: center;
  overflow: hidden;
}
.tc-env-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 92px;
  background: rgba(0, 0, 0, 0.22);
  border-bottom: 1.5px solid var(--env-acc, #e2b45a);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  transition: transform 0.55s ease;
}
.tc-red-envelope.is-open .tc-env-flap {
  transform: rotateX(180deg);
  opacity: 0.25;
}
.tc-env-coin {
  position: relative;
  z-index: 3;
  width: 66px;
  height: 66px;
  margin: 8px auto 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe6a3, #c9963b);
  color: #5c120b;
  font-family: var(--font-han);
  font-size: 1.9rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s;
}
.tc-env-coin:hover { transform: scale(1.08); }
.tc-env-front-txt small { color: #f3d285; font-size: 0.82rem; display: block; margin-bottom: 6px; }
.tc-env-front-txt h2 { color: #fff8eb; font-size: 2rem; margin: 0 0 10px; }
.tc-env-tap { color: #f5dec0; font-size: 0.9rem; margin: 0; }
.tc-env-letter {
  text-align: left;
  margin-top: 10px;
  padding: 20px;
  border-radius: 14px;
  background: rgba(18, 14, 12, 0.86);
  border: 1px solid rgba(243, 210, 133, 0.4);
  animation: tcFadeStep 0.45s ease both;
}
.tc-env-letter small { color: #f3d285; font-weight: 700; display: block; margin-bottom: 6px; }
.tc-env-letter blockquote {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.55;
  color: #fff6e5;
}
.tc-env-intake input {
  width: 100%;
  min-height: 46px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(243, 210, 133, 0.4);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 1rem;
}

/* Modals */
.tc-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(6, 5, 8, 0.84);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
}
.tc-modal-backdrop[hidden] { display: none !important; }
.tc-modal {
  position: relative;
  width: 100%;
  max-width: 510px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 26px 22px;
  border-radius: 20px;
  border: 1px solid rgba(243, 210, 133, 0.38);
  background: #1a1416;
  color: #f6eedc;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.85);
}
.tc-modal-x {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #f6eedc;
  cursor: pointer;
}
.tc-modal-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 10px;
  border-radius: 50%;
  border: 1px solid rgba(243, 210, 133, 0.48);
  display: grid;
  place-items: center;
  font-size: 1.45rem;
}
.tc-modal h3 { text-align: center; font-size: 1.55rem; color: #ffffff; margin: 0 0 6px; }
.tc-modal-sub { text-align: center; font-size: 0.86rem; color: #cbbda4; margin: 0 0 18px; line-height: 1.5; }

.tc-gift-form { display: grid; gap: 14px; }
.tc-gift-form label,
.tc-lbl {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #e5d8c0;
}
.tc-gift-form input,
.tc-gift-form textarea,
.tc-restore-row input {
  width: 100%;
  margin-top: 5px;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid rgba(243, 210, 133, 0.3);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 0.95rem;
}
.tc-lixi-preview {
  padding: 18px;
  border-radius: 14px;
  background: linear-gradient(155deg, #6d1610, #3a0b08);
  border: 1px solid #e2b45a;
  text-align: center;
}
.tc-lixi-seal {
  width: 34px;
  height: 34px;
  margin: 0 auto 6px;
  border-radius: 50%;
  background: #f3d285;
  color: #5c120b;
  font-family: var(--font-han);
  font-weight: 700;
  display: grid;
  place-items: center;
}
.tc-lixi-preview small { display: block; font-size: 0.75rem; color: #f3d285; }
.tc-lixi-preview strong { display: block; font-family: var(--font-display); font-size: 1.3rem; color: #ffffff; margin: 3px 0 6px; }
.tc-lixi-preview p { margin: 0 0 10px; font-size: 0.85rem; color: #f7ead5; line-height: 1.48; }
.tc-lixi-pkg { display: inline-block; padding: 3px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.3); color: #f3d285; font-size: 0.74rem; }

.tc-gift-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tc-gold-btn {
  flex: 1 1 200px;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 0;
  background: linear-gradient(135deg, #f3d285, #c8963e);
  color: #1c1205;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.tc-ghost-btn {
  flex: 1 1 180px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid rgba(243, 210, 133, 0.42);
  background: rgba(255, 255, 255, 0.04);
  color: #f3d285;
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.tc-copy-status { margin: 0; text-align: center; font-size: 0.84rem; color: #7be0b3; min-height: 1.2em; }

.tc-qr-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px;
  margin-bottom: 14px;
  border-radius: 14px;
  border: 1.5px solid #f3d285;
  background: linear-gradient(135deg, #241c14, #14100c);
}
.tc-qr-left small { display: block; font-size: 0.68rem; letter-spacing: 0.12em; color: #f3d285; }
.tc-qr-left strong { display: block; font-family: var(--font-display); font-size: 1.3rem; color: #ffffff; margin: 2px 0; }
.tc-qr-left span { display: block; font-size: 0.8rem; color: #cbbda4; margin-bottom: 6px; }
.tc-qr-left code { display: inline-block; padding: 3px 8px; border-radius: 6px; background: rgba(243, 210, 133, 0.16); color: #f5d88a; font-weight: 700; font-size: 0.82rem; }
.tc-qr-matrix { width: 84px; height: 84px; padding: 6px; background: #fffdf7; border-radius: 8px; flex-shrink: 0; }
.tc-restore-row { display: flex; gap: 8px; margin-top: 6px; }
.tc-restore-row input { margin-top: 0; flex: 1; }

/* --- 7. ĐÁP ỨNG DI ĐỘNG (MOBILE 390px / 360px — 0px OVERFLOW) --- */
@media (max-width: 760px) {
  .tc-standalone-bar-inner {
    padding: 8px 12px;
    gap: 6px;
    flex-wrap: wrap;
  }
  .tc-standalone-brand {
    gap: 7px;
  }
  .tc-standalone-seal {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
  .tc-standalone-brand-txt strong {
    font-size: 1.02rem;
  }
  .tc-standalone-brand-txt small {
    display: none;
  }
  .tc-standalone-nav {
    gap: 4px;
  }
  .tc-snav-btn,
  .tc-snav-home {
    min-height: 30px;
    padding: 4px 8px;
    font-size: 0.72rem;
    gap: 3px;
  }
  .tc-intake-wrap,
  .tc-res-container,
  .tc-card,
  .tc-subbox {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .tc-mode-cards-grid {
    grid-template-columns: 1fr;
  }
  .tc-qa-spotlight {
    padding: 15px 14px;
  }
  body.has-tc-dock .tc-standalone-foot {
    padding-bottom: calc(84px + env(safe-area-inset-bottom));
  }
  .tc-cosmos-stage {
    padding: 24px 0 124px;
  }
  .tc-dob-selects {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .tc-hour-edit select {
    width: 100%;
  }
  .tc-lixi-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
  }
  .tc-tabs-dock,
  .tc-standalone-body .tc-tabs-dock {
    position: fixed;
    top: auto !important;
    bottom: calc(8px + env(safe-area-inset-bottom));
    left: 8px;
    right: 8px;
    gap: 3px;
    padding: 5px;
    margin-bottom: 0;
    z-index: 95;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.82);
  }
  .tc-tab-btn {
    min-height: 44px;
    padding: 4px 2px;
    font-size: 0.72rem;
  }
  .tc-cosmos-stage > .container {
    padding-left: 14px;
    padding-right: 14px;
  }
  .tc-cosmos-stage.is-result ~ .pf-bar {
    display: none !important;
  }
  body:has(.tc-tabs-dock) .btn-top,
  body.has-tc-dock .btn-top {
    bottom: calc(96px + env(safe-area-inset-bottom)) !important;
  }
  .tc-card {
    padding: 20px 16px;
  }
  .tc-grid-2,
  .tc-grid-3,
  .tc-msg-grid,
  .tc-six-grid,
  .tc-seasons-grid {
    grid-template-columns: 1fr;
  }
  .tc-days-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tc-stage-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .tc-restore-row {
    flex-direction: column;
  }
  .tc-qr-card {
    flex-direction: column;
    text-align: center;
  }
}

/* --- 8. BANNER TÂM ĐIỂM TRANG CHỦ (.tc-home-spotlight) --- */
.tc-home-spotlight {
  padding: 28px 0 8px;
}
.tc-spot-box {
  position: relative;
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) 216px;
  align-items: center;
  gap: 24px;
  padding: 26px 30px;
  border-radius: 18px;
  border: 1px solid rgba(243, 210, 133, 0.36);
  background:
    radial-gradient(55% 90% at 12% 50%, rgba(161, 41, 29, 0.24), transparent 70%),
    radial-gradient(50% 90% at 88% 30%, rgba(74, 118, 190, 0.2), transparent 72%),
    linear-gradient(135deg, #15121a 0%, #110e15 55%, #1a1412 100%);
  color: #f6eedc;
  box-shadow: 0 22px 48px -22px rgba(10, 8, 14, 0.65);
  overflow: hidden;
}
.tc-spot-svg {
  width: 104px;
  height: 104px;
  display: block;
  margin: 0 auto;
}
.tc-spot-kicker span {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(243, 210, 133, 0.14);
  border: 1px solid rgba(243, 210, 133, 0.35);
  color: #f3d285;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.tc-spot-title {
  margin: 10px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  line-height: 1.22;
  color: #fff8ea !important;
}
.tc-spot-title em {
  color: #f3d285 !important;
  font-style: italic;
}
.tc-spot-desc {
  margin: 0 0 14px;
  font-size: 0.93rem;
  line-height: 1.62;
  color: #d8ccb5;
}
.tc-spot-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tc-spot-modes a {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(243, 210, 133, 0.28);
  background: rgba(255, 255, 255, 0.05);
  color: #f6eedc;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.tc-spot-modes a:hover {
  background: rgba(243, 210, 133, 0.18);
  border-color: #f3d285;
  color: #ffffff;
  transform: translateY(-1px);
}
.tc-spot-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tc-spot-cta-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 12px;
  background: linear-gradient(120deg, #dfbe78, #f5dca0 52%, #c99a4b);
  color: #1c1306 !important;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 12px 26px -10px rgba(223, 190, 120, 0.55);
}
.tc-spot-cta-sub {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 14px;
  border-radius: 12px;
  border: 1px solid rgba(243, 210, 133, 0.38);
  background: rgba(161, 41, 29, 0.28);
  color: #ffecd0 !important;
  font-weight: 600;
  font-size: 0.84rem;
  text-decoration: none;
  text-align: center;
}
@media (max-width: 960px) {
  .tc-spot-box {
    grid-template-columns: 1fr;
    padding: 22px 18px;
    gap: 16px;
    text-align: left;
  }
  .tc-spot-seal {
    display: none;
  }
  .tc-spot-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .tc-spot-cta-main,
  .tc-spot-cta-sub {
    flex: 1 1 200px;
  }
}
