.first-footing-page {
  --ff-primary: #003c47;
  --ff-primary-dark: #00272e;
  --ff-primary-soft: #eaf4f6;
  --ff-accent: #ff9900;
  --ff-accent-hover: #e68a00;
  --ff-accent-soft: #fff7eb;
  --ff-good: #15803d;
  --ff-good-soft: #f0fdf4;
  --ff-bad: #b91c1c;
  --ff-bad-soft: #fef2f2;
  --ff-ink: #0f172a;
  --ff-muted: #52606d;
  --ff-border: rgba(0, 60, 71, 0.12);
  --ff-surface: #ffffff;
  --ff-soft: #f8fafc;
  --ff-radius-xl: 24px;
  --ff-radius-lg: 16px;
  --ff-radius-md: 12px;
  --ff-shadow: 0 16px 40px rgba(0, 60, 71, 0.08);

  max-width: 1320px;
  margin: 10rem auto 4rem;
  padding: 0 16px;
  color: var(--ff-ink);
  font-family: 'Roboto', sans-serif;

  * {
    box-sizing: border-box;
  }

  .first-footing-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(--ff-primary-soft);
    color: var(--ff-primary);
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;

    svg {
      color: var(--ff-accent);
      flex-shrink: 0;
    }
  }

  /* ========================================================
     HERO SECTION
     ======================================================== */
  .first-footing-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(--ff-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);

    .first-footing-hero__content {
      display: flex;
      flex-direction: column;
      justify-content: center;

      .first-footing-eyebrow {
        border-color: rgba(255, 153, 0, 0.4);
        background: rgba(255, 153, 0, 0.16);
        color: #ffc278;
        backdrop-filter: blur(4px);
      }

      .first-footing-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;
      }

      .first-footing-hero__features {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;

        .first-footing-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(--ff-accent);
            flex-shrink: 0;
          }

          &:hover {
            background: rgba(255, 255, 255, 0.2);
            border-color: var(--ff-accent);
          }
        }
      }
    }

    .first-footing-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;
      }

      .first-footing-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
     ======================================================== */
  .first-footing-tool {
    margin-top: 26px;
    padding: clamp(24px, 3.2vw, 36px);
    border: 1px solid var(--ff-border);
    border-radius: var(--ff-radius-xl);
    background: var(--ff-surface);
    box-shadow: var(--ff-shadow);
  }

  .first-footing-tool__intro {
    max-width: 880px;
    margin-bottom: 24px;

    h2 {
      margin: 12px 0 10px;
      color: var(--ff-primary);
      font-size: clamp(2.4rem, 3vw, 3.4rem);
      font-weight: 850;
      line-height: 1.18;
    }

    p {
      margin: 0;
      color: var(--ff-muted);
      font-size: 1.48rem;
      line-height: 1.65;
    }
  }

  .first-footing-form {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;

    .first-footing-group {
      padding: 18px 20px 22px;
      border: 1px solid var(--ff-border);
      border-radius: var(--ff-radius-lg);
      background: #fafcfd;

      .first-footing-group__title {
        display: block;
        margin-bottom: 14px;
        color: var(--ff-primary);
        font-size: 1.35rem;
        font-weight: 850;
        letter-spacing: 0.02em;
        text-transform: uppercase;
      }

      &.first-footing-group--date {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;

        .first-footing-group__title {
          grid-column: 1 / -1;
        }

        @media (max-width: 768px) {
          grid-template-columns: 1fr;
        }
      }

      &.first-footing-group--choice {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;

        @media (max-width: 768px) {
          grid-template-columns: 1fr;
        }
      }
    }
  }

  .first-footing-field {
    position: relative;
    min-width: 0;
  }

  .first-footing-label {
    display: block;
    margin-bottom: 8px;
    color: var(--ff-primary);
    font-size: 1.34rem;
    font-weight: 800;
  }

  .first-footing-select {
    position: relative;
    cursor: pointer;
  }

  .first-footing-input {
    width: 100%;
    height: 52px;
    padding: 0 44px 0 15px;
    border: 1px solid var(--ff-border);
    border-radius: 14px;
    background: #ffffff;
    color: var(--ff-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;

    &[readonly] {
      cursor: pointer;
      user-select: none;
      -webkit-user-select: none;
      pointer-events: none;
    }

    &:focus {
      border-color: var(--ff-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: ffShake 0.36s ease;
    }
  }

  .first-footing-select__icon {
    position: absolute;
    top: 17px;
    right: 15px;
    color: var(--ff-muted);
    pointer-events: none;
    transition: transform 0.2s ease;

    &.active {
      transform: rotate(180deg);
    }
  }

  .first-footing-error {
    display: none;
    margin-top: 6px;
    color: #dc2626;
    font-size: 1.18rem;
    font-weight: 750;
    line-height: 1.35;
  }

  .first-footing-suggestions {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 30;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--ff-border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(0, 60, 71, 0.14);

    &.first-footing-suggestions--sex {
      overflow: visible;
      width: 100%;
    }
  }

  .first-footing-search {
    position: relative;
    padding: 12px;
    border-bottom: 1px solid var(--ff-border);

    .first-footing-search__input {
      display: block;
      width: 100%;
      height: 40px;
      margin: 0;
      padding: 0 42px 0 14px;
      border: 1px solid var(--ff-border);
      border-radius: 12px;
      color: var(--ff-primary);
      font-size: 1.32rem;
      outline: 0;
      background: #ffffff;

      &:focus {
        border-color: var(--ff-accent);
      }
    }

    .icon-tabler-search,
    svg {
      position: absolute;
      top: 50%;
      right: 24px;
      transform: translateY(-50%);
      width: 18px !important;
      height: 18px !important;
      color: var(--ff-muted);
      pointer-events: none;
    }
  }

  .first-footing-suggestions__list {
    max-height: 250px;
    overflow-y: auto;
    padding: 8px;

    &.first-footing-suggestions__list--sex {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
      padding: 12px;

      .item-sex {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 48px;
        padding: 10px 14px;
        border: 1.5px solid var(--ff-border);
        border-radius: 12px;
        background: #ffffff;
        cursor: pointer;
        font-size: 1.35rem;
        font-weight: 750;
        transition: all 0.2s ease;

        .sex-option-icon {
          flex-shrink: 0;
          transition: transform 0.2s ease;
        }

        &[data-sex="1"] .sex-option-icon {
          color: #0284c7;
        }

        &[data-sex="0"] .sex-option-icon {
          color: #e11d48;
        }

        &:hover,
        &.active {
          background: var(--ff-primary-soft);
          border-color: var(--ff-primary);
          color: var(--ff-primary);

          .sex-option-icon {
            transform: scale(1.15);
          }
        }
      }
    }
  }

  .first-footing-option,
  .suggestion-item {
    display: flex;
    min-height: 42px;
    align-items: center;
    padding: 9px 12px;
    border-radius: 11px;
    color: var(--ff-ink);
    cursor: pointer;
    font-size: 1.32rem;
    font-weight: 700;
    transition: background 0.18s ease, color 0.18s ease;

    &:hover,
    &.active {
      background: var(--ff-primary-soft);
      color: var(--ff-primary);
    }
  }

  .first-footing-clear {
    display: none;
    padding: 10px 12px 12px;
    border-top: 1px solid var(--ff-border);

    &.active {
      display: block;
    }
  }

  .first-footing-clear__button {
    width: 100%;
    min-height: 40px;
    border: 0;
    border-radius: 11px;
    background: var(--ff-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 ĐÚNG CHUẨN TRANG XEM HƯỚNG NHÀ */
  .first-footing-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(--ff-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 LA BÀN TAM HỢP ĐỘC LẬP
     ======================================================== */
  .first-footing-result {
    display: none;
    margin-top: 36px;
    width: 100%;
    border: none;
    background: transparent;
    box-shadow: none;

    &.active {
      display: block;
    }
  }

  .first-footing-report {
    width: 100%;
    padding: 0;
  }

  .first-footing-report__header {
    text-align: center;
    max-width: 860px;
    margin: 0 auto 28px;

    .first-footing-report__eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 5px 14px;
      border-radius: 999px;
      background: var(--ff-accent-soft);
      border: 1px solid rgba(255, 153, 0, 0.3);
      color: #b45309;
      font-size: 1.25rem;
      font-weight: 800;
      text-transform: uppercase;
      margin-bottom: 10px;

      svg {
        color: var(--ff-accent);
      }
    }

    .first-footing-report__title {
      color: var(--ff-primary);
      font-size: clamp(2.2rem, 2.8vw, 3.2rem);
      font-weight: 850;
      line-height: 1.25;
      margin: 8px 0;
    }

    .first-footing-report__desc {
      color: var(--ff-muted);
      font-size: 1.48rem;
      line-height: 1.65;
      margin: 0;
    }
  }

  /* ========================================================
     SÂN KHẤU 2 CỘT: LA BÀN TAM HỢP 3D & BẢNG ĐIỀU KHIỂN
     ======================================================== */
  /* ========================================================
     SÂN KHẤU TRUNG TÂM HOÀNG TRÁNG: LA BÀN TAM HỢP 640PX
     ======================================================== */
  .first-footing-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;

    .first-footing-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;
      }

      .first-footing-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;
          }

          .canchi-sector-item {
            .canchi-sector-bg {
              transition: fill 0.35s ease, stroke 0.35s ease;
            }

            text {
              transition: font-weight 0.3s ease;
            }

            &.is-target-active {
              .canchi-sector-bg {
                fill: #ffffff !important;
                stroke: rgba(255, 153, 0, 0.85) !important;
                stroke-width: 1.8px !important;
              }

              text {
                font-weight: 950 !important;
              }
            }
          }

          .canchi-active-target-overlay {
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.5s ease;

            &.is-revealed {
              opacity: 1 !important;
            }

            .canchi-target-frame {
              stroke: rgba(255, 153, 0, 0.85);
              stroke-width: 1.8px;
              stroke-linejoin: round;
              stroke-linecap: round;
              fill: none !important;
              filter: drop-shadow(0 0 4px rgba(255, 153, 0, 0.4));
            }
          }

          .canchi-north-pointer {
            transition: filter 0.5s ease;

            &.is-settled {
              filter: drop-shadow(0 0 10px #ff9900) drop-shadow(0 4px 6px rgba(0, 18, 23, 0.7));
            }
          }
        }
      }

      /* BOX THÔNG TIN NGẮN NGAY DƯỚI LA BÀN (ĐỒNG BỘ CHUẨN XEM HƯỚNG NHÀ & XEM HƯỚNG BẾP) */
      .first-footing-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: #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;
        }
      }
    }
  }

  /* ========================================================
     BÁO CÁO PHÂN TÍCH CHI TIẾT
     ======================================================== */
  .first-footing-report-details {
    display: none;
    margin-top: 10px;

    &.is-revealed {
      display: block;
      animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    .first-footing-heading-group {
      margin-bottom: 24px;
      text-align: center;

      .first-footing-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;
        }
      }

      .first-footing-main-title {
        font-size: clamp(2rem, 2.5vw, 2.8rem);
        font-weight: 900;
        color: #003c47;
        line-height: 1.25;
      }
    }

    /* CARD PHÁN QUYẾT: TỨ TRỤ CAN CHI + GAUGE ĐIỂM SỐ */
    .first-footing-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;

          strong {
            color: #003c47;
          }
        }
      }

      .verdict-card-right {
        display: flex;
        justify-content: center;
      }
    }

    /* BỘ TỨ TRỤ CAN CHI TRÊN NỀN SÁNG */
    .first-footing-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.55rem;
          font-weight: 900;
          color: #003c47;
          line-height: 1.2;

          &.val-hanh--kim { color: #475569 !important; }
          &.val-hanh--thuy { color: #0284c7 !important; }
          &.val-hanh--moc { color: #16a34a !important; }
          &.val-hanh--hoa { color: #dc2626 !important; }
          &.val-hanh--tho { color: #b45309 !important; }
          &.is-good { color: #16a34a !important; }
          &.is-bad { color: #dc2626 !important; }
        }
      }
    }

    /* GAUGE THƯỚC ĐO ĐIỂM SỐ TRÊN NỀN SÁNG */
    .first-footing-meter-box {
      display: flex;
      align-items: center;
      gap: 16px;
      padding: 16px 20px;
      border-radius: 16px;
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      width: 100%;

      .first-footing-meter-dial {
        position: relative;
        width: 96px;
        height: 96px;
        flex-shrink: 0;

        .age-gauge-svg {
          transform: rotate(-90deg);

          .age-gauge-bg {
            fill: none;
            stroke: #e2e8f0;
            stroke-width: 8;
          }

          .age-gauge-progress {
            fill: none;
            stroke: #16a34a;
            stroke-width: 8;
            stroke-linecap: round;
            transition: stroke-dashoffset 1.8s cubic-bezier(0.16, 1, 0.3, 1);
          }
        }

        .age-gauge-center {
          position: absolute;
          inset: 0;
          display: flex;
          align-items: baseline;
          justify-content: center;
          transform: translateY(32px);

          .age-gauge-score {
            font-size: 2.4rem;
            font-weight: 900;
            color: #003c47;
          }

          .age-gauge-max {
            font-size: 1.2rem;
            font-weight: 700;
            color: #64748b;
          }
        }
      }

      &.is-bad .first-footing-meter-dial .age-gauge-progress {
        stroke: #dc2626;
      }

      &.is-medium .first-footing-meter-dial .age-gauge-progress {
        stroke: #f59e0b;
      }

      .first-footing-meter-text {
        .first-footing-meter-score-text {
          font-size: 1.45rem;
          font-weight: 850;
          color: #003c47;
          margin-bottom: 4px;

          strong {
            color: #ff9900;
          }
        }

        .first-footing-meter-guide-text {
          font-size: 1.26rem;
          line-height: 1.55;
          color: #475569;
        }
      }
    }

    .first-footing-profile-strip {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 16px;
      margin-bottom: 24px;

      @media (max-width: 860px) {
        grid-template-columns: 1fr;
      }

      .profile-strip-card {
        display: flex;
        align-items: flex-start;
        gap: 14px;
        padding: 18px 20px;
        border-radius: var(--ff-radius-lg);
        background: #ffffff;
        border: 1px solid var(--ff-border);
        box-shadow: 0 4px 16px rgba(0, 45, 54, 0.04);

        .profile-strip-icon {
          width: 44px;
          height: 44px;
          border-radius: 12px;
          display: flex;
          align-items: center;
          justify-content: center;
          flex-shrink: 0;

          svg {
            width: 22px;
            height: 22px;
          }

          &--owner {
            background: var(--ff-primary-soft);
            color: var(--ff-primary);
          }

          &--year {
            background: var(--ff-accent-soft);
            color: #b45309;
          }

          &--top {
            background: #dcfce7;
            color: #15803d;
          }
        }

        .profile-strip-content {
          flex: 1;

          .profile-strip-label {
            display: block;
            font-size: 1.18rem;
            font-weight: 750;
            color: var(--ff-muted);
            text-transform: uppercase;
            letter-spacing: 0.04em;
            margin-bottom: 3px;
          }

          .profile-strip-value {
            font-size: 1.6rem;
            font-weight: 850;
            color: var(--ff-primary);
            margin-bottom: 3px;

            &--year {
              color: #b45309;
            }
          }

          .profile-strip-desc {
            font-size: 1.25rem;
            color: var(--ff-muted);
            line-height: 1.45;
          }
        }
      }
    }

    .first-footing-card {
      padding: 22px;
      border-radius: var(--ff-radius-lg);
      background: #ffffff;
      border: 1px solid var(--ff-border);
      margin-bottom: 22px;

      .first-footing-card__title {
        display: flex;
        align-items: center;
        gap: 9px;
        margin-bottom: 16px;
        color: var(--ff-primary);
        font-size: 1.55rem;
        font-weight: 850;

        svg {
          color: var(--ff-accent);
          width: 20px;
          height: 20px;
        }
      }
    }

    .first-footing-age-grid {
      display: flex;
      flex-direction: column;
      gap: 20px;
      margin-bottom: 24px;

      .first-footing-card {
        margin-bottom: 0;
      }

      .first-footing-good {
        border-color: rgba(22, 163, 74, 0.28);
        background: #ffffff;

        .first-footing-card__title--good {
          color: #15803d;

          svg {
            color: #16a34a;
          }
        }
      }

      .first-footing-bad {
        border-color: rgba(220, 38, 38, 0.28);
        background: #ffffff;

        .first-footing-card__title--bad {
          color: #b91c1c;

          svg {
            color: #dc2626;
          }
        }
      }
    }

    .first-footing-cards-list {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
      margin-bottom: 12px;

      @media (max-width: 680px) {
        grid-template-columns: 1fr;
      }

      .first-footing-age-card {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 14px;
        border-radius: 12px;
        background: #ffffff;
        border: 1px solid rgba(0, 60, 71, 0.12);
        transition: transform 0.2s ease, box-shadow 0.2s ease;

        &:hover {
          transform: translateY(-2px);
          box-shadow: 0 4px 12px rgba(0, 36, 44, 0.06);
        }

        &.is-good {
          border-color: rgba(22, 163, 74, 0.25);
        }

        &.is-bad {
          border-color: rgba(220, 38, 38, 0.25);
        }

        .age-card-left {
          display: flex;
          align-items: center;
          gap: 10px;
          min-width: 0;

          .age-card-rank {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 26px;
            height: 26px;
            border-radius: 50%;
            background: #003c47;
            color: #ffffff;
            font-size: 1.15rem;
            font-weight: 850;
            flex-shrink: 0;
          }

          .age-card-ban-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: #dc2626;
            flex-shrink: 0;

            svg {
              width: 20px;
              height: 20px;
            }
          }

          .age-card-title-group {
            display: flex;
            align-items: baseline;
            gap: 6px;
            white-space: nowrap;

            .age-card-canchi {
              font-size: 1.42rem;
              font-weight: 850;
              color: #003c47;
            }

            .age-card-year {
              font-size: 1.25rem;
              font-weight: 600;
              color: #64748b;
            }
          }
        }

        &.is-bad .age-card-title-group .age-card-canchi {
          color: #dc2626;
        }

        .age-card-right {
          display: flex;
          align-items: center;
          gap: 8px;
          flex-shrink: 0;

          .age-card-menh {
            display: inline-flex;
            align-items: center;
            padding: 3px 8px;
            border-radius: 6px;
            background: #f1f5f9;
            color: #475569;
            font-size: 1.15rem;
            font-weight: 700;
            white-space: nowrap;
          }

          .age-card-score {
            display: inline-flex;
            align-items: center;
            padding: 3px 10px;
            border-radius: 6px;
            background: #dcfce7;
            color: #15803d;
            font-size: 1.18rem;
            font-weight: 800;
            white-space: nowrap;

            &.is-bad {
              background: #fee2e2;
              color: #dc2626;
            }
          }
        }
      }
    }

    .first-footing-card-note {
      margin: 0;
      color: var(--ff-muted);
      font-size: 1.22rem;
      font-style: italic;
    }

    .first-footing-details-container {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;

      @media (max-width: 860px) {
        grid-template-columns: 1fr;
      }

      .first-footing-detail-item {
        padding: 14px 16px;
        border-radius: 12px;
        background: #f8fafc;
        border: 1px solid var(--ff-border);

        .first-footing-detail-head {
          display: flex;
          align-items: center;
          gap: 10px;
          margin-bottom: 10px;

          .detail-order-badge {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: var(--ff-primary);
            color: #ffffff;
            font-size: 1.15rem;
            font-weight: 850;
            display: flex;
            align-items: center;
            justify-content: center;
          }

          .detail-age-title {
            flex: 1;
            color: var(--ff-primary);
            font-size: 1.38rem;
            font-weight: 800;
          }

          .score-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-size: 1.18rem;
            font-weight: 800;
            color: #b45309;
            background: var(--ff-accent-soft);
            padding: 3px 8px;
            border-radius: 6px;

            svg {
              color: var(--ff-accent);
              width: 14px;
              height: 14px;
            }
          }
        }

        .detail-analysis-list {
          list-style: none;
          padding: 0;
          margin: 0;

          li {
            display: flex;
            align-items: flex-start;
            gap: 8px;
            margin-bottom: 6px;
            color: var(--ff-muted);
            font-size: 1.24rem;
            line-height: 1.5;

            svg {
              color: var(--ff-good);
              width: 14px;
              height: 14px;
              flex-shrink: 0;
              margin-top: 3px;
            }
          }
        }
      }
    }

    .first-footing-ritual-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
      margin-bottom: 16px;

      @media (max-width: 768px) {
        grid-template-columns: 1fr;
      }

      .ritual-box {
        padding: 16px;
        border-radius: 12px;
        background: #f8fafc;
        border: 1px solid var(--ff-border);

        .ritual-box-title {
          color: var(--ff-primary);
          font-size: 1.38rem;
          font-weight: 800;
          margin-bottom: 8px;
        }

        p {
          margin: 0;
          color: var(--ff-muted);
          font-size: 1.28rem;
          line-height: 1.6;
        }
      }
    }

    .first-footing-expert-note {
      padding: 14px 18px;
      border-radius: 12px;
      background: var(--ff-accent-soft);
      border: 1px solid rgba(255, 153, 0, 0.3);
      color: #92400e;
      font-size: 1.3rem;
      line-height: 1.6;
      margin-bottom: 12px;
    }

    .first-footing-disclaimer {
      display: flex;
      align-items: center;
      gap: 6px;
      margin: 0;
      color: var(--ff-muted);
      font-size: 1.2rem;

      svg {
        color: var(--ff-muted);
        width: 15px;
        height: 15px;
        flex-shrink: 0;
      }
    }
  }

  /* ========================================================
     GUIDE SECTION
     ======================================================== */
  .first-footing-guide {
    margin-top: 32px;
    padding: clamp(24px, 3.5vw, 38px);
    border: 1px solid var(--ff-border);
    border-radius: var(--ff-radius-xl);
    background: linear-gradient(180deg, #ffffff 0%, #fffdfa 100%);
    box-shadow: 0 16px 40px rgba(0, 45, 54, 0.06);

    .first-footing-guide__heading {
      text-align: left;
      max-width: 820px;
      margin-bottom: 26px;

      h2 {
        color: var(--ff-primary);
        font-size: clamp(2.2rem, 2.6vw, 3rem);
        font-weight: 850;
        margin: 12px 0 8px;
        line-height: 1.25;
      }

      p {
        color: var(--ff-muted);
        font-size: 1.45rem;
        margin: 0;
      }
    }

    .first-footing-guide__grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 20px;

      @media (max-width: 900px) {
        grid-template-columns: 1fr;
      }
    }

    .first-footing-guide-card {
      position: relative;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      border: 1px solid var(--ff-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);

        .first-footing-guide-card__icon {
          background: linear-gradient(135deg, #003c47 0%, #005666 100%);
          color: #ffffff;
          transform: scale(1.06);
        }

        .first-footing-guide-title {
          color: var(--ff-accent);
        }
      }

      .first-footing-guide-card__body {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 16px;
      }

      .first-footing-guide-card__info {
        flex: 1;

        .first-footing-guide-title {
          margin: 0 0 8px;
          color: var(--ff-primary);
          font-size: 1.75rem;
          font-weight: 800;
          line-height: 1.35;
          transition: color 0.2s ease;
        }

        p {
          margin: 0;
          color: var(--ff-muted);
          font-size: 1.34rem;
          line-height: 1.6;
        }
      }

      .first-footing-guide-card__icon {
        flex: 0 0 50px;
        width: 50px;
        height: 50px;
        border-radius: 14px;
        background: var(--ff-primary-soft);
        border: 1px solid rgba(0, 60, 71, 0.12);
        color: var(--ff-primary);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;

        svg {
          width: 24px;
          height: 24px;
        }
      }

      .first-footing-guide-card__footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-top: 14px;
        margin-top: 16px;
        border-top: 1px solid var(--ff-border);

        .guide-card-tag {
          font-size: 1.22rem;
          font-weight: 700;
          color: var(--ff-primary);
          background: var(--ff-primary-soft);
          padding: 4px 10px;
          border-radius: 6px;
        }

        .guide-card-step {
          width: 26px;
          height: 26px;
          border-radius: 50%;
          background: var(--ff-primary-soft);
          color: var(--ff-primary);
          font-size: 1.18rem;
          font-weight: 800;
          display: flex;
          align-items: center;
          justify-content: center;
        }
      }
    }
  }
}

/* ========================================================
   KEYFRAMES HOẠT ẢNH
   ======================================================== */
@keyframes ffShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

@keyframes heroDashedRingSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spinCompass {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes waitingProgress {
  0% { transform: scaleX(0.05); }
  50% { transform: scaleX(0.7); }
  100% { transform: scaleX(1); }
}

@keyframes fadeInStage {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .first-footing-page {
    margin: 3rem auto 2.5rem;
    padding: 0 8px;

    .first-footing-hero {
      grid-template-columns: 1fr;
      text-align: left;
      padding: 22px 14px;
      border-radius: 18px;

      .first-footing-hero__features {
        display: none !important;
      }

      .first-footing-hero__visual {
        margin: 0 auto;
      }
    }

    .first-footing-tool {
      margin-top: 18px;
      padding: 18px 14px;
      border-radius: 18px;

      .first-footing-tool__intro {
        margin-bottom: 16px;

        h2 {
          font-size: 2.1rem;
        }

        p {
          font-size: 1.35rem;
        }
      }

      .first-footing-form {
        gap: 14px;

        .first-footing-group {
          padding: 14px 12px 18px;
          border-radius: 14px;
          gap: 12px;
        }
      }

      .first-footing-submit {
        width: 100%;
        height: 50px;
        font-size: 1.45rem;
      }
    }

    .first-footing-result {
      margin-top: 20px;
    }

    .first-footing-report {
      padding: 0;

      .first-footing-report__header {
        margin-bottom: 18px;

        .first-footing-report__title {
          font-size: 2.05rem;
        }

        .first-footing-report__desc {
          font-size: 1.32rem;
        }
      }
    }

    .first-footing-instrument-stage {
      padding: 0;
      border: none;
      background: transparent;
      box-shadow: none;
      margin-bottom: 20px;

      .first-footing-instrument-visual {
        gap: 12px;
        padding: 4px 0 10px;

        .first-footing-instrument-svg-box {
          width: 100%;
          max-width: 100%;
          height: auto;
          aspect-ratio: 1;
          filter: drop-shadow(0 10px 24px rgba(0, 36, 44, 0.12));
        }

        .first-footing-instrument-caption {
          padding: 12px 14px;
          border-radius: 14px;

          .caption-tag {
            font-size: 1.1rem;
          }

          .caption-title {
            font-size: 1.35rem;
          }

          .caption-desc {
            font-size: 1.22rem;
            line-height: 1.5;
          }
        }
      }
    }

    .first-footing-profile-strip {
      grid-template-columns: 1fr;
      gap: 10px;
      margin-bottom: 18px;

      .profile-strip-card {
        padding: 14px 16px;
        border-radius: 14px;
      }
    }

    .first-footing-age-grid {
      grid-template-columns: 1fr;
      gap: 16px;
      margin-bottom: 18px;
    }

    .first-footing-card {
      padding: 18px 14px;
      border-radius: 16px;
      margin-bottom: 18px;

      .first-footing-card__title {
        font-size: 1.58rem;
        margin-bottom: 12px;
      }

      .first-footing-cards-list {
        grid-template-columns: 1fr;
        gap: 10px;
      }

      .first-footing-details-container {
        gap: 12px;
      }

      .first-footing-ritual-grid {
        grid-template-columns: 1fr;
        gap: 12px;
      }
    }

    .first-footing-guide {
      padding: 18px 14px;
      border-radius: 18px;
    }
  }
}
