/* ===== Convert-EDU — Quy đổi điểm xét tuyển ĐH 2026 ===== */
:root {
  /* Palette — education blue brand, sky accent */
  --brand:        #2563eb;
  --brand-deep:   #1e40af;
  --brand-soft:   #eff6ff;
  --brand-50:     #f5f9ff;
  --accent:       #0ea5e9;
  --accent-deep:  #0284c7;
  --success:      #10b981;
  --rose:         #f43f5e;

  --ink:          #0f172a;
  --ink-soft:     #1e293b;
  --muted:        #64748b;
  --muted-2:      #94a3b8;
  --line:         #e2e8f0;
  --line-soft:    #f1f5f9;

  --bg:           #f7f8fc;
  --card:         #ffffff;
  --card-soft:    #fafbff;

  --radius-sm:    10px;
  --radius:       14px;
  --radius-lg:    20px;
  --radius-xl:    24px;

  --shadow-xs:    0 1px 2px rgba(15, 23, 42, .04);
  --shadow-sm:    0 1px 3px rgba(15, 23, 42, .05), 0 1px 2px rgba(15, 23, 42, .03);
  --shadow:       0 4px 14px rgba(15, 23, 42, .05), 0 1px 3px rgba(15, 23, 42, .04);
  --shadow-md:    0 10px 30px rgba(37, 99, 235, .08), 0 4px 12px rgba(15, 23, 42, .05);
  --shadow-lg:    0 24px 60px rgba(37, 99, 235, .14), 0 8px 24px rgba(15, 23, 42, .06);

  --t-fast:       150ms cubic-bezier(.4, 0, .2, 1);
  --t:            220ms cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  background:
    radial-gradient(1200px 600px at 50% -200px, rgba(37, 99, 235, .12), transparent 70%),
    radial-gradient(900px 460px at 100% 180px, rgba(14, 165, 233, .07), transparent 62%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ---- Top bar (header banner màu chính) ---- */
.topbar {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff; position: relative; overflow: hidden;
}
.topbar::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(900px 320px at 50% -130px, rgba(255, 255, 255, .18), transparent 70%);
}
.topbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 18px 22px 34px;
  position: relative; z-index: 1;
}
.brand {
  font-weight: 800; font-size: 17px; color: #fff;
  display: inline-flex; align-items: center; gap: 10px;
  letter-spacing: -0.01em;
}
.brand .dot {
  width: 24px; height: 24px;
  background: rgba(255, 255, 255, .95);
  border-radius: 7px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
  position: relative;
}
.brand .dot::after {
  content: ""; position: absolute; inset: 4px;
  background: var(--brand); border-radius: 4px;
}
.topbar-hero { text-align: center; margin-top: 24px; }
.topbar-hero .badge-year {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, .16); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, .28);
}
.topbar-hero h1 {
  font-size: 30px; font-weight: 800; letter-spacing: -.025em;
  line-height: 1.18; color: #fff; max-width: 780px; margin: 0 auto;
}
.topbar-hero p {
  color: rgba(255, 255, 255, .88); font-size: 15px; margin-top: 10px;
  max-width: 600px; margin-left: auto; margin-right: auto;
}
@media (max-width: 760px) {
  .topbar-hero h1 { font-size: 22px; }
  .topbar-inner { padding: 16px 16px 28px; }
}

/* ---- Layout ---- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 32px 22px 80px; }
.page-head { text-align: center; margin-bottom: 32px; padding-top: 8px; }
.page-head h1 {
  font-size: 36px; font-weight: 800; letter-spacing: -0.025em;
  line-height: 1.15;
}
.page-head h1 .gradient {
  background: linear-gradient(135deg, var(--brand) 0%, #1e40af 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-head p {
  color: var(--muted); font-size: 15px; margin-top: 10px;
  max-width: 540px; margin-left: auto; margin-right: auto;
}
.page-head .badge-year {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--brand-soft); color: var(--brand-deep);
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
  padding: 5px 12px; border-radius: 999px;
  margin-bottom: 14px;
  border: 1px solid rgba(37, 99, 235, .12);
}
@media (max-width: 760px) {
  .page-head h1 { font-size: 28px; }
  .wrap { padding: 22px 16px 60px; }
}

/* ---- Card ---- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px 24px 22px;
  margin-bottom: 18px;
  transition: box-shadow var(--t), transform var(--t);
}
@media (max-width: 760px) {
  .card { padding: 18px 16px; border-radius: 16px; }
}
.card-title {
  font-weight: 800; font-size: 17px; letter-spacing: -.01em;
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 6px; color: var(--ink);
}
.card-title .ic {
  width: 36px; height: 36px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand-soft) 0%, var(--brand-50) 100%);
  border-radius: 10px;
  font-size: 18px;
  border: 1px solid rgba(37, 99, 235, .1);
}
.card-sub { color: var(--muted); font-size: 13.5px; margin-bottom: 18px; line-height: 1.55; }
.card-sub strong { color: var(--ink-soft); }
.sub-label {
  font-size: 11.5px; font-weight: 800; color: var(--brand-deep);
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.sub-label::before {
  content: ""; width: 3px; height: 13px; border-radius: 2px;
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-deep) 100%);
}

/* ---- Card thu gọn / mở rộng (click vào tiêu đề) ---- */
.card-title { cursor: pointer; user-select: none; }
.card-title:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.card-chevron {
  margin-left: auto; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--brand-soft); color: var(--brand-deep);
  font-size: 13px; border: 1px solid rgba(37, 99, 235, .12);
  transition: transform var(--t), background var(--t-fast);
}
.card-title:hover .card-chevron { background: var(--brand-50); }
.card.collapsed .card-chevron { transform: rotate(-90deg); }
.card.collapsed .card-title { margin-bottom: 0; }
.card.collapsed > :not(.card-title) { display: none; }

/* ---- Grid ---- */
.grid { display: grid; gap: 14px 16px; }
.grid.c5 { grid-template-columns: repeat(5, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .grid.c5 { grid-template-columns: repeat(3, 1fr); }
  .grid.c4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .grid.c5, .grid.c4, .grid.c3, .grid.c2 { grid-template-columns: repeat(2, 1fr); }
  .nav-inner { gap: 14px; flex-wrap: wrap; padding: 12px 16px; }
}

/* ---- Field (input + select) ---- */
.field label {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .01em;
  color: var(--ink-soft); margin-bottom: 6px;
}
.field label .tag {
  color: var(--muted-2); font-weight: 500; font-size: 11px;
  background: var(--line-soft);
  padding: 2px 7px; border-radius: 999px;
}
.field input, .field select {
  width: 100%; padding: 10px 12px; font-size: 14px; font-weight: 500;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.field input::placeholder { color: var(--muted-2); font-weight: 400; }
.field input:hover, .field select:hover { border-color: #bfdbfe; }
.field input:focus, .field select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
  background: #fff;
}
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

/* ---- Chọn trường: tabs + dropdown ---- */
.mien-tabs {
  display: flex; gap: 4px; padding: 5px;
  background: var(--line-soft);
  border-radius: 14px;
  position: relative;
}
.mien-tab {
  flex: 1; min-width: 0;
  padding: 10px 12px; font-size: 14px; font-weight: 600;
  background: transparent; border: none; border-radius: 10px;
  color: var(--muted); cursor: pointer; transition: all var(--t);
  display: flex; align-items: center; justify-content: center; gap: 6px;
  letter-spacing: -.005em;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .mien-tab { font-size: 13px; padding: 9px 6px; gap: 4px; }
}
.mien-tab:hover { color: var(--brand); }
.mien-tab.active {
  background: #fff; color: var(--brand-deep);
  box-shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
  font-weight: 700;
}
.truong-pick { margin-top: 16px; }
.truong-pick label {
  display: block; font-size: 12.5px; font-weight: 700;
  color: var(--ink-soft); margin-bottom: 7px; letter-spacing: .01em;
}
.truong-pick select {
  width: 100%; padding: 13px 14px; font-size: 15px; font-weight: 600;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); outline: none;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer; transition: all var(--t-fast);
}
.truong-pick select:hover { border-color: #bfdbfe; }
.truong-pick select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(37, 99, 235, .12); }
.truong-pick .empty-mien {
  padding: 14px; font-size: 13px; color: var(--muted);
  background: var(--line-soft); border: 1px dashed var(--line);
  border-radius: var(--radius-sm); text-align: center;
}

/* ---- Tìm kiếm trường (theo tên/mã, mọi khu vực) ---- */
.truong-search { position: relative; margin-bottom: 14px; }
.truong-search .ts-ic {
  position: absolute; left: 14px; top: 14px;
  font-size: 15px; pointer-events: none; opacity: .55;
}
.truong-search input {
  width: 100%; padding: 13px 14px 13px 40px;
  font-size: 14.5px; font-weight: 600;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); outline: none;
  transition: all var(--t-fast);
}
.truong-search input::placeholder { color: var(--muted); font-weight: 500; }
.truong-search input:hover { border-color: #bfdbfe; }
.truong-search input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(37, 99, 235, .12); }

.truong-ketqua {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px);
  max-height: 340px; overflow-y: auto;
  background: #fff; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .14), 0 2px 6px rgba(15, 23, 42, .06);
  padding: 6px;
}
.tk-item {
  display: flex; flex-direction: column; gap: 2px; width: 100%;
  text-align: left; padding: 9px 11px; border: none; border-radius: 9px;
  background: transparent; cursor: pointer; transition: background var(--t-fast);
}
.tk-item:hover, .tk-item.active { background: var(--brand-soft); }
.tk-item.current { background: #e0ecff; }
.tk-ten { font-size: 14px; font-weight: 600; color: var(--ink); }
.tk-ten mark { background: #fde68a; color: inherit; padding: 0 1px; border-radius: 3px; }
.tk-meta { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); }
.tk-code {
  font-weight: 700; color: var(--brand-deep);
  background: var(--brand-soft); padding: 1px 6px; border-radius: 5px;
  letter-spacing: .02em;
}
.tk-empty { padding: 14px; text-align: center; font-size: 13px; color: var(--muted); }

/* ---- Toggle phương thức: Điểm thi THPT ↔ Học bạ ---- */
.pt-toggle {
  display: inline-flex; gap: 4px; padding: 4px;
  background: var(--line-soft); border-radius: 12px;
  margin: 2px 0 14px;
}
.pt-toggle[hidden] { display: none; }
.pt-opt {
  padding: 8px 16px; font-size: 13.5px; font-weight: 600;
  background: transparent; border: none; border-radius: 9px;
  color: var(--muted); cursor: pointer; transition: all var(--t-fast);
  white-space: nowrap;
}
.pt-opt:hover { color: var(--brand); }
.pt-opt.active {
  background: #fff; color: var(--brand-deep); font-weight: 700;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .08), 0 1px 2px rgba(15, 23, 42, .04);
}

/* ---- Section chi tiết — gộp trong card chọn trường, có thu gọn/mở rộng ---- */
.ct-section {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.ct-section-header {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
}
.ct-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; border: none; cursor: pointer;
  padding: 6px 4px; font-family: inherit;
  color: var(--ink); font-size: 15px; font-weight: 700;
  letter-spacing: -.005em;
  transition: color var(--t-fast);
  flex: 1; min-width: 0; text-align: left;
}
.ct-toggle:hover { color: var(--brand); }
.ct-chevron {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  background: var(--brand-soft);
  border-radius: 7px;
  color: var(--brand-deep); font-size: 13px;
  transition: transform var(--t);
  border: 1px solid rgba(37, 99, 235, .12);
}
.ct-toggle[aria-expanded="false"] .ct-chevron { transform: rotate(-90deg); }
.ct-toggle-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ct-source-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, var(--brand) 0%, #1e40af 100%);
  color: #fff; font-weight: 600; font-size: 13px;
  padding: 8px 14px; border-radius: 9px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(37, 99, 235, .25);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
  white-space: nowrap;
}
.ct-source-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, .35);
}
.ct-source-arrow { font-size: 14px; line-height: 1; }

.ct-section-body {
  margin-top: 14px;
  overflow: hidden;
  max-height: 9999px;
  opacity: 1;
  transition: max-height .4s cubic-bezier(.4, 0, .2, 1), opacity .25s ease, margin-top .3s ease;
}
.ct-section-body.collapsed {
  max-height: 0; opacity: 0; margin-top: 0;
}

@media (max-width: 600px) {
  .ct-source-btn { width: 100%; justify-content: center; }
}

/* ---- Chi tiết đề án tuyển sinh ---- */
.ct-block {
  border-top: 1px dashed var(--line);
  padding: 16px 0 6px;
}
.ct-block:first-child { border-top: none; padding-top: 0; }
.ct-label {
  font-size: 13px; font-weight: 800; color: var(--brand-deep);
  margin-bottom: 10px; letter-spacing: -.005em;
}
.ct-formula {
  background: linear-gradient(135deg, var(--brand-soft) 0%, var(--brand-50) 100%);
  border-left: 3px solid var(--brand);
  padding: 10px 14px; border-radius: 8px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px; color: var(--ink-soft); margin: 6px 0;
}
.ct-list { list-style: none; padding-left: 0; }
.ct-list li {
  padding: 10px 12px; border-radius: 10px;
  background: var(--card-soft); margin-bottom: 8px;
  font-size: 13px; line-height: 1.55;
  border: 1px solid var(--line);
  transition: all var(--t-fast);
}
.ct-list li:hover { border-color: #bfdbfe; background: var(--brand-50); }
.ct-list li strong { color: var(--ink); font-size: 13.5px; }
.ct-row { margin: 6px 0; font-size: 13px; line-height: 2; }
.ct-mini-label {
  font-weight: 700; color: var(--muted); font-size: 11px;
  text-transform: uppercase; letter-spacing: .04em;
  margin-right: 4px;
}
.ct-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
  margin-top: 6px;
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
}
.ct-table th, .ct-table td {
  padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line);
}
.ct-table tr:last-child td { border-bottom: none; }
.ct-table th {
  background: var(--line-soft); color: var(--muted); font-size: 11px;
  text-transform: uppercase; font-weight: 700; letter-spacing: .04em;
}
.ct-table tbody tr:hover td { background: var(--brand-50); }
.muted-small { color: var(--muted); font-size: 12px; line-height: 1.55; }

/* ---- Combination tiles ---- */
.combo-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
@media (max-width: 760px) { .combo-row { grid-template-columns: repeat(2, 1fr); } }
.combo {
  border: 1.5px solid var(--line); border-radius: 12px;
  padding: 14px 16px;
  background: var(--card-soft);
  transition: all var(--t);
  position: relative; overflow: hidden;
}
.combo:hover {
  border-color: #bfdbfe; transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.combo .name {
  font-size: 11.5px; color: var(--muted); font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
}
.combo .val {
  font-size: 26px; font-weight: 800; color: var(--ink); margin-top: 2px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}

/* ---- Button ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--brand) 0%, #1e40af 100%);
  color: #fff; font-weight: 700; font-size: 16px;
  border: none; border-radius: 14px;
  padding: 14px 32px; cursor: pointer;
  box-shadow: 0 8px 20px rgba(37, 99, 235, .32), 0 2px 6px rgba(37, 99, 235, .2);
  transition: transform var(--t), box-shadow var(--t);
  letter-spacing: -.005em;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(37, 99, 235, .4), 0 4px 10px rgba(37, 99, 235, .25);
}
.btn:active { transform: translateY(0); }
.btn.ghost {
  background: #fff; color: var(--brand-deep);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-xs);
}
.center { text-align: center; margin: 28px 0 14px; }

/* ---- Result ---- */
.result-box {
  border: 1px solid rgba(37, 99, 235, .15);
  background:
    radial-gradient(600px 200px at 50% 0%, rgba(37, 99, 235, .12), transparent 70%),
    linear-gradient(135deg, var(--brand-soft) 0%, var(--brand-50) 100%);
  border-radius: 16px; padding: 28px 22px; text-align: center;
}
.result-box .lbl { color: var(--muted); font-size: 13px; font-weight: 600; }
.result-box .big {
  font-size: 56px; font-weight: 800; line-height: 1.1;
  background: linear-gradient(135deg, var(--brand) 0%, #1e40af 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin: 6px 0 4px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.03em;
}
.result-list { margin-top: 18px; }
.result-list table {
  width: 100%; border-collapse: collapse; font-size: 14px;
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
}
.result-list th, .result-list td {
  padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line);
}
.result-list tr:last-child td { border-bottom: none; }
.result-list th {
  color: var(--muted); font-weight: 700; font-size: 11px;
  text-transform: uppercase; letter-spacing: .05em;
  background: var(--line-soft);
}
.result-list tr.top td {
  background: linear-gradient(90deg, var(--brand-soft) 0%, var(--brand-50) 100%);
  font-weight: 700;
}
.result-list tbody tr:hover td { background: var(--brand-50); }
.badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
  color: #fff; font-size: 10.5px; font-weight: 700;
  padding: 3px 9px; border-radius: 999px; letter-spacing: .02em;
  margin-left: 6px; box-shadow: 0 2px 6px rgba(16, 185, 129, .3);
}

/* ---- Gợi ý ngành phù hợp ---- */
.goiy-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.goiy-table {
  width: 100%; border-collapse: collapse; font-size: 13.5px;
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  min-width: 720px;
}
.goiy-table th, .goiy-table td {
  padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.goiy-table tr:last-child td { border-bottom: none; }
.goiy-table th {
  background: var(--line-soft); color: var(--muted); font-size: 11px;
  text-transform: uppercase; font-weight: 700; letter-spacing: .04em;
}
.goiy-table tbody tr:hover td { background: var(--brand-50); }
.gy-nganh { font-weight: 700; color: var(--ink); line-height: 1.35; }
.gy-ma { font-size: 11px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.gy-ts { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--brand-deep); }

/* Điểm chuẩn — mỗi năm 1 cột */
.gy-yr-h { text-align: right; white-space: nowrap; }
.gy-yr {
  text-align: right; white-space: nowrap;
  font-variant-numeric: tabular-nums; color: var(--muted);
}
.gy-yr.moi { color: var(--ink); font-weight: 700; }
.th-sub {
  display: block; font-size: 9.5px; font-weight: 600; color: var(--muted-2);
  text-transform: none; letter-spacing: 0; margin-top: 1px;
}

/* Điểm chuẩn các năm (kiểu cũ — giữ cho tương thích) */
.gy-dc { white-space: nowrap; }
.dc-year {
  display: inline-flex; align-items: baseline; gap: 2px;
  font-variant-numeric: tabular-nums; color: var(--muted);
  margin-right: 8px; font-size: 12.5px;
}
.dc-year i { font-style: normal; font-size: 10px; color: var(--muted-2); }
.dc-year.moi { color: var(--ink); font-weight: 700; }
.trend { font-size: 11px; }
.trend.up { color: var(--rose); }
.trend.down { color: var(--success); }

/* Chênh lệch Δ */
.gy-delta { font-weight: 800; font-variant-numeric: tabular-nums; }
.gy-delta.pos { color: var(--success); }
.gy-delta.neg { color: var(--rose); }

/* Thanh % khả năng đỗ */
.prob-row { display: flex; align-items: center; gap: 8px; }
.prob-bar {
  flex: 1; min-width: 54px; height: 7px; border-radius: 999px;
  background: var(--line); overflow: hidden; display: inline-block;
}
.prob-fill { display: block; height: 100%; border-radius: 999px; transition: width var(--t); }
.prob-pct { font-weight: 800; font-size: 12.5px; font-variant-numeric: tabular-nums; min-width: 34px; }
.prob-tag {
  display: inline-block; margin-top: 5px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .01em;
  padding: 2px 8px; border-radius: 999px;
}
/* Bảng màu theo mức độ an toàn */
.rat-an-toan { --c: #059669; }
.an-toan     { --c: #10b981; }
.kha-quan    { --c: #0ea5e9; }
.ngang       { --c: #f59e0b; }
.rui-ro      { --c: #f97316; }
.kho         { --c: #f43f5e; }
.rat-kho     { --c: #be123c; }
.prob-fill.rat-an-toan, .prob-fill.an-toan, .prob-fill.kha-quan,
.prob-fill.ngang, .prob-fill.rui-ro, .prob-fill.kho, .prob-fill.rat-kho { background: var(--c); }
.prob-tag.rat-an-toan, .prob-tag.an-toan, .prob-tag.kha-quan,
.prob-tag.ngang, .prob-tag.rui-ro, .prob-tag.kho, .prob-tag.rat-kho {
  color: var(--c); background: color-mix(in srgb, var(--c) 13%, #fff);
  border: 1px solid color-mix(in srgb, var(--c) 28%, #fff);
}

/* ---- Pills ---- */
.pill {
  display: inline-block; background: var(--brand-soft); color: var(--brand-deep);
  border: 1px solid rgba(37, 99, 235, .15); border-radius: 8px;
  padding: 3px 9px; font-size: 11.5px; font-weight: 600;
  margin: 1px; letter-spacing: .01em;
}

/* ---- Misc ---- */
.empty {
  text-align: center; color: var(--muted); padding: 32px 20px;
  font-size: 14px;
}
.note {
  font-size: 12.5px; color: var(--muted); margin-top: 16px;
  line-height: 1.65;
  padding: 12px 14px; background: var(--line-soft);
  border-radius: 10px; border: 1px solid var(--line);
}
footer {
  text-align: center; color: var(--muted); font-size: 13px;
  padding: 36px 20px; max-width: 1200px; margin: 0 auto;
}
footer .heart { color: var(--rose); }

/* ---- Subtle entrance animation ---- */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.card { animation: slideUp .35s cubic-bezier(.4, 0, .2, 1) both; }
.card:nth-child(1) { animation-delay: .02s; }
.card:nth-child(2) { animation-delay: .06s; }
.card:nth-child(3) { animation-delay: .1s; }
.card:nth-child(4) { animation-delay: .14s; }
.card:nth-child(5) { animation-delay: .18s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
