.ground-break-page {
  --gb-primary: #003c47;
  --gb-primary-dark: #00272e;
  --gb-primary-soft: #eaf4f6;
  --gb-accent: #ff9900;
  --gb-accent-hover: #e68a00;
  --gb-accent-soft: #fff7eb;
  --gb-good: #15803d;
  --gb-good-soft: #f0fdf4;
  --gb-warning: #b45309;
  --gb-warning-soft: #fffbeb;
  --gb-bad: #b91c1c;
  --gb-bad-soft: #fef2f2;
  --gb-ink: #0f172a;
  --gb-muted: #52606d;
  --gb-border: rgba(0, 60, 71, 0.12);
  --gb-surface: #ffffff;
  --gb-soft: #f8fafc;
  --gb-radius-xl: 24px;
  --gb-radius-lg: 16px;
  --gb-radius-md: 12px;
  --gb-shadow: 0 16px 40px rgba(0, 60, 71, 0.08);

  max-width: 1320px;
  margin: 10rem auto 4rem;
  padding: 0 16px;
  color: var(--gb-ink);
  font-family: 'Roboto', sans-serif;

  * {
    box-sizing: border-box;
  }

  .ground-break-eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid rgba(0, 60, 71, 0.15);
    border-radius: 999px;
    background: var(--gb-primary-soft);
    color: var(--gb-primary);
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;

    svg {
      color: var(--gb-accent);
      flex-shrink: 0;
    }
  }

  /* ========================================================
     HERO SECTION
     ======================================================== */
  .ground-break-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(28px, 4vw, 48px);
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: clamp(32px, 4vw, 48px) clamp(24px, 4vw, 50px);
    border-radius: var(--gb-radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.16);
    background:
      linear-gradient(135deg, rgba(0, 45, 54, 0.96) 0%, rgba(0, 60, 71, 0.92) 58%, rgba(180, 83, 9, 0.88) 100%),
      url(../../../docs/images/common/project/caurongdanang.jpg) center / cover no-repeat;
    box-shadow: 0 20px 48px rgba(0, 35, 43, 0.22);

    .ground-break-hero__content {
      display: flex;
      flex-direction: column;
      justify-content: center;

      .ground-break-eyebrow {
        border-color: rgba(255, 153, 0, 0.4);
        background: rgba(255, 153, 0, 0.16);
        color: #ffc278;
        backdrop-filter: blur(4px);
      }

      .ground-break-hero__title {
        max-width: 820px;
        margin: 14px 0 10px;
        color: #ffffff;
        font-size: clamp(2.4rem, 3.2vw, 3.6rem);
        font-weight: 800;
        line-height: 1.22;
        letter-spacing: -0.015em;
      }

      p {
        max-width: 700px;
        margin: 0 0 20px;
        color: rgba(255, 255, 255, 0.88);
        font-size: 1.48rem;
        line-height: 1.65;
      }

      .ground-break-hero__features {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;

        .ground-break-hero-chip {
          display: inline-flex;
          align-items: center;
          gap: 6px;
          padding: 6px 12px;
          border-radius: 12px;
          background: rgba(255, 255, 255, 0.12);
          border: 1px solid rgba(255, 255, 255, 0.18);
          color: #ffffff;
          font-size: 1.25rem;
          font-weight: 600;
          backdrop-filter: blur(6px);
          transition: all 0.25s ease;

          svg {
            color: var(--gb-accent);
            flex-shrink: 0;
          }

          &:hover {
            background: rgba(255, 255, 255, 0.2);
            border-color: var(--gb-accent);
          }
        }
      }
    }

    .ground-break-hero__visual {
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      user-select: none;
      pointer-events: none;
      width: clamp(170px, 18vw, 225px);
      height: clamp(170px, 18vw, 225px);
      flex-shrink: 0;

      &::before {
        content: "";
        position: absolute;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(255, 153, 0, 0.22) 0%, rgba(0, 60, 71, 0.12) 55%, transparent 72%);
        filter: blur(20px);
      }

      &::after {
        content: "";
        position: absolute;
        inset: 4px;
        border-radius: 50%;
        border: 2.5px dashed #ff9900;
        border-top-color: #fff3bf;
        border-bottom-color: #ff9900;
        box-shadow: 0 0 22px rgba(255, 153, 0, 0.28), inset 0 0 18px rgba(255, 153, 0, 0.15);
        animation: heroDashedRingSpin 10s linear infinite;
        transform-origin: center center;
      }

      .ground-break-hero-art {
        position: relative;
        z-index: 1;
        width: clamp(120px, 14vw, 160px);
        height: auto;
        filter: drop-shadow(0 18px 36px rgba(0, 24, 30, 0.6));
      }
    }
  }

  /* ========================================================
     TOOL / FORM SECTION
     ======================================================== */
  .ground-break-tool {
    margin-top: 26px;
    padding: clamp(24px, 3.2vw, 36px);
    border: 1px solid var(--gb-border);
    border-radius: var(--gb-radius-xl);
    background: var(--gb-surface);
    box-shadow: var(--gb-shadow);
  }

  .ground-break-tool__intro {
    max-width: 880px;
    margin-bottom: 24px;

    h2 {
      margin: 12px 0 10px;
      color: var(--gb-primary);
      font-size: clamp(2.4rem, 3vw, 3.4rem);
      font-weight: 850;
      line-height: 1.18;
    }

    p {
      margin: 0;
      color: var(--gb-muted);
      font-size: 1.48rem;
      line-height: 1.65;
    }
  }

  .ground-break-form {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;

    .ground-break-group {
      padding: 18px 20px 22px;
      border: 1px solid var(--gb-border);
      border-radius: var(--gb-radius-lg);
      background: #fafcfd;

      .ground-break-group__title {
        display: block;
        margin-bottom: 14px;
        color: var(--gb-primary);
        font-size: 1.35rem;
        font-weight: 850;
        letter-spacing: 0.02em;
        text-transform: uppercase;
      }

      &.ground-break-group--date {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;

        .ground-break-group__title {
          grid-column: 1 / -1;
        }

        @media (max-width: 768px) {
          grid-template-columns: 1fr;
        }
      }
    }
  }

  .ground-break-field {
    position: relative;
    min-width: 0;
  }

  .ground-break-label {
    display: block;
    margin-bottom: 8px;
    color: var(--gb-primary);
    font-size: 1.34rem;
    font-weight: 800;
  }

  .ground-break-select {
    position: relative;
  }

  .ground-break-input {
    width: 100%;
    height: 52px;
    padding: 0 44px 0 15px;
    border: 1px solid var(--gb-border);
    border-radius: 14px;
    background: #ffffff;
    color: var(--gb-ink);
    cursor: pointer;
    font-size: 1.4rem;
    font-weight: 700;
    outline: 0;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;

    &:focus {
      border-color: var(--gb-accent);
      background: #ffffff;
      box-shadow: 0 0 0 4px rgba(255, 153, 0, 0.15);
    }

    &::placeholder {
      color: #94a3b8;
      font-weight: 600;
    }

    &.shake {
      border-color: #ef4444;
      animation: gbShake 0.36s ease;
    }
  }

  .ground-break-select__icon {
    position: absolute;
    top: 17px;
    right: 15px;
    color: var(--gb-muted);
    pointer-events: none;
    transition: transform 0.2s ease;

    &.active {
      transform: rotate(180deg);
    }
  }

  .ground-break-error {
    display: none;
    margin-top: 6px;
    color: #dc2626;
    font-size: 1.18rem;
    font-weight: 750;
    line-height: 1.35;
  }

  .ground-break-suggestions {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 30;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--gb-border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(0, 60, 71, 0.14);
  }

  .ground-break-search {
    position: relative;
    padding: 12px;
    border-bottom: 1px solid var(--gb-border);

    .ground-break-search__input {
      display: block;
      width: 100%;
      height: 40px;
      margin: 0;
      padding: 0 42px 0 14px;
      border: 1px solid var(--gb-border);
      border-radius: 12px;
      color: var(--gb-primary);
      font-size: 1.32rem;
      outline: 0;
      background: #ffffff;

      &:focus {
        border-color: var(--gb-accent);
      }
    }

    .icon-tabler-search,
    svg {
      position: absolute;
      top: 50%;
      right: 24px;
      transform: translateY(-50%);
      width: 18px !important;
      height: 18px !important;
      color: var(--gb-muted);
      pointer-events: none;
    }
  }

  .ground-break-suggestions__list {
    max-height: 250px;
    overflow-y: auto;
    padding: 8px;
  }

  .ground-break-option,
  .suggestion-item {
    display: flex;
    min-height: 42px;
    align-items: center;
    padding: 9px 12px;
    border-radius: 11px;
    color: var(--gb-ink);
    cursor: pointer;
    font-size: 1.32rem;
    font-weight: 700;
    transition: background 0.18s ease, color 0.18s ease;

    &:hover,
    &.active {
      background: var(--gb-primary-soft);
      color: var(--gb-primary);
    }
  }

  .ground-break-clear {
    display: none;
    padding: 10px 12px 12px;
    border-top: 1px solid var(--gb-border);

    &.active {
      display: block;
    }
  }

  .ground-break-clear__button {
    width: 100%;
    min-height: 40px;
    border: 0;
    border-radius: 11px;
    background: var(--gb-accent-soft);
    color: #9a5a00;
    cursor: pointer;
    font-size: 1.28rem;
    font-weight: 850;
  }

  /* NÚT XEM KẾT QUẢ: RỚT XUỐNG DƯỚI CĂN GIỮA */
  .ground-break-submit {
    display: inline-flex;
    justify-self: center;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 220px;
    height: 52px;
    margin-top: 16px;
    padding: 0 24px;
    border: 0;
    border-radius: 14px;
    background: var(--gb-primary);
    color: #ffffff;
    cursor: pointer;
    font-size: 1.4rem;
    font-weight: 850;
    white-space: nowrap;
    box-shadow: 0 12px 26px rgba(0, 60, 71, 0.2);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;

    svg {
      width: 18px;
      height: 18px;
    }

    &:hover {
      background: #005666;
      transform: translateY(-2px);
      box-shadow: 0 16px 32px rgba(0, 60, 71, 0.26);
    }
  }

  /* ========================================================
     RESULT BLOCK: SÂN KHẤU BÀN QUAY LA BÀN ĐỘC LẬP
     ======================================================== */
  .ground-break-result {
    display: none;
    margin-top: 36px;
    width: 100%;
    border: none;
    background: transparent;
    box-shadow: none;

    &.active {
      display: block;
      animation: resultFadeIn 0.45s ease;
    }
  }

  .ground-break-report {
    width: 100%;
    position: relative;
    padding: 0;
  }

  /* SÂN KHẤU BÀN QUAY BÁT QUÁI - ĐỘNG THỔ TRUNG TÂM (CENTER STAGE NHƯ XEM HƯỚNG NHÀ) */
  .canchi-instrument-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 32px;
    position: relative;
    overflow: visible;
  }

  .canchi-instrument-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
    gap: 16px;
    padding: 6px 0 14px;

    @media (min-width: 992px) {
      gap: clamp(18px, 2.5vh, 26px);
      padding: 6px 0 18px;
    }

    .canchi-instrument-svg-box {
      position: relative;
      overflow: visible;
      border: none;
      background: transparent;
      padding: 0;
      box-shadow: none;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;

      .canchi-svg-instrument {
        width: min(calc(100vh - 210px), 640px, 92vw);
        min-width: 280px;
        height: auto;
        aspect-ratio: 1 / 1;
        display: block;
        filter: drop-shadow(0 12px 32px rgba(0, 36, 44, 0.16));
      }

      .canchi-ring {
        will-change: transform;
        transform-origin: 320px 320px;
      }

      .canchi-compass-needle {
        pointer-events: none;
        transform-origin: 320px 320px;
        will-change: transform;
      }

      .canchi-north-pointer {
        pointer-events: none;
        transform-origin: 320px 320px;
      }

      .canchi-active-target-overlay {
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.5s ease;

        &.is-revealed {
          opacity: 1;
        }

        .canchi-target-frame {
          stroke: #ff9900;
          stroke-width: 2px;
          stroke-linejoin: round;
          stroke-linecap: round;
          fill: none !important;
          filter: drop-shadow(0 0 5px rgba(255, 153, 0, 0.45));
        }
      }

      .canchi-sector-item {
        .canchi-sector-bg {
          transition: fill 0.3s ease;
        }

        text {
          transition: font-weight 0.3s ease;
        }

        &.is-target-active {
          .canchi-sector-bg {
            fill: #ffffff !important;
          }

          text {
            font-weight: 950 !important;
          }
        }
      }
    }

    /* BOX THÔNG TIN NGẮN NGAY DƯỚI LA BÀN (NHƯ XEM HƯỚNG NHÀ & XEM HƯỚNG BẾP) */
    .canchi-instrument-caption {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 8px;
      width: 100%;
      max-width: min(calc(100vh - 210px), 640px, 92vw);
      padding: 14px 24px;
      border: 1.5px solid rgba(0, 60, 71, 0.14);
      border-radius: 18px;
      background: #ffffff;
      box-shadow: 0 10px 28px rgba(0, 40, 48, 0.08);
      transition: border-color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;

      .caption-tag {
        color: var(--gb-muted, #64748b);
        font-size: 1.15rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-weight: 750;
        display: inline-flex;
        align-items: center;
        gap: 6px;

        svg {
          width: 16px;
          height: 16px;
          color: #ff9900;
        }
      }

      .caption-title {
        color: #003c47;
        font-size: clamp(1.4rem, 1.8vw, 1.65rem);
        font-weight: 900;
        line-height: 1.35;
        transition: color 0.4s ease;
      }

      .caption-status-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 5px 16px;
        border-radius: 999px;
        font-size: 1.2rem;
        font-weight: 850;
        width: fit-content;
        transition: all 0.4s ease;

        &.is-neutral {
          background: #f1f5f9;
          color: #475569;
          border: 1px solid #cbd5e1;
        }

        &.is-good {
          background: #dcfce7;
          color: #15803d;
          border: 1px solid #bbf7d0;
        }

        &.is-medium {
          background: #fef3c7;
          color: #b45309;
          border: 1px solid #fde68a;
        }

        &.is-bad {
          background: #fee2e2;
          color: #b91c1c;
          border: 1px solid #fecaca;
        }

        .spin {
          animation: spin 1s linear infinite;
        }
      }

      .caption-desc {
        font-size: 1.28rem;
        color: #475569;
        line-height: 1.55;

        strong {
          color: #003c47;
          font-weight: 800;
        }
      }

      &.is-waiting {
        border-top: 4px solid #94a3b8;
      }

      &.is-good {
        border-top: 4px solid #16a34a;
      }

      &.is-medium {
        border-top: 4px solid #f59e0b;
      }

      &.is-bad {
        border-top: 4px solid #dc2626;
      }
    }
  }

  /* KHỐI TIÊU ĐỀ LUẬN GIẢI CHI TIẾT */
  .age-building-heading-group {
    margin-bottom: 24px;

    .age-building-eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 1.25rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      color: #ff9900;
      margin-bottom: 6px;

      svg {
        width: 16px;
        height: 16px;
      }
    }

    .age-building-main-title {
      font-size: clamp(2rem, 2.5vw, 2.8rem);
      font-weight: 900;
      color: #003c47;
      line-height: 1.25;
    }
  }

  /* CARD ĐÁNH GIÁ TỔNG QUAN: TỨ TRỤ CAN CHI + GAUGE ĐIỂM SỐ */
  .age-building-verdict-card {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
    gap: 24px;
    align-items: center;
    padding: clamp(20px, 3vw, 28px);
    background: #ffffff;
    border: 1px solid rgba(0, 60, 71, 0.12);
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0, 36, 44, 0.05);
    margin-bottom: 28px;

    @media (max-width: 900px) {
      grid-template-columns: 1fr;
      gap: 20px;
    }

    .verdict-card-left {
      display: flex;
      flex-direction: column;
      gap: 12px;

      .verdict-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 5px 14px;
        border-radius: 999px;
        font-size: 1.2rem;
        font-weight: 800;
        width: fit-content;
        text-transform: uppercase;
        letter-spacing: 0.03em;

        &.is-good {
          background: #dcfce7;
          color: #15803d;
          border: 1px solid #bbf7d0;
        }

        &.is-medium {
          background: #fef3c7;
          color: #b45309;
          border: 1px solid #fde68a;
        }

        &.is-bad {
          background: #fee2e2;
          color: #b91c1c;
          border: 1px solid #fecaca;
        }
      }

      .verdict-summary {
        font-size: 1.45rem;
        line-height: 1.65;
        color: #334155;
        margin: 0;
      }
    }

    .verdict-card-right {
      display: flex;
      justify-content: center;
    }
  }

  /* BỘ TỨ TRỤ CAN - CHI - MỆNH - TRỰC */
  .canchi-axis-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 4px;

    @media (max-width: 580px) {
      grid-template-columns: repeat(2, 1fr);
    }

    .axis-cell {
      padding: 12px 8px;
      border-radius: 12px;
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 4px;
      transition: all 0.25s ease;

      &:hover {
        background: #ffffff;
        border-color: #ff9900;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 36, 44, 0.06);
      }

      .axis-cell-label {
        font-size: 1.12rem;
        font-weight: 750;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: #64748b;
      }

      .axis-cell-val {
        font-size: 1.6rem;
        font-weight: 900;
        color: #003c47;
        line-height: 1.2;
      }

      &.val-hanh--kim .axis-cell-val,
      .axis-cell-val.val-hanh--kim {
        color: #475569 !important;
      }

      &.val-hanh--thuy .axis-cell-val,
      .axis-cell-val.val-hanh--thuy {
        color: #0284c7 !important;
      }

      &.val-hanh--moc .axis-cell-val,
      .axis-cell-val.val-hanh--moc {
        color: #16a34a !important;
      }

      &.val-hanh--hoa .axis-cell-val,
      .axis-cell-val.val-hanh--hoa {
        color: #dc2626 !important;
      }

      &.val-hanh--tho .axis-cell-val,
      .axis-cell-val.val-hanh--tho {
        color: #b45309 !important;
      }

      &.is-good .axis-cell-val,
      .axis-cell-val.is-good {
        color: #16a34a !important;
      }

      &.is-bad .axis-cell-val,
      .axis-cell-val.is-bad {
        color: #dc2626 !important;
      }
    }
  }

  /* THƯỚC ĐO ĐIỂM SỐ PHONG THỦY GAUGE */
  .canchi-meter-box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    width: 100%;

    .canchi-meter-dial {
      position: relative;
      width: 96px;
      height: 96px;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;

      .age-gauge-svg {
        transform: rotate(-90deg);
        width: 96px;
        height: 96px;
      }

      .age-gauge-bg {
        stroke: #e2e8f0;
        stroke-width: 8.5;
        fill: none;
      }

      .age-gauge-progress {
        stroke-width: 8.5;
        stroke-linecap: round;
        fill: none;
        transition: stroke-dashoffset 1.4s cubic-bezier(0.16, 1, 0.3, 1);
      }

      .age-gauge-center {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: baseline;
        justify-content: center;
        margin-top: 32px;

        .age-gauge-score {
          font-size: 3rem;
          font-weight: 900;
          line-height: 1;
          color: #003c47;
          font-variant-numeric: tabular-nums;
        }

        .age-gauge-max {
          font-size: 1.4rem;
          font-weight: 700;
          color: #64748b;
          margin-left: 2px;
        }
      }
    }

    &.is-good .age-gauge-progress {
      stroke: #16a34a;
    }

    &.is-medium .age-gauge-progress {
      stroke: #f59e0b;
    }

    &.is-bad .age-gauge-progress {
      stroke: #dc2626;
    }

    .canchi-meter-text {
      min-width: 0;

      .canchi-meter-score-text {
        font-size: 1.55rem;
        color: #003c47;
        margin-bottom: 4px;

        strong {
          color: #ff9900;
          font-weight: 900;
        }
      }

      .canchi-meter-guide-text {
        font-size: 1.25rem;
        line-height: 1.5;
        color: #64748b;
        margin: 0;
      }
    }
  }

  /* KHỐI BÁO CÁO PHÂN TÍCH CHI TIẾT (ẨN HOÀN TOÀN TRONG KHI XOAY LA BÀN, CHỈ XUẤT HIỆN SAU KHI DỪNG QUAY) */
  .ground-break-report-details {
    display: none !important;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);

    &.is-revealed {
      display: block !important;
      opacity: 1;
      transform: translateY(0);
    }
  }

  .age-building-report__body {
    padding: clamp(20px, 3.5vw, 34px);
  }

  /* BẢNG ĐỊNH DANH GIA CHỦ CÂN ĐỐI 3 CỘT (LUXURY PROFILE CARDS) */
  .age-building-profile-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
    margin-bottom: 28px;
    padding: 0;
    background: transparent;
    border: none;

    @media (max-width: 900px) {
      grid-template-columns: 1fr;
      gap: 14px;
    }

    .profile-strip-card {
      display: flex;
      align-items: center;
      gap: 16px;
      padding: 20px 22px;
      border-radius: 18px;
      background: #ffffff;
      border: 1px solid rgba(0, 60, 71, 0.12);
      box-shadow: 0 4px 18px rgba(0, 36, 44, 0.04);
      position: relative;
      overflow: hidden;
      transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;

      &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 100%;
        border-radius: 4px 0 0 4px;
      }

      &:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 24px rgba(0, 36, 44, 0.08);
      }

      /* Card 1: Gia chủ */
      &--owner {
        &::before {
          background: #003c47;
        }

        .profile-strip-icon {
          background: rgba(0, 60, 71, 0.08);
          color: #003c47;
        }

        &:hover {
          border-color: rgba(0, 60, 71, 0.25);
        }
      }

      /* Card 2: Tuổi mụ / Can Chi ngày âm lịch */
      &--age {
        border-color: rgba(255, 153, 0, 0.32);
        background: linear-gradient(145deg, #ffffff 0%, #fffcf7 100%);
        box-shadow: 0 6px 20px rgba(255, 153, 0, 0.08);

        &::before {
          background: #ff9900;
        }

        .profile-strip-icon--age {
          background: rgba(255, 153, 0, 0.12);
          color: #d97706;
        }

        &:hover {
          border-color: rgba(255, 153, 0, 0.5);
          box-shadow: 0 12px 28px rgba(255, 153, 0, 0.14);
        }
      }

      /* Card 3: Năm / Ngày khởi công */
      &--year {
        &::before {
          background: #006b74;
        }

        .profile-strip-icon {
          background: rgba(0, 107, 116, 0.09);
          color: #006b74;
        }

        &:hover {
          border-color: rgba(0, 107, 116, 0.25);
        }
      }

      .profile-strip-icon {
        flex-shrink: 0;
        width: 50px;
        height: 50px;
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;

        svg {
          width: 25px;
          height: 25px;
          flex-shrink: 0;
        }
      }

      .profile-strip-content {
        min-width: 0;
        flex: 1;
      }
    }

    .profile-strip-label {
      display: block;
      font-size: 1.15rem;
      font-weight: 750;
      text-transform: uppercase;
      color: #64748b;
      margin-bottom: 4px;
      letter-spacing: 0.03em;
    }

    .profile-strip-value,
    .profile-strip-title {
      font-size: 1.7rem;
      font-weight: 850;
      color: #003c47;
      line-height: 1.3;
    }

    .profile-strip-desc {
      font-size: 1.25rem;
      color: #64748b;
      margin-top: 3px;
      line-height: 1.4;
    }
  }

  /* LƯỚI 4 CUNG HẠN CÂN XỨNG 2x2 */
  .age-building-section-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;

    @media (max-width: 768px) {
      grid-template-columns: 1fr;
    }
  }

  .age-building-section-card {
    padding: 22px;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 45, 54, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;

    &:hover {
      transform: translateY(-3px);
      box-shadow: 0 12px 28px rgba(0, 60, 71, 0.09);
    }

    &.is-good {
      border-left: 5px solid #16a34a;
      background: linear-gradient(135deg, rgba(220, 38, 38, 0) 0%, rgba(22, 163, 74, 0.03) 0%, #ffffff 50%);
    }

    &.is-bad {
      border-left: 5px solid #dc2626;
      background: linear-gradient(135deg, rgba(220, 38, 38, 0.03) 0%, #ffffff 50%);
    }

    .age-building-section-card__header {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: center;
      gap: 10px;
      margin-bottom: 14px;
      padding-bottom: 12px;
      border-bottom: 1px solid #f1f5f9;

      @media (max-width: 520px) {
        gap: 8px;
      }

      .card-identity {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
        flex: 1 1 auto;

        .card-icon-bubble {
          flex-shrink: 0;
          width: 36px;
          height: 36px;
          border-radius: 10px;
          display: flex;
          align-items: center;
          justify-content: center;
          font-size: 1.6rem;

          svg {
            width: 20px;
            height: 20px;
            flex-shrink: 0;
          }

          &.is-good {
            background: rgba(22, 163, 74, 0.1);
            color: #16a34a;
          }

          &.is-bad {
            background: rgba(220, 38, 38, 0.1);
            color: #dc2626;
          }
        }

        .card-title-text {
          font-size: 1.65rem;
          font-weight: 850;
          color: #003c47;
          white-space: normal;
          word-break: break-word;
          line-height: 1.35;
        }
      }

      .age-building-status {
        flex-shrink: 0;
      }
    }

    .age-building-section-card__body p {
      margin: 0;
      color: #334155;
      font-size: 1.42rem;
      line-height: 1.68;
    }
  }

  .age-building-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 1.22rem;
    font-weight: 800;
    flex-shrink: 0;
    white-space: nowrap;

    svg {
      width: 16px;
      height: 16px;
      flex-shrink: 0;
    }

    &.is-good {
      background: #dcfce7;
      color: #15803d;
      border: 1px solid rgba(22, 163, 74, 0.25);
    }

    &.is-bad {
      background: #fee2e2;
      color: #b91c1c;
      border: 1px solid rgba(220, 38, 38, 0.25);
    }
  }

  /* KHỐI ĐÁNH GIÁ, MƯỢN TUỔI & NGHI LỄ */
  .age-building-block-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;

    .block-header-title {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 1.7rem;
      font-weight: 850;
      color: #003c47;

      svg {
        color: #ff9900;
        width: 22px;
        height: 22px;
      }
    }
  }

  .age-building-evaluation {
    border: 1px solid rgba(0, 60, 71, 0.18);
    border-radius: 18px;
    background: #f1fbfb;
    box-shadow: 0 4px 16px rgba(0, 60, 71, 0.05);
    padding: 22px;
    margin-bottom: 22px;

    .age-building-evaluation__content p {
      margin: 0;
      color: #1e293b;
      font-size: 1.44rem;
      line-height: 1.7;
    }

    .ground-break-hours-strip {
      margin-top: 16px;
      padding-top: 16px;
      border-top: 1px dashed rgba(0, 60, 71, 0.15);

      .hours-strip-title {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 1.42rem;
        font-weight: 850;
        color: #003c47;
        margin-bottom: 12px;

        svg {
          color: #ff9900;
          width: 18px;
          height: 18px;
          flex-shrink: 0;
        }
      }

      .hours-strip-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
      }

      .hour-tag {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 14px;
        border-radius: 999px;
        font-size: 1.28rem;
        font-weight: 800;
        border: 1px solid rgba(0, 60, 71, 0.14);
        background: #ffffff;
        color: #003c47;
        box-shadow: 0 2px 6px rgba(0, 60, 71, 0.04);
        transition: transform 0.2s ease, border-color 0.2s ease;

        &:hover {
          transform: translateY(-2px);
          border-color: #ff9900;
        }

        &.is-good {
          background: #f0fdf4;
          border-color: rgba(34, 197, 94, 0.35);
          color: #15803d;
        }

        &.is-medium {
          background: #fffbeb;
          border-color: rgba(245, 158, 11, 0.35);
          color: #b45309;
        }
      }
    }
  }

  .age-building-borrow {
    border: 1px solid rgba(217, 154, 36, 0.3);
    border-radius: 18px;
    background: linear-gradient(180deg, #fffdf8 0%, #fff8ea 100%);
    box-shadow: 0 4px 16px rgba(217, 154, 36, 0.08);
    padding: 22px;
    margin-bottom: 22px;

    &.is-perfect {
      border-color: rgba(22, 163, 74, 0.35);
      background: linear-gradient(180deg, #f7fdf9 0%, #f1fbf5 100%);
    }

    .borrow-desc {
      margin: 0;
      color: #1e293b;
      font-size: 1.42rem;
      line-height: 1.65;
    }

    .age-building-age-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 14px;
    }

    .age-building-age-tag {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      min-height: 36px;
      padding: 8px 16px;
      border-radius: 999px;
      background: #ffffff;
      border: 1px solid rgba(0, 60, 71, 0.16);
      color: #003c47;
      font-size: 1.34rem;
      font-weight: 800;
      box-shadow: 0 2px 8px rgba(0, 60, 71, 0.05);
      transition: transform 0.2s ease, border-color 0.2s ease;

      svg {
        color: #ff9900;
        width: 16px;
        height: 16px;
      }

      &:hover {
        transform: translateY(-2px);
        border-color: #ff9900;
      }
    }

    .age-building-borrow__note {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      margin-top: 16px;
      padding: 12px 16px;
      border-radius: 12px;
      background: rgba(217, 154, 36, 0.12);
      color: #8a5708;
      font-size: 1.34rem;
      line-height: 1.6;

      svg {
        color: #ff9900;
        width: 20px;
        height: 20px;
        margin-top: 3px;
        flex-shrink: 0;
      }

      .borrow-note-text strong {
        color: #724706;
      }
    }
  }

  .age-building-rituals {
    border: 1px solid rgba(0, 60, 71, 0.14);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 45, 54, 0.05);
    padding: clamp(20px, 3vw, 28px);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;

    .rituals-header {
      display: flex;
      align-items: flex-start;
      gap: 14px;
      margin-bottom: 20px;
      padding-bottom: 16px;
      border-bottom: 1px solid #f1f5f9;

      .rituals-header__icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        background: rgba(0, 60, 71, 0.08);
        color: #003c47;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;

        svg {
          width: 24px;
          height: 24px;
        }
      }

      .rituals-header__text {
        min-width: 0;
        flex: 1;

        .rituals-header__title {
          font-size: 1.75rem;
          font-weight: 850;
          color: #003c47;
          line-height: 1.3;
          margin-bottom: 4px;
        }

        .rituals-header__desc {
          margin: 0;
          font-size: 1.3rem;
          color: #64748b;
          line-height: 1.5;
        }
      }
    }

    .age-building-ritual-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 16px;

      @media (max-width: 992px) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      @media (max-width: 600px) {
        grid-template-columns: 1fr;
      }

      .age-ritual-step {
        padding: 20px 18px;
        border-radius: 16px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        display: flex;
        flex-direction: column;
        gap: 10px;
        position: relative;
        transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;

        &:hover {
          transform: translateY(-4px);
          box-shadow: 0 10px 24px rgba(0, 60, 71, 0.08);
        }

        .ritual-step-top {
          display: flex;
          align-items: center;
          justify-content: space-between;
          gap: 8px;
          margin-bottom: 2px;
        }

        .ritual-step-badge {
          display: inline-flex;
          align-items: center;
          padding: 4px 10px;
          border-radius: 999px;
          font-size: 1.12rem;
          font-weight: 850;
          letter-spacing: 0.04em;
          text-transform: uppercase;
        }

        .ritual-step-icon {
          width: 32px;
          height: 32px;
          border-radius: 8px;
          display: flex;
          align-items: center;
          justify-content: center;
          flex-shrink: 0;

          svg {
            width: 18px;
            height: 18px;
          }
        }

        .ritual-step-title {
          font-size: 1.52rem;
          font-weight: 850;
          color: #003c47;
          line-height: 1.35;
        }

        .ritual-step-desc {
          margin: 0;
          font-size: 1.32rem;
          line-height: 1.62;
          color: #475569;
          flex: 1;
        }

        /* Bước 1: Giai đoạn chuẩn bị */
        &.step-1 {
          border-top: 3px solid #003c47;
          background: linear-gradient(180deg, rgba(0, 60, 71, 0.03) 0%, #ffffff 100%);

          .ritual-step-badge {
            background: rgba(0, 60, 71, 0.1);
            color: #003c47;
          }

          .ritual-step-icon {
            background: rgba(0, 60, 71, 0.08);
            color: #003c47;
          }

          &:hover {
            border-color: #003c47;
          }
        }

        /* Bước 2: Lễ Động thổ */
        &.step-2 {
          border-top: 3px solid #d97706;
          background: linear-gradient(180deg, rgba(217, 119, 6, 0.03) 0%, #ffffff 100%);

          .ritual-step-badge {
            background: rgba(217, 119, 6, 0.12);
            color: #b45309;
          }

          .ritual-step-icon {
            background: rgba(217, 119, 6, 0.1);
            color: #d97706;
          }

          &:hover {
            border-color: #d97706;
          }
        }

        /* Bước 3: Lễ Cất nóc */
        &.step-3 {
          border-top: 3px solid #0284c7;
          background: linear-gradient(180deg, rgba(2, 132, 199, 0.03) 0%, #ffffff 100%);

          .ritual-step-badge {
            background: rgba(2, 132, 199, 0.12);
            color: #0369a1;
          }

          .ritual-step-icon {
            background: rgba(2, 132, 199, 0.1);
            color: #0284c7;
          }

          &:hover {
            border-color: #0284c7;
          }
        }

        /* Bước 4: Lễ Nhập trạch */
        &.step-4 {
          border-top: 3px solid #16a34a;
          background: linear-gradient(180deg, rgba(22, 163, 74, 0.03) 0%, #ffffff 100%);

          .ritual-step-badge {
            background: rgba(22, 163, 74, 0.12);
            color: #15803d;
          }

          .ritual-step-icon {
            background: rgba(22, 163, 74, 0.1);
            color: #16a34a;
          }

          &:hover {
            border-color: #16a34a;
          }
        }
      }
    }
  }

  .age-building-disclaimer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid rgba(0, 60, 71, 0.1);
    color: #64748b;
    font-size: 1.28rem;
    line-height: 1.5;

    svg {
      width: 20px;
      height: 20px;
      color: #ff9900;
      flex-shrink: 0;
    }
  }

  /* ========================================================
     GUIDE SECTION
     ======================================================== */
  .ground-break-guide {
    margin-top: 32px;
    padding: clamp(24px, 3.5vw, 38px);
    border: 1px solid var(--gb-border);
    border-radius: var(--gb-radius-xl);
    background: linear-gradient(180deg, #ffffff 0%, #fffdfa 100%);
    box-shadow: 0 16px 40px rgba(0, 45, 54, 0.06);

    .ground-break-guide__heading {
      text-align: left;
      max-width: 820px;
      margin-bottom: 26px;

      h2 {
        color: var(--gb-primary);
        font-size: clamp(2.2rem, 2.6vw, 3rem);
        font-weight: 850;
        margin: 12px 0 8px;
        line-height: 1.25;
      }

      p {
        color: var(--gb-muted);
        font-size: 1.45rem;
        margin: 0;
      }
    }

    .ground-break-guide__grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 20px;

      @media (max-width: 900px) {
        grid-template-columns: 1fr;
      }
    }

    .ground-break-guide-card {
      position: relative;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      border: 1px solid var(--gb-border);
      border-radius: 18px;
      padding: 22px;
      background: #ffffff;
      box-shadow: 0 4px 18px rgba(0, 60, 71, 0.05);
      transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;

      &:hover {
        transform: translateY(-4px);
        box-shadow: 0 14px 32px rgba(0, 60, 71, 0.12);
        border-color: rgba(255, 153, 0, 0.4);

        .ground-break-guide-card__icon {
          background: linear-gradient(135deg, #003c47 0%, #005666 100%);
          color: #ffffff;
          transform: scale(1.06);
        }

        .ground-break-guide-title {
          color: var(--gb-accent);
        }
      }

      .ground-break-guide-card__body {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 16px;
      }

      .ground-break-guide-card__info {
        flex: 1;

        .ground-break-guide-title {
          margin: 0 0 8px;
          color: var(--gb-primary);
          font-size: 1.75rem;
          font-weight: 800;
          line-height: 1.35;
          transition: color 0.2s ease;
        }

        p {
          margin: 0;
          color: var(--gb-muted);
          font-size: 1.34rem;
          line-height: 1.6;
        }
      }

      .ground-break-guide-card__icon {
        flex: 0 0 50px;
        width: 50px;
        height: 50px;
        border-radius: 14px;
        background: var(--gb-primary-soft);
        border: 1px solid rgba(0, 60, 71, 0.12);
        color: var(--gb-primary);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;

        svg {
          width: 24px;
          height: 24px;
        }
      }

      .ground-break-guide-card__footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-top: 14px;
        margin-top: 16px;
        border-top: 1px solid var(--gb-border);

        .guide-card-tag {
          font-size: 1.22rem;
          font-weight: 700;
          color: var(--gb-primary);
          background: var(--gb-primary-soft);
          padding: 4px 10px;
          border-radius: 6px;
        }

        .guide-card-step {
          width: 26px;
          height: 26px;
          border-radius: 50%;
          background: var(--gb-primary-soft);
          color: var(--gb-primary);
          font-size: 1.18rem;
          font-weight: 800;
          display: flex;
          align-items: center;
          justify-content: center;
        }
      }
    }
  }
}

/* ========================================================
   KEYFRAMES HOẠT ẢNH
   ======================================================== */
@keyframes gbShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

@keyframes resultFadeIn {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes axisCellPop {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(8px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes canchiTargetPulse {
  0%, 100% {
    opacity: 0.95;
    filter: drop-shadow(0 0 10px rgba(255, 153, 0, 0.75));
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 16px rgba(255, 153, 0, 0.95));
  }
}

@keyframes northPointerPulse {
  0% {
    transform: translateY(0);
    filter: drop-shadow(0 2px 6px rgba(255, 153, 0, 0.45));
  }
  100% {
    transform: translateY(3px);
    filter: drop-shadow(0 4px 12px rgba(255, 153, 0, 0.95));
  }
}

@keyframes waitingCompassSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes waitingProgressAnim {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(100%);
  }
}

@media (max-width: 768px) {
  .ground-break-page {
    margin: 3rem auto 2.5rem;
    padding: 0 8px;

    .ground-break-hero {
      grid-template-columns: 1fr;
      text-align: left;
      padding: 22px 14px;
      border-radius: 18px;

      .ground-break-hero__features {
        display: none !important;
      }

      .ground-break-hero__visual {
        margin: 0 auto;
      }
    }

    .ground-break-tool {
      margin-top: 18px;
      padding: 18px 14px;
      border-radius: 18px;
    }

    .ground-break-result {
      margin-top: 20px;
    }

    .canchi-instrument-stage {
      padding: 0;
      margin-bottom: 20px;

      .canchi-instrument-visual {
        gap: 12px;
        padding: 4px 0 10px;

        .canchi-instrument-svg-box {
          .canchi-svg-instrument {
            width: min(calc(100vh - 200px), 100%, 96vw);
          }
        }

        .canchi-instrument-caption {
          padding: 12px 14px;
          border-radius: 14px;
          max-width: 100%;

          .caption-title {
            font-size: 1.45rem;
          }

          .caption-desc {
            font-size: 1.25rem;
          }
        }
      }
    }

    .age-building-heading-group {
      margin-bottom: 18px;

      .age-building-main-title {
        font-size: 2rem;
      }
    }

    .age-building-verdict-card {
      padding: 16px;
      gap: 18px;
      margin-bottom: 20px;
    }

    .ground-break-profile-strip {
      grid-template-columns: 1fr;
      gap: 10px;
      margin-bottom: 18px;

      .profile-strip-card {
        padding: 14px 16px;
        border-radius: 14px;
      }
    }

    .age-building-section-grid {
      grid-template-columns: 1fr;
      gap: 14px;
      margin-bottom: 18px;
    }

    .age-building-section-card {
      padding: 16px 14px;
      border-radius: 16px;

      .age-building-section-card__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding-bottom: 10px;

        .card-identity {
          width: 100%;

          .card-title-text {
            font-size: 1.55rem;
            white-space: normal;
            word-break: break-word;
            line-height: 1.35;
          }
        }

        .card-status-badge {
          align-self: flex-start;
        }
      }
    }

    .ground-break-guide {
      padding: 18px 14px;
      border-radius: 18px;
    }

    .ground-break-submit {
      width: 100%;
      height: 50px;
      font-size: 1.45rem;
    }
  }
}
