/* Trang chủ công khai — dùng chung màu/chữ/nút/ô nhập với style.css của app (đồng bộ giao diện), chỉ thêm bố cục. */
.tc { background: var(--bg); }
.tc-wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.tc-skip { position: absolute; left: -999px; top: 8px; background: var(--card); color: var(--text); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.tc-skip:focus { left: 8px; }
.tc a:focus-visible, .tc button:focus-visible, .tc summary:focus-visible, .tc input:focus-visible { outline: 3px solid #fbbf24; outline-offset: 2px; }
.tc-hero a:focus-visible, .tc-hero button:focus-visible { outline-color: #fff; }

/* ---- Thanh trên ---- */
.tc-nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.tc-nav-in { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.tc-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--primary); text-decoration: none; }
.tc-brand:hover { text-decoration: none; }
.tc-brand img { border-radius: 9px; }
.tc-links { display: flex; gap: 4px; margin-left: 12px; flex: 1; }
.tc-links a { color: var(--text); font-weight: 500; padding: 10px 12px; border-radius: 8px; text-decoration: none; }
.tc-links a:hover { background: var(--primary-50); color: var(--primary-700); }
.tc-nav-act { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.tc-iconbtn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; }
.tc-iconbtn:hover { background: var(--primary-50); }
.tc-login-btn { min-height: 44px; display: inline-flex; align-items: center; }

/* ---- Hero ---- */
.tc-hero { position: relative; background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%); color: #fff; overflow: hidden; }
.tc-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.tc-hero-bg svg { width: 100%; height: 100%; }
.tc-hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, 420px); gap: 48px; align-items: center; padding: 64px 0 72px; }
.tc-eyebrow { margin: 0 0 14px; font-size: .95rem; font-weight: 600; letter-spacing: .02em; color: #bfdbfe; }
.tc-hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.15; font-weight: 800; margin: 0 0 18px; }
.tc-hero h1 span { color: #fbbf24; }
.tc-lead { font-size: 1.12rem; line-height: 1.65; color: #e0ecff; max-width: 58ch; margin: 0 0 20px; }
.tc-ticks { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 10px; }
.tc-ticks li { position: relative; padding-left: 30px; }
.tc-ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: #fbbf24 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e3a8a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat; }
.tc-ticks-dark li::before { background-color: var(--primary); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.tc-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.tc-cta .btn { min-height: 48px; display: inline-flex; align-items: center; text-decoration: none; }
.tc-btn-amber { background: #fbbf24; border-color: #fbbf24; color: #1e293b; font-weight: 700; }
.tc-btn-amber:hover { background: #f59e0b; border-color: #f59e0b; }
.tc-btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.tc-btn-ghost:hover { background: rgba(255, 255, 255, .12); }

/* ---- Thẻ đăng nhập ---- */
.tc-login { padding: 24px; box-shadow: 0 20px 50px rgba(15, 23, 42, .35); color: var(--text); border-radius: 16px; scroll-margin-top: 88px; }
.tc-login h2 { font-size: 1.3rem; margin: 0 0 14px; }
.tc-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: var(--bg); border-radius: 12px; margin-bottom: 18px; }
.tc-tabs button { min-height: 44px; border: 0; background: transparent; border-radius: 9px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }
.tc-tabs button:hover { color: var(--text); }
.tc-tabs button[aria-selected="true"] { background: var(--card); color: var(--primary-700); box-shadow: var(--shadow); }
.tc-panel[hidden], .tc-tabs [hidden] { display: none; }
.tc-login .field input { min-height: 46px; font-size: 1rem; }
.tc-login .btn-lg { min-height: 48px; }
.tc-err { margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--bad-50); color: var(--bad); font-size: .92rem; }
.tc-err[hidden] { display: none; }
.tc-note { display: flex; gap: 8px; margin: 0; padding: 12px; border-radius: 10px; background: var(--primary-50); color: var(--text); font-size: .92rem; }
.tc-note svg { flex: none; margin-top: 2px; color: var(--primary); }
.tc-login .btn[disabled], .tc-login input[disabled] { cursor: not-allowed; }

/* ---- Số liệu ---- */
.tc-proof { background: var(--card); border-bottom: 1px solid var(--line); }
.tc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; padding: 28px 0; }
.tc-stats > div { padding: 4px 20px; border-left: 1px solid var(--line); }
.tc-stats > div:first-child { border-left: 0; padding-left: 0; }
.tc-stats dt { font-size: 1.9rem; font-weight: 800; color: var(--primary-700); line-height: 1.2; }
.tc-stats dd { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }

/* ---- Mục chung ---- */
.tc-sec { padding: 72px 0; }
.tc-sec-alt { background: var(--card); border-block: 1px solid var(--line); }
.tc-sec[hidden] { display: none; }
.tc-kicker { margin: 0 0 8px; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--primary); }
.tc-sec h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; margin: 0 0 24px; }
.tc-sec h3 { font-size: 1.1rem; }

.tc-about { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: start; }
.tc-photo { margin: 0; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; background: linear-gradient(135deg, #1e3a8a, #2563eb); display: grid; place-items: center; }
.tc-photo img { width: 100%; height: 100%; object-fit: cover; }
.tc-photo-ph { font-size: 7rem; font-weight: 800; color: #fbbf24; }
.tc-bio { font-size: 1.08rem; line-height: 1.75; max-width: 66ch; margin: 0 0 20px; }
.tc-creds h3 { margin-bottom: 8px; }
.tc-creds ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.tc-sample { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; font-size: .7rem; font-weight: 700; background: #fef3c7; color: #b45309; vertical-align: middle; }

.tc-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tc-steps li { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.tc-steps h3 { margin: 14px 0 6px; }
.tc-steps p { margin: 0; color: var(--muted); }
.tc-ico { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--primary-100); color: var(--primary-700); }
.tc-ico svg { width: 24px; height: 24px; }

.tc-grades { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.tc-grades article { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.tc-grades h3 { margin: 0 0 12px; font-size: 1.25rem; }
.tc-grade-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.tc-grade-list b { padding: 6px 14px; border-radius: 999px; background: var(--primary-100); color: var(--primary-700); font-weight: 700; }

.tc-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.tc-results > div { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.tc-results b { display: block; font-size: 1.8rem; color: var(--primary-700); }
.tc-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.tc-quotes blockquote { margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.tc-quotes cite { display: block; margin-top: 10px; font-style: normal; font-weight: 600; color: var(--muted); }

.tc-parent { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.tc-parent p { line-height: 1.7; }
.tc-parent-card { padding: 22px; }
.tc-mini-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.tc-bar { display: grid; grid-template-columns: 110px 1fr 44px; gap: 10px; align-items: center; margin-bottom: 10px; font-size: .92rem; }
.tc-bar i { height: 10px; border-radius: 99px; background: var(--bg); position: relative; overflow: hidden; }
.tc-bar i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 99px; background: var(--primary); }
.tc-bar.warn i::after { background: var(--warn); }
.tc-bar em { font-style: normal; text-align: right; color: var(--muted); }

.tc-faq-wrap { max-width: 780px; }
.tc-faq-wrap details { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.tc-faq-wrap summary { cursor: pointer; padding: 16px 18px; font-weight: 600; min-height: 48px; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.tc-faq-wrap summary::-webkit-details-marker { display: none; }
.tc-faq-wrap summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--primary); }
.tc-faq-wrap details[open] summary::after { content: "–"; }
.tc-faq-wrap details p { margin: 0; padding: 0 18px 16px; color: var(--muted); line-height: 1.65; }

.tc-foot { background: var(--card); border-top: 1px solid var(--line); padding: 36px 0; }
.tc-foot-in { display: grid; grid-template-columns: 1fr auto; gap: 20px 40px; align-items: start; }
.tc-brand-foot { font-size: 1.05rem; margin-bottom: 4px; }
.tc-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tc-contact:empty { display: none; }
.tc-copy { grid-column: 1 / -1; margin: 0; }

/* ---- Mạng xã hội ---- */
.tc-sub { margin: -12px 0 24px; color: var(--muted); max-width: 62ch; }
.tc-social { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tc-soc { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center; padding: 20px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); color: var(--text); text-decoration: none; height: 100%; }
.tc-soc:hover { text-decoration: none; border-color: var(--primary); box-shadow: var(--shadow); }
.tc-soc-ico { grid-row: span 2; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: var(--primary); }
.tc-soc-ico svg { width: 28px; height: 28px; }
.tc-soc-facebook .tc-soc-ico { background: #1877f2; }
.tc-soc-youtube .tc-soc-ico { background: #d92d20; }
.tc-soc-tiktok .tc-soc-ico { background: #111827; }
.tc-soc-txt { display: grid; line-height: 1.3; }
.tc-soc-txt b { font-size: 1.1rem; }
.tc-soc-stat { grid-column: 1 / -1; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); }
.tc-soc-stat b { color: var(--primary-700); font-size: 1.25rem; }
.tc-soc-go { grid-column: 1 / -1; font-weight: 600; color: var(--primary-700); }
.tc-soc-go::after { content: " →"; }
.tc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tc-foot-social { list-style: none; margin: 12px 0 0; padding: 0; display: flex; gap: 8px; }
.tc-foot-social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); color: var(--text); }
.tc-foot-social a:hover { background: var(--primary-50); color: var(--primary-700); }
.tc-foot-social svg { width: 22px; height: 22px; }
.tc-links a[hidden] { display: none; }
@media (max-width: 960px) { .tc-social { grid-template-columns: 1fr; } }

/* ---- Màn hình nhỏ ---- */
@media (max-width: 960px) {
  .tc-links { display: none; }
  .tc-hero-in { grid-template-columns: 1fr; gap: 32px; padding: 40px 0 48px; }
  .tc-steps { grid-template-columns: repeat(2, 1fr); }
  .tc-about, .tc-parent { grid-template-columns: 1fr; gap: 28px; }
  .tc-photo { max-width: 220px; }
}
@media (max-width: 640px) {
  .tc-sec { padding: 48px 0; }
  .tc-stats { grid-template-columns: repeat(2, 1fr); gap: 16px 0; }
  .tc-stats > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .tc-steps, .tc-grades { grid-template-columns: 1fr; }
  .tc-foot-in { grid-template-columns: 1fr; }
  .tc-login { padding: 18px; }
  .tc-login-btn { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .tc-steps li, .tc-grades article { transition: transform .18s ease, box-shadow .18s ease; }
  .tc-steps li:hover, .tc-grades article:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
}
