.seo-tool-hero {
    background: #ffffff;
    padding: 16px 10px 18px;
}

.seo-tool-hero__grid {
    align-items: center;
    background:
        radial-gradient(circle at 80% 18%, rgba(21, 94, 239, .1), transparent 32%),
        linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: grid;
    gap: 30px;
    grid-template-columns: minmax(0, .94fr) minmax(390px, 1.06fr);
    min-height: 410px;
    overflow: hidden;
    padding: 34px 36px;
}

.seo-tool-eyebrow {
    color: #155eef;
    font-size: 1.34rem;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.seo-tool-hero h1,
.seo-tool-section h2 {
    color: #101828;
    font-weight: 720;
    letter-spacing: 0;
    line-height: 1.12;
    margin: 0;
}

.seo-tool-hero h1 {
    font-size: clamp(3.2rem, 4.8vw, 4.9rem);
    font-weight: 760;
    max-width: 760px;
}

.seo-tool-lead {
    color: #1f2a44;
    font-size: 1.5rem;
    line-height: 1.68;
    margin: 18px 0 0;
    max-width: 760px;
}

.seo-tool-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.seo-tool-btn {
    align-items: center;
    border-radius: 8px;
    box-sizing: border-box;
    display: inline-flex;
    font-size: 1.46rem;
    font-weight: 700;
    gap: 8px;
    justify-content: center;
    min-height: 48px;
    min-width: 190px;
    padding: 12px 18px;
    text-decoration: none;
    transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.seo-tool-btn--primary {
    background: #155eef;
    box-shadow: 0 12px 24px rgba(21, 94, 239, .2);
    color: #ffffff;
}

.seo-tool-btn--primary:hover {
    background: #0f4fd1;
    color: #ffffff;
    transform: translateY(-1px);
}

.seo-tool-btn--secondary {
    background: #ffffff;
    border: 1px solid #155eef;
    color: #155eef;
}

.seo-tool-btn--secondary:hover {
    background: #eff6ff;
    box-shadow: none;
    color: #155eef;
    transform: translateY(-1px);
}

.seo-tool-hero__checks {
    display: grid;
    gap: 8px;
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
}

.seo-tool-hero__checks li {
    align-items: flex-start;
    color: #344054;
    display: flex;
    font-size: 1.34rem;
    gap: 9px;
    line-height: 1.5;
}

.seo-tool-hero__checks i {
    color: #155eef;
    line-height: 1.5;
}

.seo-tool-hero__visual {
    background: #ffffff;
    border: 5px solid #ffffff;
    border-radius: 12px;
    box-shadow: 0 18px 34px rgba(15, 23, 42, .16);
    margin: 0;
    overflow: hidden;
}

.seo-tool-hero__visual > img {
    aspect-ratio: 32 / 41;
    display: block;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.seo-tool-comparison {
    aspect-ratio: 32 / 41;
    background: #dbeafe;
    overflow: hidden;
    position: relative;
    --comparison-position: 50%;
}

.seo-tool-comparison__image {
    display: block;
    height: 100%;
    inset: 0;
    object-fit: cover;
    position: absolute;
    width: 100%;
}

.seo-tool-comparison__image--before {
    filter: blur(4px) saturate(.82) contrast(.92);
    transform: scale(1.025);
    z-index: 0;
}

.seo-tool-comparison__image--after {
    clip-path: inset(0 0 0 var(--comparison-position));
    z-index: 2;
}

.seo-tool-comparison--remove-bg {
    background:
        linear-gradient(45deg, #dbe4ef 25%, transparent 25%),
        linear-gradient(-45deg, #dbe4ef 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #dbe4ef 75%),
        linear-gradient(-45deg, transparent 75%, #dbe4ef 75%),
        #ffffff;
    background-position: 0 0, 0 12px, 12px -12px, -12px 0;
    background-size: 24px 24px;
}

.seo-tool-comparison__after-bg {
    background:
        linear-gradient(45deg, #dbe4ef 25%, transparent 25%),
        linear-gradient(-45deg, #dbe4ef 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #dbe4ef 75%),
        linear-gradient(-45deg, transparent 75%, #dbe4ef 75%),
        #ffffff;
    background-position: 0 0, 0 12px, 12px -12px, -12px 0;
    background-size: 24px 24px;
    clip-path: inset(0 0 0 var(--comparison-position));
    inset: 0;
    position: absolute;
    z-index: 1;
}

.seo-tool-comparison--remove-bg .seo-tool-comparison__image--before {
    filter: saturate(.9) contrast(.95);
    transform: none;
}

.seo-tool-comparison--remove-bg .seo-tool-comparison__image--after {
    filter: drop-shadow(0 16px 26px rgba(15, 23, 42, .22));
}

.seo-tool-comparison__divider {
    background: rgba(255, 255, 255, .96);
    bottom: 0;
    box-shadow: 0 0 24px rgba(15, 23, 42, .2);
    left: var(--comparison-position);
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    width: 4px;
    z-index: 3;
}

.seo-tool-comparison__divider span {
    align-items: center;
    background: #155eef;
    border: 3px solid #ffffff;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .24);
    color: #ffffff;
    display: flex;
    height: 42px;
    justify-content: center;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 42px;
}

.seo-tool-comparison__divider span::before,
.seo-tool-comparison__divider span::after {
    border-bottom: 5px solid transparent;
    border-top: 5px solid transparent;
    content: "";
    position: absolute;
}

.seo-tool-comparison__divider span::before {
    border-right: 6px solid #ffffff;
    left: 10px;
}

.seo-tool-comparison__divider span::after {
    border-left: 6px solid #ffffff;
    right: 10px;
}

.seo-tool-comparison__labels {
    display: flex;
    inset: 14px 14px auto;
    justify-content: space-between;
    pointer-events: none;
    position: absolute;
    z-index: 4;
}

.seo-tool-comparison__labels span {
    backdrop-filter: blur(10px);
    background: rgba(15, 23, 42, .72);
    border-radius: 999px;
    color: #ffffff;
    font-size: 1.18rem;
    font-weight: 900;
    line-height: 1.2;
    max-width: 45%;
    padding: 8px 10px;
    text-align: center;
}

.seo-tool-comparison__range {
    appearance: none;
    background: transparent;
    cursor: ew-resize;
    height: 100%;
    inset: 0;
    margin: 0;
    opacity: 0;
    position: absolute;
    width: 100%;
    z-index: 5;
}

.seo-tool-comparison:focus-within .seo-tool-comparison__divider span {
    outline: 3px solid rgba(21, 94, 239, .36);
    outline-offset: 4px;
}

.seo-tool-comparison__range::-webkit-slider-thumb {
    appearance: none;
    height: 100%;
    width: 44px;
}

.seo-tool-comparison__range::-moz-range-thumb {
    background: transparent;
    border: 0;
    height: 100%;
    width: 44px;
}

.seo-tool-hero__visual figcaption {
    background: #ffffff;
    display: grid;
    gap: 4px;
    padding: 16px;
}

.seo-tool-hero__visual span {
    color: #b45309;
    font-size: 1.25rem;
    font-weight: 900;
    text-transform: uppercase;
}

.seo-tool-hero__visual strong {
    color: #101828;
    font-size: 1.44rem;
    line-height: 1.4;
}

.seo-tool-section {
    padding: 28px 0;
}

.seo-tool-section--soft {
    background: #f8fafc;
    border-bottom: 1px solid rgba(15, 23, 42, .06);
    border-top: 1px solid rgba(15, 23, 42, .06);
}

.seo-tool-section--tool {
    background: #ffffff;
    border-bottom: 1px solid rgba(15, 23, 42, .06);
}

.seo-tool-section--citation {
    background: #f8fafc;
    border-bottom: 1px solid rgba(15, 23, 42, .06);
    border-top: 1px solid rgba(15, 23, 42, .06);
    padding: 24px 0;
}

.seo-tool-section--links {
    padding-bottom: 54px;
}

.seo-tool-section__head {
    margin: 0 auto 22px;
    max-width: 790px;
    text-align: center;
}

.seo-tool-section h2 {
    font-size: 2.28rem;
}

.seo-tool-citation {
    align-items: start;
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(220px, .42fr) minmax(0, 1fr);
}

.seo-tool-citation h2 {
    font-size: 2.06rem;
    line-height: 1.18;
    margin-top: 0;
}

.seo-tool-citation__grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.seo-tool-citation__grid article {
    background: #ffffff;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    padding: 16px;
}

.seo-tool-citation__grid h3 {
    color: #101828;
    font-size: 1.42rem;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 8px;
}

.seo-tool-citation__grid p {
    color: #475467;
    font-size: 1.34rem;
    line-height: 1.62;
    margin: 0;
}

.seo-tool-section__head p,
.seo-tool-copy-layout p,
.seo-tool-split p {
    color: #475467;
    font-size: 1.42rem;
    line-height: 1.65;
    margin: 10px 0 0;
}

.seo-tool-example-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.seo-tool-example {
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    display: grid;
    gap: 10px;
    padding: 18px;
}

.seo-tool-example h3 {
    color: #101828;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.34;
    margin: 0;
}

.seo-tool-example p {
    color: #475467;
    font-size: 1.36rem;
    line-height: 1.58;
    margin: 0;
}

.seo-tool-example strong {
    color: #101828;
    font-weight: 800;
}

.seo-tool-steps,
.seo-tool-diagnostics,
.seo-tool-prompt-grid {
    display: grid;
    gap: 14px;
}

.seo-tool-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.seo-tool-steps article,
.seo-tool-diagnostics article,
.seo-tool-prompt-grid article {
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    padding: 18px;
}

.seo-tool-steps i {
    align-items: center;
    background: #fff7ed;
    border-radius: 8px;
    color: #c2410c;
    display: flex;
    font-size: 1.8rem;
    height: 42px;
    justify-content: center;
    margin-bottom: 14px;
    width: 42px;
}

.seo-tool-steps h3,
.seo-tool-diagnostics h3,
.seo-tool-prompt-grid h3 {
    color: #101828;
    font-size: 1.62rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
}

.seo-tool-steps p,
.seo-tool-diagnostics p {
    color: #64748b;
    font-size: 1.4rem;
    line-height: 1.62;
    margin: 10px 0 0;
}

.seo-tool-copy-layout,
.seo-tool-split {
    align-items: center;
    display: grid;
    gap: 30px;
    grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
}

.seo-tool-live-tool {
    align-items: stretch;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    min-width: 0;
}

.seo-tool-live-tool__form,
.seo-tool-live-tool__result {
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    padding: 18px;
}

.seo-tool-upload-box {
    align-items: center;
    border: 2px dashed rgba(21, 94, 239, .28);
    border-radius: 10px;
    box-sizing: border-box;
    cursor: pointer;
    display: grid;
    gap: 8px;
    min-height: 210px;
    padding: 24px;
    place-items: center;
    text-align: center;
}

.seo-tool-upload-box input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.seo-tool-upload-box i {
    color: #155eef;
    font-size: 3rem;
}

.seo-tool-upload-box strong {
    color: #101828;
    font-size: 1.7rem;
    font-weight: 700;
}

.seo-tool-upload-box span {
    color: #64748b;
    font-size: 1.34rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.seo-tool-live-tool__status {
    color: #64748b;
    font-size: 1.35rem;
    line-height: 1.5;
    margin: 0;
    min-height: 22px;
}

.seo-tool-live-tool__status.is-error {
    color: #b91c1c;
}

.seo-tool-live-tool__status.is-success {
    color: #155eef;
}

.seo-tool-live-tool__preview {
    align-items: center;
    aspect-ratio: var(--preview-aspect-ratio, 4 / 3);
    background:
        linear-gradient(45deg, #dbe4ef 25%, transparent 25%),
        linear-gradient(-45deg, #dbe4ef 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #dbe4ef 75%),
        linear-gradient(-45deg, transparent 75%, #dbe4ef 75%),
        #ffffff;
    background-position: 0 0, 0 14px, 14px -14px, -14px 0;
    background-size: 28px 28px;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 8px;
    box-sizing: border-box;
    color: #64748b;
    display: grid;
    gap: 10px;
    justify-items: center;
    min-height: 280px;
    overflow: hidden;
    padding: 20px;
    position: relative;
    text-align: center;
}

.seo-tool-live-tool__preview.has-image {
    min-height: 320px;
    padding: 0;
}

.seo-tool-live-tool__preview.is-processing::before {
    background: rgba(15, 23, 42, .54);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 2;
}

.seo-tool-live-tool__preview.is-processing::after {
    align-items: center;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .22);
    color: #101828;
    content: "Đang tách nền...";
    display: inline-flex;
    font-size: 1.42rem;
    font-weight: 900;
    gap: 8px;
    left: 50%;
    min-height: 44px;
    padding: 0 16px;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    z-index: 3;
}

.seo-tool-live-tool--sharpen .seo-tool-live-tool__preview.is-processing::after {
    content: "Đang làm nét ảnh...";
}

.seo-tool-live-tool__preview.is-processing img {
    filter: blur(1px) saturate(.9);
    transition: filter .18s ease;
}

.seo-tool-live-tool__preview i {
    font-size: 3rem;
}

.seo-tool-live-tool__preview span {
    font-size: 1.35rem;
    line-height: 1.45;
}

.seo-tool-live-tool__preview img {
    display: block;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    width: 100%;
}

.seo-tool-control-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.seo-tool-control {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.seo-tool-control span,
.seo-tool-checkline span {
    color: #344054;
    font-size: 1.32rem;
    font-weight: 750;
    line-height: 1.35;
}

.seo-tool-control select,
.seo-tool-control input[type="range"] {
    min-width: 0;
    width: 100%;
}

.seo-tool-control select {
    background: #ffffff;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    color: #101828;
    font-size: 1.38rem;
    min-height: 42px;
    padding: 8px 10px;
}

.seo-tool-checkline {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    display: flex;
    gap: 10px;
    min-height: 44px;
    padding: 10px 12px;
}

.seo-tool-checkline input {
    accent-color: #155eef;
    flex: 0 0 auto;
}

.seo-tool-tool-note {
    color: #475467;
    font-size: 1.34rem;
    line-height: 1.58;
    margin: 14px auto 0;
    max-width: 820px;
    text-align: center;
}

.seo-tool-tool-note a {
    color: #155eef;
    font-weight: 760;
    text-decoration: none;
}

.seo-tool-live-compare {
    --comparison-position: 50%;
    background: #101828;
    height: 100%;
    min-height: 320px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.seo-tool-live-compare__image {
    display: block;
    height: 100%;
    inset: 0;
    object-fit: contain;
    position: absolute;
    width: 100%;
}

.seo-tool-live-compare__image--before {
    z-index: 0;
}

.seo-tool-live-compare__image--after {
    clip-path: inset(0 0 0 var(--comparison-position));
    z-index: 2;
}

.seo-tool-inline-link {
    align-items: center;
    color: #155eef;
    display: inline-flex;
    font-size: 1.44rem;
    font-weight: 700;
    gap: 8px;
    margin-top: 14px;
    text-decoration: none;
}

.seo-tool-inline-link:hover {
    color: #0f4fd1;
}

.seo-tool-prompt {
    background: #eef6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 16px;
}

.seo-tool-prompt .prompt-copy-block {
    margin: 0;
}

.seo-tool-diagnostics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.seo-tool-diagnostics article {
    border-left: 4px solid #155eef;
}

.seo-tool-prompt-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.seo-tool-prompt-grid article {
    display: grid;
    gap: 12px;
}

.seo-tool-prompt-grid .prompt-copy-block {
    margin: 0;
}

.seo-tool-warning-list {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, .09);
    border-radius: 8px;
    display: grid;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 20px;
}

.seo-tool-warning-list li {
    color: #334155;
    font-size: 1.44rem;
    font-weight: 750;
    line-height: 1.45;
    padding-left: 22px;
    position: relative;
}

.seo-tool-warning-list li::before {
    background: #f59e0b;
    border-radius: 50%;
    content: "";
    height: 8px;
    left: 0;
    position: absolute;
    top: .65em;
    width: 8px;
}

.seo-tool-faq {
    display: grid;
    gap: 12px;
    margin: 0 auto;
    max-width: 920px;
}

.seo-tool-faq details {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, .09);
    border-radius: 8px;
    padding: 16px 18px;
}

.seo-tool-faq summary {
    color: #101828;
    cursor: pointer;
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.4;
}

.seo-tool-faq p {
    color: #64748b;
    font-size: 1.42rem;
    line-height: 1.62;
    margin: 10px 0 0;
}

.seo-tool-related {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.seo-tool-related a {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, .09);
    border-radius: 8px;
    color: #101828;
    display: flex;
    font-size: 1.45rem;
    font-weight: 700;
    gap: 12px;
    justify-content: space-between;
    line-height: 1.4;
    min-height: 58px;
    padding: 14px 16px;
    text-decoration: none;
}

.seo-tool-related a:hover {
    background: #eff6ff;
    border-color: rgba(21, 94, 239, .26);
    color: #155eef;
}

.seo-tool-live-tool__preview.is-processing::after {
    content: "Đang tách nền...";
}

.seo-tool-live-tool--sharpen .seo-tool-live-tool__preview.is-processing::after {
    content: "Đang làm nét ảnh...";
}

@media screen and (max-width: 992px) {
    .seo-tool-hero__grid,
    .seo-tool-copy-layout,
    .seo-tool-split,
    .seo-tool-live-tool,
    .seo-tool-citation,
    .seo-tool-citation__grid {
        grid-template-columns: 1fr;
    }

    .seo-tool-hero__visual {
        justify-self: center;
        max-width: 420px;
        width: 100%;
    }

    .seo-tool-steps,
    .seo-tool-diagnostics,
    .seo-tool-prompt-grid,
    .seo-tool-example-grid,
    .seo-tool-related {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 576px) {
    .seo-tool-hero {
        padding: 20px 0;
    }

    .seo-tool-hero__grid {
        border-radius: 10px;
        gap: 24px;
        min-height: 0;
        padding: 24px 18px;
    }

    .seo-tool-section {
        padding: 28px 0;
    }

    .seo-tool-hero__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .seo-tool-btn {
        min-width: 0;
        width: 100%;
    }

    .seo-tool-live-tool__form,
    .seo-tool-live-tool__result {
        padding: 14px;
    }

    .seo-tool-control-grid {
        grid-template-columns: 1fr;
    }

    .seo-tool-upload-box {
        min-height: 180px;
        padding: 18px 14px;
    }

    .seo-tool-live-tool__preview {
        min-height: 220px;
        padding: 16px 12px;
    }

    .seo-tool-live-tool__preview.has-image {
        min-height: 240px;
    }

    .seo-tool-section h2 {
        font-size: 2.2rem;
    }

    .seo-tool-hero h1 {
        font-size: 3.2rem;
    }
}
