.btn-all,
.btn-cta,
.btn-cta-outline,
.btn-cta-dark,
.btn-more,
.btn-gradient a,
.btn-gradient button,
.btn-grd,
.btn-line,
.btn-bg-text a,
.btn-background-empty a,
.btn-background-empty button,
.btn-header a,
.btn-header-top-right a,
.cta-btn,
.btn-text,
.title-link a,
.help-migration-actions a,
.menu-mobile .item-demo a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    border: none;
    outline: none;
    user-select: none;
}

/* -------------------------------------------------------------
   SIZE DEFAULTS cho .btn-all
   ------------------------------------------------------------- */
.btn-all {
    padding: 12px 25px;
    border-radius: 90px;
    font-size: 16px;
    position: relative;
    overflow: hidden;
    z-index: 0;
    transition: transform 0.22s ease, box-shadow 0.22s ease, color 0.22s ease, border-color 0.22s ease;
    max-width: 100%;
}

.btn-all.btn-all--lg {
    padding: 16px 30px;
    font-size: 18px;
}

.btn-all svg {
    margin-left: 8px;
    flex-shrink: 0;
    transition: transform 0.22s ease;
}

.btn-all:hover {
    transform: translateY(-2px);
}

.btn-all:active {
    transform: translateY(0);
    box-shadow: none !important;
}

.btn-all:hover svg {
    transform: translateX(3px);
}
.btn-all::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.22s ease;
    z-index: -1;
}

.btn-all:hover::before {
    opacity: 1;
}

.btn-all-text {
    background: var(--color-text);
    color: #fff;
}
.btn-all-text::before {
    background: var(--color-text-hover);
}
.btn-all-text:hover {
    color: #fff !important;
}

.btn-all-gradient {
    background: var(--bg-gradient-text);
    color: #fff;
}
.btn-all-gradient::before {
    background: var(--bg-highlight-light-hover);
}
.btn-all-gradient:hover {
    color: #fff !important;
}

.btn-all-outline {
    background: transparent;
    color: var(--color-text);
    border: 1.5px solid var(--color-text) !important;
}
.btn-all-outline::before {
    background: var(--color-text);
}
.btn-all-outline:hover {
    color: #fff;
    border-color: var(--color-text) !important;
}

.btn-all-outline:hover svg path {
    stroke: #fff;
}
.btn-all-white {
    background: #fff;
    color: var(--color-text);
}
.btn-all-white::before {
    background: rgba(255, 255, 255, 0.15);
}
.btn-all-white:hover {
    color: var(--color-text);
}
.btn-action,.btn-action-center, .btn-link-more, .btn-you-name {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.btn-wrap {
    display: block;
}

.btn-cta {
    height: 48px;
    padding: 0 25px;
    border-radius: 30px;
    background: linear-gradient(93.07deg, var(--color-text), var(--color-text));
    color: #fff;
    font-size: 16px;
    position: relative;
    overflow: hidden;
    z-index: 0;
    transition: color 0.25s ease;
}

.btn-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(93.07deg, var(--color-highlight-2), var(--color-highlight-light));
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: -1;
}

.btn-cta:hover::before {
    opacity: 1;
}

.btn-cta svg {
    margin-left: 8px;
    flex-shrink: 0;
}

.btn-cta.btn-cta--lg,
.btn-cta--lg {
    height: 58px;
    padding: 0 30px;
    font-size: 18px;
    border-radius: 50px;
}

.btn-cta-outline {
    height: 48px;
    padding: 0 25px;
    border-radius: 30px;
    border: 1.5px solid var(--color-text);
    background: transparent;
    color: var(--color-text);
    font-size: 16px;
    position: relative;
    overflow: hidden;
    z-index: 0;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.btn-cta-outline::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg-highlight-light);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: -1;
}

.btn-cta-outline:hover {
    color: #fff;
    border-color: var(--bg-hover-main);
}

.btn-cta-outline:hover::before {
    opacity: 1;
}

.btn-cta-outline.btn-cta--lg {
    height: 58px;
    padding: 0 30px;
    font-size: 18px;
    border-radius: 50px;
}

.btn-cta-dark {
    height: 48px;
    padding: 0 30px;
    border-radius: 50px;
    background: #053660;
    color: #fff;
    font-size: 16px;
    transition: background 0.35s ease-in-out, color 0.35s ease-in-out;
}

.btn-cta-dark:hover {
    background: #0c273e;
    color: #fff;
}

.btn-cta-dark.btn-cta--lg {
    height: 58px;
    font-size: 18px;
}

.btn-more {
    height: 48px;
    padding: 0 25px;
    border-radius: 30px;
    background: linear-gradient(93.07deg, var(--color-text), var(--color-text));
    color: #fff;
    font-size: 16px;
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.btn-more::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(93.07deg, var(--color-highlight-2), var(--color-highlight-light));
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: -1;
}

.btn-more:hover::before {
    opacity: 1;
}

.btn-more svg {
    margin-left: 8px;
    flex-shrink: 0;
}

.btn-grd {
    height: 58px;
    padding: 0 25px;
    border-radius: 30px;
    border: 1px solid #0b71cf;
    background: var(--bg-highlight-light);
    color: #fff;
    font-size: 18px;
    font-weight: 500;
}

.btn-grd:hover {
    background: var(--bg-highlight-light-hover);
    color: #fff;
}

/* Legacy .btn-line mapped to the .btn-cta-outline--lg visual style. */
.btn-line {
    height: 58px;
    padding: 0 25px;
    border-radius: 30px;
    border: 1px solid var(--color-text);
    background: transparent;
    color: var(--color-text);
    font-size: 18px;
    transition: background 0.5s, color 0.5s;
}

.btn-line:hover {
    background: var(--color-text) !important;
    color: #fff;
}

/* Legacy .btn-background-empty mapped to the .btn-cta-outline--lg visual style. */
.btn-background-empty a,
.btn-background-empty button {
    height: 58px;
    padding: 0 30px;
    border-radius: 50px;
    border: 1.5px solid var(--color-text);
    background: transparent;
    color: var(--color-text);
    font-size: 18px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    z-index: 0;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.btn-background-empty a::before,
.btn-background-empty button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg-highlight-light);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: -1;
}

.btn-background-empty a:hover,
.btn-background-empty button:hover {
    color: #fff;
    border-color: var(--bg-hover-main);
}

.btn-background-empty a:hover::before,
.btn-background-empty button:hover::before {
    opacity: 1;
}

/* --- .btn--black (cũ) → alias .btn-all + .btn-all-text --- */
.btn--black {
    padding: 12px 25px;
    border-radius: 30px;
    background: var(--color-text);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
    z-index: 0;
    transition: transform 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
}

.btn--black::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--color-text-hover);
    opacity: 0;
    transition: opacity 0.22s ease;
    z-index: -1;
}

.btn--black:hover {
    color: #fff;
    transform: translateY(-2px);
}

.btn--black:hover::before {
    opacity: 1;
}

.btn-action-center {
    justify-content: center;
}
/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 575.98px) {
    .btn-cta,
    .btn-more {
        height: 40px;
        padding: 0 20px;
        font-size: 16px;
    }

    .btn-cta.btn-cta--lg,
    .btn-cta--lg,
    .btn-gradient a,
    .btn-gradient button,
    .btn-grd,
    .btn-line,
    .btn-background-empty a,
    .btn-background-empty button,
    .btn-bg-text a {
        height: 48px;
        font-size: 16px;
    }
    .btn-all.btn-all--lg {
        font-size: 16px;
    }
}
