.home-page {
  padding-bottom: 56px;
}

.home-intro {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.home-intro-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 48px;
  align-items: center;
  padding-top: 54px;
  padding-bottom: 54px;
}

.home-kicker,
.home-section-label {
  margin: 0 0 6px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.home-intro h1 {
  margin: 0;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.12;
  letter-spacing: -.04em;
}

.home-lead {
  max-width: 650px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.home-search-form {
  position: relative;
  display: flex;
  max-width: 760px;
  margin-top: 26px;
}

.home-search-form svg {
  position: absolute;
  top: 50%;
  left: 17px;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.home-search-form input {
  width: 100%;
  height: 52px;
  padding: 0 128px 0 48px;
  border: 1px solid #cfdadd;
  border-radius: 8px;
  outline: 0;
  background: #fff;
}

.home-search-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 118, 110, .09);
}

.home-search-form button {
  position: absolute;
  top: 5px;
  right: 5px;
  height: 42px;
  padding: 0 22px;
  border: 0;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

.home-search-form button:hover {
  background: var(--primary-dark);
}

.home-search-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.home-search-note a {
  color: var(--primary);
}

.home-search-note a:hover {
  text-decoration: underline;
}

.home-stats {
  margin: 0;
  border: 1px solid var(--line);
 
  background: var(--surface-soft);
}

.home-stats div {
  padding: 17px 20px;
}

.home-stats div + div {
  border-top: 1px solid var(--line);
}

.home-stats dt {
  color: var(--muted);
  font-size: 12px;
}

.home-stats dd {
  margin: 2px 0 0;
  color: var(--text);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -.03em;
}

.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
  padding-top: 30px;
}

.home-main-column {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.home-section,
.home-side-box {
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
}

.home-section {
  padding: 24px;
}

.home-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 19px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.home-section-header h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -.02em;
}

.home-section-header > a {
  flex: 0 0 auto;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}

.home-section-header > a:hover {
  text-decoration: underline;
}

.home-result-list {
  display: grid;
}

.home-result-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 155px;
  gap: 24px;
  padding: 20px 0;
}

.home-result-card:first-child {
  padding-top: 2px;
}

.home-result-card + .home-result-card {
  border-top: 1px solid var(--line);
}

.home-result-main {
  min-width: 0;
}

.home-result-title-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.home-result-title-row h3 {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
}

.home-result-title-row h3 a:hover {
  color: var(--primary);
}

.home-result-status {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.home-result-status.status-active {
  background: var(--success-soft);
  color: var(--success);
}

.home-result-status.status-inactive,
.home-result-status.status-closed {
  background: #fcecec;
  color: #a33b3b;
}

.home-result-status.status-suspended {
  background: var(--warning-soft);
  color: var(--warning);
}

.home-result-status.status-unknown {
  background: #eef2f4;
  color: #63717b;
}

.home-result-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.home-result-meta strong {
  color: var(--primary-dark);
  font-size: 13px;
}

.home-result-meta i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #aab6bc;
}

.home-result-details {
  display: grid;
  gap: 5px;
  margin: 12px 0 0;
  font-size: 13px;
}

.home-result-details div {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 10px;
}

.home-result-details dt {
  color: var(--muted);
}

.home-result-details dd {
  min-width: 0;
  margin: 0;
  color: #3f4d56;
}

.home-result-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 9px;
  text-align: right;
}

.home-view-count {
  color: var(--muted);
  font-size: 11px;
}

.home-province {
  padding: 4px 8px;
  border-radius: 5px;
  background: var(--surface-soft);
  color: #4f5e67;
  font-size: 11px;
}

.home-result-side a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.home-result-side a:hover {
  text-decoration: underline;
}

.home-result-side svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.home-empty {
  padding: 30px;
  background: var(--surface-soft);
  color: var(--muted);
  text-align: center;
}

.home-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  counter-reset: home-step;
  list-style: none;
}

.home-steps li {
  position: relative;
  padding: 4px 22px 4px 48px;
  counter-increment: home-step;
}

.home-steps li + li {
  border-left: 1px solid var(--line);
}

.home-steps li::before {
  position: absolute;
  top: 2px;
  left: 8px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #a9d2ce;
  border-radius: 50%;
  color: var(--primary);
  content: counter(home-step);
  font-size: 12px;
  font-weight: 800;
}

.home-steps strong {
  font-size: 14px;
}

.home-steps p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.home-copy {
  color: #3f4d56;
}

.home-copy > p {
  margin: 0 0 14px;
}

.home-copy h3 {
  margin: 22px 0 8px;
  color: var(--text);
  font-size: 16px;
}

.home-copy ul {
  margin: 0;
  padding-left: 20px;
}

.home-copy li + li {
  margin-top: 5px;
}

.home-notice {
  margin-top: 22px;
  padding: 15px 17px;
  border-left: 3px solid var(--primary);
  background: var(--primary-soft);
}

.home-notice strong {
  display: block;
  color: var(--primary-dark);
  font-size: 13px;
}

.home-notice p {
  margin: 4px 0 0;
  font-size: 13px;
}

.home-faq-list details + details {
  border-top: 1px solid var(--line);
}

.home-faq-list summary {
  position: relative;
  padding: 15px 34px 15px 0;
  cursor: pointer;
  color: var(--text);
  font-weight: 650;
  list-style: none;
}

.home-faq-list summary::-webkit-details-marker {
  display: none;
}

.home-faq-list summary::after {
  position: absolute;
  top: 14px;
  right: 4px;
  color: var(--muted);
  content: "+";
  font-size: 20px;
  font-weight: 400;
}

.home-faq-list details[open] summary::after {
  content: "−";
}

.home-faq-list details p {
  margin: -3px 0 16px;
  padding-right: 36px;
  color: var(--muted);
  font-size: 13px;
}

.home-sidebar {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 16px;
}

.home-side-box {
  padding: 18px;
}

.home-side-box h2 {
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.home-side-box ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-side-box li + li {
  border-top: 1px solid #edf1f2;
}

.home-side-box li a,
.home-side-plain li {
  display: block;
  padding: 9px 0;
  color: #45545d;
  font-size: 13px;
}

.home-side-box li a:hover {
  color: var(--primary);
}

.home-side-plain li {
  position: relative;
  padding-left: 14px;
}

.home-side-plain li::before {
  position: absolute;
  top: 17px;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
  content: "";
}

.home-side-note p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.home-side-note strong {
  color: var(--text);
}

@media (max-width: 920px) {
  .home-intro-inner,
  .home-layout {
    grid-template-columns: 1fr;
  }

  .home-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-stats div + div {
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .home-sidebar {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .home-intro-inner {
    gap: 28px;
    padding-top: 38px;
    padding-bottom: 38px;
  }

  .home-intro h1 {
    font-size: 37px;
  }

  .home-stats {
    grid-template-columns: 1fr;
  }

  .home-stats div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .home-layout {
    padding-top: 20px;
  }

  .home-section {
    padding: 18px;
  }

  .home-result-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .home-result-title-row {
    display: block;
  }

  .home-result-status {
    display: inline-block;
    margin-top: 8px;
  }

  .home-result-details div {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .home-result-side {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
  }

  .home-result-side a {
    margin: 0 0 0 auto;
  }

  .home-steps {
    grid-template-columns: 1fr;
  }

  .home-steps li {
    padding: 8px 0 18px 44px;
  }

  .home-steps li + li {
    border-top: 1px solid var(--line);
    border-left: 0;
    padding-top: 18px;
  }

  .home-steps li::before {
    top: 6px;
    left: 0;
  }

  .home-steps li + li::before {
    top: 16px;
  }

  .home-sidebar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px) {
  .home-search-form {
    display: block;
  }

  .home-search-form input {
    padding-right: 15px;
  }

  .home-search-form button {
    position: static;
    width: 100%;
    margin-top: 8px;
    border-radius: 7px;
  }

  .home-section-header {
    display: block;
  }

  .home-section-header > a {
    display: inline-block;
    margin-top: 8px;
  }
}

.tax-code-list {
    display: grid;
    gap: 28px;
    margin: 24px 0;
}

.tax-code-card {
    padding: 24px;
    border: 1px solid #dce6ea;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(31, 49, 57, .05);
}

.tax-code-card-dependent {
    border-color: #ddd2ff;
    background:
        linear-gradient(
            135deg,
            rgba(111, 66, 193, .035),
            transparent 45%
        ),
        #fff;
}

.tax-code-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.tax-code-card-header h4 {
    margin: 0;
    color: var(--text);
    font-size: 17px;
    font-weight: 750;
    line-height: 1.4;
}

.tax-code-badge {
    flex: 0 0 auto;
    padding: 5px 10px;
    border-radius: 999px;
    background: #e8f7f5;
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.tax-code-badge-purple {
    background: #f1ebff;
    color: #6f42c1;
}

.tax-code-pattern {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.tax-code-pattern span {
display: inline-flex;
    width: 35px;
    height: 35px;
    align-items: center;
    justify-content: center;
    border: 1px solid;
    border-radius: 12px;
    font-family: Consolas, Monaco, "Courier New", monospace;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    transition: transform .18s ease, box-shadow .18s ease;
}

.tax-code-pattern span:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(31, 49, 57, .09);
}

.tax-code-pattern-dependent {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 16px;
}

.tax-code-main-group,
.tax-code-dependent-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.tax-code-main-group {
    min-width: 0;
}

.tax-code-dependent-group {
    flex: 0 0 auto;
}

.tax-code-separator {
    flex: 0 0 auto;
    width: 20px;
    color: #8b9298;
    font-size: 28px;
    font-weight: 800;
    text-align: center;
}

/* Nhóm màu */

.part-1 {
    border-color: #7bc4ff !important;
    background: #e8f7ff !important;
    color: #005fa3 !important;
}

.part-2 {
    border-color: #82d39d !important;
    background: #eefaf0 !important;
    color: #0b7a39 !important;
}

.part-3 {
    border-color: #f3c55c !important;
    background: #fff6df !important;
    color: #a85f00 !important;
}

.part-4 {
    border-color: #b89cff !important;
    background: #f3ecff !important;
    color: #6f42c1 !important;
}

/* Chú thích */

.tax-code-note {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed #dbe3e7;
}

.note-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
}

.note-item i {
    display: block;
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: currentColor;
}

.note-part-1 {
    color: #005fa3;
}

.note-part-2 {
    color: #0b7a39;
}

.note-part-3 {
    color: #a85f00;
}

.note-part-4 {
    color: #6f42c1;
}

@media (max-width: 1100px) {
    .tax-code-pattern-dependent {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .tax-code-separator {
        width: auto;
        height: 20px;
        margin-left: 4px;
        line-height: 14px;
    }
}

@media (max-width: 768px) {
    .tax-code-list {
        gap: 20px;
    }

    .tax-code-card {
        padding: 18px;
        border-radius: 15px;
    }

    .tax-code-card-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 16px;
    }

    .tax-code-card-header h4 {
        font-size: 16px;
    }

    .tax-code-pattern,
    .tax-code-main-group,
    .tax-code-dependent-group {
        gap: 6px;
    }

    .tax-code-pattern span {
        width: 46px;
        height: 42px;
        border-radius: 10px;
        font-size: 14px;
    }

    .tax-code-note {
        gap: 9px 14px;
        margin-top: 16px;
        padding-top: 14px;
    }

    .note-item {
        font-size: 12px;
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .tax-code-pattern span {
        width: 43px;
        height: 40px;
        font-size: 13px;
    }

    .tax-code-dependent-group {
        padding: 10px;
        border: 1px solid #dfd2ff;
        border-radius: 12px;
        background: #faf7ff;
    }

    .tax-code-separator {
        margin: 0;
        padding-left: 3px;
    }
}
.home-stats dt{
    display:flex;
    align-items:center;
    gap:8px;
    color:var(--muted);
    font-size:12px;
}

.home-stats dt svg{
    width:16px;
    height:16px;
    flex:0 0 16px;
    fill:none;
    stroke:var(--primary);
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
}
.home-intro{
    position:relative;
    overflow:hidden;
    border-bottom:1px solid var(--line);
    background:
        radial-gradient(circle at 20% 20%, rgba(13,118,110,.06), transparent 28%),
        radial-gradient(circle at 85% 15%, rgba(13,118,110,.05), transparent 25%),
        linear-gradient(#fff,#fbfdfd);
}

.home-intro::before{
    content:"";
    position:absolute;
    inset:0;
    opacity:.35;
    background-image:
        linear-gradient(rgba(13,118,110,.06) 1px,transparent 1px),
        linear-gradient(90deg,rgba(13,118,110,.06) 1px,transparent 1px);
    background-size:42px 42px;
    pointer-events:none;
}