/* Trang giới thiệu CTV (ModuleAffiliate account/index.phtml) */

/* Trang giới thiệu CTV: header + hero */
.ctv-lp {
    --ctv-ink: #12132A;
    --ctv-text: #5C5D77;
    --ctv-text-2: #3E3F5C;
    --ctv-muted: #8C8DA6;
    --ctv-purple: #5B2EE5;
    --ctv-purple-dark: #3F1CB8;
    --ctv-yellow: #FFD84D;
    --ctv-gutter: clamp(16px, 4vw, 32px);
    width: 100%;
    min-height: 100dvh;
    background: #FBFAFE;
    font-family: "Be Vietnam Pro", system-ui, sans-serif;
    font-weight: 400;
    color: var(--ctv-ink);
    overflow-x: hidden;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

.ctv-lp *,
.ctv-lp *::before,
.ctv-lp *::after {
    box-sizing: border-box;
}

.ctv-lp p,
.ctv-lp span {
    margin: 0;
    font-size: inherit;
    line-height: inherit;
}

/* Bỏ span { font-weight: 500 } của CSS modal dùng chung; class nào đặt độ đậm riêng vẫn thắng */
.ctv-lp :where(span) {
    font-weight: inherit;
    align-content: normal;
}

.ctv-lp a {
    text-decoration: none;
}

.ctv-lp button {
    font-family: inherit;
    cursor: pointer;
}

.ctv-lp-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--ctv-gutter);
}

.ctv-lp-topbar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 9px 20px;
    background: var(--ctv-purple);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
}

.ctv-lp-topbar-link {
    padding: 0;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ctv-lp-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(251, 250, 254, .92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(18, 19, 42, .07);
}

.ctv-lp-header .ctv-lp-container {
    display: flex;
    align-items: center;
    gap: clamp(8px, 2.5vw, 28px);
    padding-top: 14px;
    padding-bottom: 14px;
}

.ctv-lp-brand {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--ctv-ink);
}

.ctv-lp-brand-mark {
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--ctv-purple);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px !important;
    font-weight: 800;
}

.ctv-lp-brand-name {
    font-size: 17px !important;
    font-weight: 800;
    letter-spacing: -.02em;
    white-space: nowrap;
}

.ctv-lp-login {
    flex: none;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--ctv-ink);
    font-size: clamp(13px, 1.6vw, 14px);
    font-weight: 600;
    white-space: nowrap;
}

.ctv-lp-login:hover {
    color: var(--ctv-purple-dark);
}

/* Logo + nút giống header trang chủ 1Page */
.ctv-lp-brand-logo {
    display: block;
    width: 148px;
    height: auto;
    aspect-ratio: 7325 / 2081;
    object-fit: contain;
}

.ctv-lp-register {
    flex: none;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 32px;
    border: .8px solid rgba(255, 255, 255, .08);
    border-radius: 100px;
    background: linear-gradient(178.8deg, rgb(1, 1, 1) 0%, rgb(63, 63, 63) 100%);
    box-shadow: inset 0 17.5px 35px 0 rgba(255, 255, 255, .08), inset 0 -4px 6px 0 rgba(255, 255, 255, .03);
    color: #fff;
    font-family: "Questrial", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    white-space: nowrap;
}

.ctv-lp-register-icon {
    position: relative;
    flex: none;
    width: 18px;
    height: 18px;
    overflow: hidden;
}

.ctv-lp-register-icon svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 18px;
    height: 18px;
}

/* Hover: mũi tên cũ bay ra góc trên-phải, mũi tên mới bay vào từ góc dưới-trái */
.ctv-lp-register-icon .is-next {
    transform: translate(-21px, 21px);
}

.ctv-lp-register:hover .ctv-lp-register-icon .is-current {
    animation: ctvLpArrowOut .3s cubic-bezier(.25, .8, .3, 1) both;
}

.ctv-lp-register:hover .ctv-lp-register-icon .is-next {
    animation: ctvLpArrowIn .3s cubic-bezier(.25, .8, .3, 1) both;
}

@keyframes ctvLpArrowOut {
    from { transform: translate(0, 0); }
    to { transform: translate(21px, -21px); }
}

@keyframes ctvLpArrowIn {
    from { transform: translate(-21px, 21px); }
    to { transform: translate(0, 0); }
}

@font-face {
    font-family: "Questrial";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/1page-ai/QdVUSTchPBm7nuUeVf70sSFlq20.woff2") format("woff2");
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
    font-family: "Questrial";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/1page-ai/QdVUSTchPBm7nuUeVf70sCFlq20.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Questrial";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/1page-ai/QdVUSTchPBm7nuUeVf70viFl.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.ctv-lp-hero {
    position: relative;
}

/* Nền chấm mờ dần xuống dưới */
.ctv-lp-hero-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(91, 46, 229, .14) 1.2px, transparent 1.4px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(180deg, #000 35%, transparent 95%);
    mask-image: linear-gradient(180deg, #000 35%, transparent 95%);
    pointer-events: none;
}

.ctv-lp-hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
    align-items: center;
    gap: clamp(28px, 5vw, 56px);
    padding: clamp(36px, 6vw, 64px) 0 clamp(28px, 4vw, 48px);
}

.ctv-lp-hero-text {
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-width: 0;
}

.ctv-lp-badge {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    padding: 0 14px 0 6px;
    border: 1.5px solid var(--ctv-ink);
    border-radius: 99px;
    background: #fff;
    font-size: 13px !important;
    font-weight: 700;
    transform: rotate(-2deg);
}

.ctv-lp-badge-icon {
    width: 22px;
    height: 22px;
    border-radius: 99px;
    background: var(--ctv-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px !important;
    font-weight: 800;
}

.ctv-lp-title {
    margin: 0;
    font-size: clamp(34px, 5.6vw, 66px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -.045em;
    text-wrap: balance;
}

.ctv-lp-mark {
    background: linear-gradient(transparent 60%, var(--ctv-yellow) 60%);
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.ctv-lp-lead {
    max-width: 540px;
    font-size: 17px !important;
    line-height: 1.7 !important;
    color: var(--ctv-text);
    text-wrap: pretty;
}

.ctv-lp-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.ctv-lp-btn {
    height: 56px;
    border-radius: 99px;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
    transition: transform .15s ease, box-shadow .15s ease;
}

.ctv-lp-btn-primary {
    padding: 0 26px;
    border: none;
    background: var(--ctv-purple);
    color: #fff;
    box-shadow: 0 6px 0 var(--ctv-purple-dark);
}

.ctv-lp-btn-primary:hover {
    color: #fff;
    transform: translateY(3px);
    box-shadow: 0 3px 0 var(--ctv-purple-dark);
}

.ctv-lp-btn-outline {
    padding: 0 24px;
    border: 1.5px solid var(--ctv-ink);
    background: #fff;
    color: var(--ctv-ink);
}

.ctv-lp-btn-outline:hover {
    color: var(--ctv-ink);
    background: #F4F3FA;
}

.ctv-lp-proof {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.ctv-lp-avatars {
    display: flex;
    padding-left: 12px;
}

.ctv-lp-avatar {
    flex: none;
    width: 44px;
    height: 44px;
    margin-left: -12px;
    border: 3px solid #FBFAFE;
    border-radius: 99px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px !important;
    font-weight: 800;
}

.ctv-lp-avatar.is-purple { background: #EBE5FF; color: #5B2EE5; }
.ctv-lp-avatar.is-orange { background: #FFE9D6; color: #D9701F; }
.ctv-lp-avatar.is-green { background: #E7FAF2; color: #00A37A; }
.ctv-lp-avatar.is-dark { background: #12132A; color: #fff; }

.ctv-lp-proof-text {
    font-size: 13.5px !important;
    line-height: 1.45 !important;
    color: var(--ctv-text-2);
}

.ctv-lp-proof-text strong {
    color: var(--ctv-ink);
}

/* Cụm điện thoại + nhãn bên phải */
.ctv-lp-visual {
    position: relative;
    height: clamp(500px, 50vw, 580px);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.ctv-lp-visual-back {
    position: absolute;
    border-radius: 44px;
}

.ctv-lp-visual-back.is-lavender {
    inset: 7% 10%;
    background: #EBE5FF;
    transform: rotate(-4deg);
}

.ctv-lp-visual-back.is-peach {
    inset: 12% 14%;
    background: #FFE9D6;
    transform: rotate(5deg);
}

.ctv-lp-phone {
    position: relative;
    z-index: 2;
    width: clamp(230px, 23vw, 264px);
    height: clamp(470px, 47vw, 540px);
    padding: 10px;
    border-radius: 42px;
    background: var(--ctv-ink);
    box-shadow: 0 30px 70px rgba(18, 19, 42, .28);
}

.ctv-lp-phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 33px;
    overflow: hidden;
    background: #F4F3FA;
}

.ctv-lp-phone-screen img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.ctv-lp-phone-notch {
    position: absolute;
    top: 18px;
    left: 50%;
    z-index: 3;
    width: 78px;
    height: 20px;
    border-radius: 99px;
    background: var(--ctv-ink);
    transform: translateX(-50%);
    pointer-events: none;
}

/* 3 thông báo hoa hồng hiện lần lượt, mỗi cái lệch 3s trong vòng 9s */
.ctv-lp-toast {
    position: absolute;
    z-index: 5;
    width: min(240px, 74%);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 13px;
    border: 1px solid rgba(18, 19, 42, .06);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(18, 19, 42, .16);
    pointer-events: none;
    animation: ctvLpToast 9s infinite both;
}

.ctv-lp-toast.is-1 { top: 13%; left: 0; animation-delay: 0s; }
.ctv-lp-toast.is-2 { top: 45%; right: 0; animation-delay: 3s; }
.ctv-lp-toast.is-3 { bottom: 16%; left: 2%; animation-delay: 6s; }

.ctv-lp-toast-icon {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ctv-lp-toast.is-1 .ctv-lp-toast-icon { background: #E7FAF2; color: #00A37A; }
.ctv-lp-toast.is-2 .ctv-lp-toast-icon { background: #FFF1E3; color: #D9701F; }
.ctv-lp-toast.is-3 .ctv-lp-toast-icon { background: #EBE5FF; color: #5B2EE5; }

.ctv-lp-toast-body {
    min-width: 0;
}

.ctv-lp-toast-title {
    font-size: 14px !important;
    line-height: 1.3 !important;
    font-weight: 800;
    color: var(--ctv-ink);
    white-space: nowrap;
}

.ctv-lp-toast-desc {
    font-size: 11.5px !important;
    line-height: 1.3 !important;
    color: var(--ctv-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@keyframes ctvLpToast {
    0% { opacity: 0; transform: translateY(18px) scale(.96); }
    6% { opacity: 1; transform: none; }
    30% { opacity: 1; transform: none; }
    37% { opacity: 0; transform: translateY(-14px); }
    100% { opacity: 0; transform: translateY(-14px); }
}

@media (prefers-reduced-motion: reduce) {
    .ctv-lp-toast {
        animation: none;
        opacity: 1;
    }

    .ctv-lp-toast.is-2,
    .ctv-lp-toast.is-3 {
        display: none;
    }
}

.ctv-lp-sticker-rate {
    position: absolute;
    top: 3%;
    right: 3%;
    z-index: 4;
    padding: 11px 16px;
    border-radius: 16px;
    background: var(--ctv-yellow);
    color: var(--ctv-ink);
    box-shadow: 0 6px 0 rgba(18, 19, 42, .14);
    line-height: 1.15;
    transform: rotate(8deg);
    pointer-events: none;
}

.ctv-lp-sticker-rate-big {
    font-size: 19px !important;
    line-height: 1.15 !important;
    font-weight: 800;
    letter-spacing: -.02em;
}

.ctv-lp-sticker-rate-small {
    font-size: 11.5px !important;
    line-height: 1.15 !important;
    font-weight: 700;
}

.ctv-lp-sticker-free {
    position: absolute;
    bottom: 5%;
    right: 4%;
    z-index: 4;
    padding: 10px 16px;
    border-radius: 99px;
    background: var(--ctv-ink);
    color: #fff;
    font-size: 13.5px !important;
    font-weight: 800;
    white-space: nowrap;
    transform: rotate(-7deg);
    pointer-events: none;
}

/* Tablet + mobile: khung điện thoại rộng như bản Mobile (~330px) để 2 tấm nền + toast ôm sát điện thoại */
@media (max-width: 920px) {
    .ctv-lp-visual {
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
    }
}

/* Tablet + mobile theo bản thiết kế Mobile */
@media (max-width: 920px) {
    .ctv-lp-hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Chữ + nút chảy liền 1 dòng, lỡ xuống dòng thì sát nhau (không cộng gap flex) */
    .ctv-lp-topbar {
        display: block;
        padding: 8px 14px;
        font-size: 12px;
        line-height: 1.5;
    }

    .ctv-lp-topbar-link {
        margin-left: 4px;
        vertical-align: baseline;
    }

    .ctv-lp-topbar-link {
        font-size: 12px;
    }

    .ctv-lp-topbar-extra {
        display: none;
    }

    .ctv-lp-header .ctv-lp-container {
        gap: 10px;
        padding: 11px 16px;
    }

    .ctv-lp-brand-logo {
        width: 107px;
    }

    .ctv-lp-login {
        font-size: 13px;
    }

    .ctv-lp-register {
        gap: 4px;
        padding: 8px 14px;
        font-size: 13px;
    }

    .ctv-lp-register-icon,
    .ctv-lp-register-icon svg {
        width: 15px;
        height: 15px;
    }

    .ctv-lp-hero .ctv-lp-container {
        padding: 0 18px;
    }

    .ctv-lp-hero-dots {
        background-size: 20px 20px;
    }

    .ctv-lp-hero-grid {
        gap: 18px;
        padding: 28px 0 8px;
    }

    .ctv-lp-hero-text {
        gap: 18px;
    }

    .ctv-lp-badge {
        height: 32px;
        padding: 0 13px 0 5px;
        font-size: 12.5px !important;
    }

    .ctv-lp-title {
        font-size: 35px;
        line-height: 1.08;
        letter-spacing: -.04em;
    }

    .ctv-lp-lead {
        font-size: 15px !important;
        line-height: 1.65 !important;
    }

    .ctv-lp-hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .ctv-lp-btn {
        height: 52px;
        padding: 0 22px;
        font-size: 15.5px;
    }

    .ctv-lp-btn-primary {
        box-shadow: 0 5px 0 var(--ctv-purple-dark);
    }

    .ctv-lp-proof {
        flex-wrap: nowrap;
        gap: 12px;
    }

    .ctv-lp-avatars {
        padding-left: 11px;
    }

    .ctv-lp-avatar {
        width: 40px;
        height: 40px;
        margin-left: -11px;
        font-size: 12px !important;
    }

    .ctv-lp-proof-text {
        font-size: 13px !important;
    }

    .ctv-lp-proof-text br {
        display: none;
    }

    .ctv-lp-visual {
        height: 470px;
        margin-top: 6px;
    }

    .ctv-lp-visual-back {
        border-radius: 40px;
    }

    .ctv-lp-visual-back.is-lavender {
        inset: 6% 9%;
    }

    .ctv-lp-visual-back.is-peach {
        inset: 11% 13%;
    }

    .ctv-lp-phone {
        width: 206px;
        height: 424px;
        padding: 8px;
        border-radius: 36px;
        box-shadow: 0 24px 56px rgba(18, 19, 42, .28);
    }

    .ctv-lp-phone-screen {
        border-radius: 29px;
    }

    .ctv-lp-phone-notch {
        top: 15px;
        width: 62px;
        height: 17px;
    }

    .ctv-lp-sticker-rate {
        top: 2%;
        right: 0;
        padding: 9px 13px;
        border-radius: 14px;
        box-shadow: 0 5px 0 rgba(18, 19, 42, .14);
    }

    .ctv-lp-sticker-rate-big {
        font-size: 16px !important;
    }

    .ctv-lp-sticker-rate-small {
        font-size: 10.5px !important;
    }

    .ctv-lp-sticker-free {
        bottom: 3%;
        right: 2%;
        padding: 8px 13px;
        font-size: 12.5px !important;
    }
}

/* Các block sau hero */
.ctv-lp-h2 {
    margin: 0;
    font-size: clamp(28px, 4.2vw, 38px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.035em;
    color: var(--ctv-ink);
}

.ctv-lp-h3 {
    margin: 0;
    font-size: clamp(24px, 3.2vw, 30px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.03em;
    color: var(--ctv-ink);
}

.ctv-lp-sub {
    margin-top: 6px;
    font-size: 14.5px !important;
    line-height: 1.6 !important;
    color: var(--ctv-text);
    text-wrap: pretty;
}

.ctv-lp-tag {
    position: absolute;
    z-index: 3;
    background: var(--ctv-yellow);
    color: var(--ctv-ink);
    font-weight: 800;
    white-space: nowrap;
    pointer-events: none;
}

.ctv-lp-sec {
    scroll-margin-top: 80px;
}

/* Hiện dần khi cuộn tới; JS chỉ ẩn những block nằm dưới màn hình đầu */
.ctv-lp-sec.is-reveal-wait {
    opacity: 0;
    transform: translateY(28px);
}

.ctv-lp-sec.is-reveal-on {
    transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}

/* Số liệu */
.ctv-lp-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
    gap: clamp(16px, 2.6vw, 28px);
    padding: clamp(22px, 3.5vw, 30px) clamp(20px, 3.5vw, 36px);
    border: 1px solid rgba(91, 46, 229, .12);
    border-radius: 26px;
    background: #EBE5FF;
}

.ctv-lp-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.ctv-lp-stat-value {
    font-size: clamp(30px, 3.6vw, 40px) !important;
    line-height: 1.2 !important;
    font-weight: 800;
    letter-spacing: -.04em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.ctv-lp-stat-label {
    font-size: 13.5px !important;
    line-height: 1.5 !important;
    color: var(--ctv-text);
    text-wrap: pretty;
}

/* Quyền lợi */
.ctv-lp-perks-sec {
    padding: clamp(44px, 6vw, 64px) 0 24px;
}

.ctv-lp-perks-sec .ctv-lp-h2 {
    margin-bottom: 28px;
}

.ctv-lp-perks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 16px;
}

.ctv-lp-perk {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 22px;
    border: 1px solid rgba(18, 19, 42, .08);
    border-radius: 22px;
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.ctv-lp-perk:hover {
    transform: translateY(-4px);
    border-color: rgba(91, 46, 229, .3);
    box-shadow: 0 14px 30px rgba(91, 46, 229, .12);
}

.ctv-lp-perk-icon {
    flex: none;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-6deg);
}

.ctv-lp-perk-icon svg {
    width: 22px;
    height: 22px;
}

.ctv-lp-perk-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.ctv-lp-perk-title {
    font-size: 17px !important;
    line-height: 1.3 !important;
    font-weight: 700;
    letter-spacing: -.01em;
}

.ctv-lp-perk-desc {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: var(--ctv-text);
    text-wrap: pretty;
}

.is-tone-purple { background: #EBE5FF; color: #5B2EE5; }
.is-tone-orange { background: #FFF1E3; color: #D9701F; }
.is-tone-blue { background: #EAF3FF; color: #2F6FDB; }
.is-tone-green { background: #E7FAF2; color: #00A37A; }

/* Máy tính thu nhập */
.ctv-lp-calc-sec {
    padding: 40px 0;
}

.ctv-lp-calc-wrap {
    position: relative;
}

.ctv-lp-calc-wrap > .ctv-lp-tag {
    top: -16px;
    right: clamp(14px, 3vw, 28px);
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 13px !important;
    box-shadow: 0 5px 0 rgba(18, 19, 42, .14);
    transform: rotate(6deg);
}

.ctv-lp-calc {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
    border: 1px solid rgba(18, 19, 42, .08);
    border-radius: 26px;
    background: #fff;
    overflow: hidden;
}

.ctv-lp-calc-input {
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding: clamp(22px, 4vw, 36px);
}

.ctv-lp-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ctv-lp-field-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.ctv-lp-field-label {
    font-size: 14px !important;
    line-height: 1.4 !important;
    font-weight: 600;
    color: var(--ctv-text-2);
}

.ctv-lp-field-value {
    font-size: 22px !important;
    line-height: 1.2 !important;
    font-weight: 800;
    color: var(--ctv-purple);
    font-variant-numeric: tabular-nums;
}

.ctv-lp-range {
    width: 100%;
    margin: 0;
    accent-color: var(--ctv-purple);
}

.ctv-lp-calc-tiers {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.ctv-lp-calc-tier {
    height: 54px;
    border: 1px solid rgba(18, 19, 42, .12);
    border-radius: 13px;
    background: #fff;
    color: var(--ctv-text-2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.ctv-lp-calc-tier-name {
    font-size: 13.5px !important;
    line-height: 1.3 !important;
    font-weight: 700;
    white-space: nowrap;
}

.ctv-lp-calc-tier-rate {
    font-size: 11.5px !important;
    line-height: 1.3 !important;
    font-weight: 600;
    color: var(--ctv-muted);
}

.ctv-lp-calc-tier.is-active {
    border-color: var(--ctv-purple);
    background: var(--ctv-purple);
    color: #fff;
}

.ctv-lp-calc-tier.is-active .ctv-lp-calc-tier-rate {
    color: rgba(255, 255, 255, .75);
}

.ctv-lp-calc-result {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    padding: clamp(22px, 4vw, 36px);
    border-left: 1px solid rgba(91, 46, 229, .12);
    background: #F2EFFE;
    overflow: hidden;
}

.ctv-lp-calc-result > * {
    position: relative;
}

.ctv-lp-calc-result > .ctv-lp-calc-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(91, 46, 229, .16) 1.2px, transparent 1.4px);
    background-size: 20px 20px;
    -webkit-mask-image: linear-gradient(200deg, #000, transparent 70%);
    mask-image: linear-gradient(200deg, #000, transparent 70%);
    pointer-events: none;
}

.ctv-lp-calc-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ctv-lp-pill-green {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 7px;
    height: 28px;
    padding: 0 12px 0 9px;
    border: 1px solid rgba(0, 163, 122, .25);
    border-radius: 99px;
    background: #E7FAF2;
    color: #00805F;
    font-size: 12px !important;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.ctv-lp-pill-green-dot {
    width: 8px;
    height: 8px;
    border-radius: 99px;
    background: #00A37A;
}

.ctv-lp-calc-monthly {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.ctv-lp-calc-monthly-value {
    font-size: clamp(40px, 5vw, 62px) !important;
    line-height: 1 !important;
    font-weight: 800;
    letter-spacing: -.045em;
    color: var(--ctv-purple);
    font-variant-numeric: tabular-nums;
}

.ctv-lp-calc-monthly-unit {
    font-size: 17px !important;
    font-weight: 700;
    color: var(--ctv-text);
}

.ctv-lp-pill-yellow {
    align-self: flex-start;
    display: flex;
    align-items: center;
    height: 30px;
    padding: 0 12px;
    border: 1px solid rgba(224, 168, 0, .35);
    border-radius: 99px;
    background: #FFF7DB;
    color: #8A6400;
    font-size: 13px !important;
    font-weight: 800;
    white-space: nowrap;
}

.ctv-lp-calc-split {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    border: 1px solid rgba(91, 46, 229, .12);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(91, 46, 229, .08);
}

.ctv-lp-calc-bar {
    display: flex;
    height: 10px;
    border-radius: 99px;
    background: #F0EEF9;
    overflow: hidden;
}

.ctv-lp-calc-bar-one {
    height: 100%;
    background: var(--ctv-yellow);
    transition: width .25s ease;
}

.ctv-lp-calc-bar-multi {
    flex: 1;
    height: 100%;
    background: #FF8A3D;
}

.ctv-lp-calc-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ctv-lp-calc-swatch {
    flex: none;
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.ctv-lp-calc-row-text {
    flex: 1;
    min-width: 0;
}

.ctv-lp-calc-row-title {
    font-size: 13.5px !important;
    line-height: 1.4 !important;
    font-weight: 700;
}

.ctv-lp-calc-row-desc {
    font-size: 12px !important;
    line-height: 1.4 !important;
    color: var(--ctv-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ctv-lp-calc-row-sum {
    flex: none;
    font-size: 14.5px !important;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.ctv-lp-calc-divider {
    height: 1px;
    background: rgba(18, 19, 42, .07);
}

.ctv-lp-calc-daily {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 15px;
    border-radius: 16px;
    background: var(--ctv-yellow);
    box-shadow: 0 5px 0 rgba(18, 19, 42, .16);
    transform: rotate(-1.2deg);
}

.ctv-lp-calc-daily-icon {
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: var(--ctv-ink);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ctv-lp-calc-daily-text {
    font-size: 14px !important;
    line-height: 1.5 !important;
    font-weight: 700;
    text-wrap: pretty;
}

.ctv-lp-calc-foot {
    font-size: 12px !important;
    line-height: 1.55 !important;
    color: var(--ctv-text);
    text-wrap: pretty;
}

/* 3 bước */
.ctv-lp-steps-sec {
    padding: 48px 0 40px;
}

.ctv-lp-steps-sec .ctv-lp-h2 {
    margin-bottom: 36px;
}

.ctv-lp-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 28px;
}

.ctv-lp-step {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ctv-lp-step-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ctv-lp-step-num {
    flex: none;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px !important;
    font-weight: 800;
    box-shadow: 0 5px 0 rgba(18, 19, 42, .12);
    transform: rotate(-6deg);
    transition: transform .2s ease;
}

.ctv-lp-step-num:hover {
    transform: rotate(6deg) scale(1.08);
}

.ctv-lp-step-num.is-tone-yellow {
    background: var(--ctv-yellow);
    color: var(--ctv-ink);
}

.ctv-lp-step-line {
    flex: 1;
    height: 0;
    border-top: 2px dashed rgba(91, 46, 229, .28);
}

.ctv-lp-step:last-child .ctv-lp-step-line {
    opacity: 0;
}

.ctv-lp-step-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ctv-lp-step-title {
    font-size: 19px !important;
    line-height: 1.3 !important;
    font-weight: 700;
    letter-spacing: -.01em;
}

.ctv-lp-step-desc {
    max-width: 330px;
    font-size: 14.5px !important;
    line-height: 1.65 !important;
    color: var(--ctv-text);
    text-wrap: pretty;
}

/* Hạng */
.ctv-lp-tiers-sec {
    padding: 56px 0 40px;
}

.ctv-lp-tiers-head {
    margin-bottom: 32px;
}

.ctv-lp-tiers-head .ctv-lp-sub {
    max-width: 620px;
    margin-top: 8px;
    font-size: 15px !important;
}

.ctv-lp-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 16px;
}

.ctv-lp-tier {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 230px;
    padding: 24px;
    border-radius: 22px;
    background: var(--tier-bg);
    transition: transform .2s ease;
}

.ctv-lp-tier:hover {
    transform: translateY(-4px) rotate(-.6deg);
}

.ctv-lp-tier-hot {
    position: absolute;
    top: -12px;
    right: 18px;
    padding: 7px 12px;
    border-radius: 99px;
    background: var(--ctv-ink);
    color: #fff;
    font-size: 12px !important;
    font-weight: 800;
    white-space: nowrap;
    transform: rotate(6deg);
}

.ctv-lp-tier-ini {
    flex: none;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--tier-fg);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px !important;
    font-weight: 800;
    box-shadow: 0 5px 0 rgba(18, 19, 42, .14);
    transform: rotate(-6deg);
}

.ctv-lp-tier-text {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ctv-lp-tier-name {
    font-size: 20px !important;
    line-height: 1.3 !important;
    font-weight: 800;
    letter-spacing: -.02em;
}

.ctv-lp-tier-need {
    font-size: 13.5px !important;
    line-height: 1.55 !important;
    color: var(--ctv-text);
}

.ctv-lp-tier-rate {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: auto;
}

.ctv-lp-tier-rate-value {
    font-size: clamp(26px, 4vw, 36px) !important;
    line-height: 1.1 !important;
    font-weight: 800;
    letter-spacing: -.04em;
    color: var(--tier-fg);
}

.ctv-lp-tier-rate-label {
    font-size: 13px !important;
    font-weight: 600;
    color: var(--ctv-text);
}

/* Thư viện nội dung + lịch chi trả */
.ctv-lp-duo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
    align-items: stretch;
    gap: 20px;
    padding: 56px 0 40px;
}

.ctv-lp-box {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: clamp(20px, 3.5vw, 32px);
    border-radius: 26px;
    scroll-margin-top: 80px;
}

.ctv-lp-box .ctv-lp-sub {
    max-width: 460px;
    color: var(--ctv-text-2);
}

.ctv-lp-box.is-media {
    background: #EAF3FF;
}

.ctv-lp-box.is-payout {
    gap: 18px;
    background: #E7FAF2;
}

.ctv-lp-box.is-media > .ctv-lp-tag {
    top: -13px;
    right: 22px;
    padding: 7px 12px;
    border-radius: 10px;
    font-size: 12px !important;
    box-shadow: 0 4px 0 rgba(18, 19, 42, .12);
    transform: rotate(5deg);
}

.ctv-lp-box-list {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: 1fr;
    gap: 12px;
}

.ctv-lp-media-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 16px;
    background: #fff;
}

.ctv-lp-media-icon {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: #EAF3FF;
    color: #2F6FDB;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ctv-lp-media-title {
    font-size: 14.5px !important;
    line-height: 1.4 !important;
    font-weight: 700;
}

.ctv-lp-media-desc {
    font-size: 12.5px !important;
    line-height: 1.4 !important;
    color: var(--ctv-text);
}

.ctv-lp-payout-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 9px;
    padding: 16px;
    border-radius: 16px;
    background: #fff;
}

.ctv-lp-payout-key {
    align-self: flex-start;
    display: flex;
    align-items: center;
    height: 28px;
    padding: 0 11px;
    border-radius: 99px;
    background: #E7FAF2;
    color: #00805F;
    font-size: 12.5px !important;
    font-weight: 800;
    white-space: nowrap;
}

.ctv-lp-payout-title {
    font-size: 14.5px !important;
    line-height: 1.4 !important;
    font-weight: 700;
    text-wrap: balance;
}

.ctv-lp-payout-desc {
    margin-top: 2px;
    font-size: 13px !important;
    line-height: 1.55 !important;
    color: var(--ctv-text);
    text-wrap: pretty;
}

/* Video CTV kể: cuộn ngang, không chặn cuộn dọc trang */
.ctv-lp-stories-sec {
    padding: 48px 0 40px;
}

.ctv-lp-stories-sec .ctv-lp-sub {
    margin-bottom: 28px;
    font-size: 15px !important;
}

.ctv-lp-stories {
    display: flex;
    gap: 16px;
    margin: 0 calc(-1 * var(--ctv-gutter));
    padding: 6px var(--ctv-gutter) 10px;
    scroll-padding-inline: var(--ctv-gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    touch-action: pan-x pan-y;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

/* Ẩn thanh cuộn, vẫn vuốt/kéo ngang được */
.ctv-lp-stories::-webkit-scrollbar {
    display: none;
}

.ctv-lp-story {
    flex: 0 0 min(340px, 84%);
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 12px;
    border-radius: 24px;
    background: var(--story-bg);
    scroll-snap-align: start;
    transition: transform .2s ease;
}

.ctv-lp-story:hover {
    transform: translateY(-4px);
}

.ctv-lp-story-cover {
    position: relative;
    width: 100%;
    height: clamp(300px, 32vw, 380px);
    border-radius: 18px;
    background: rgba(255, 255, 255, .7);
    overflow: hidden;
}

.ctv-lp-story-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ctv-lp-story-play {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 50px;
    height: 50px;
    border-radius: 99px;
    background: rgba(18, 19, 42, .82);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
    pointer-events: none;
}

.ctv-lp-story-cover > .ctv-lp-tag {
    top: 12px;
    left: 12px;
    padding: 7px 12px;
    border-radius: 10px;
    font-size: 13px !important;
    box-shadow: 0 4px 0 rgba(18, 19, 42, .16);
    transform: rotate(-5deg);
}

.ctv-lp-story-len {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 9px;
    border-radius: 99px;
    background: rgba(18, 19, 42, .72);
    color: #fff;
    font-size: 11.5px !important;
    font-weight: 700;
    pointer-events: none;
}

.ctv-lp-story-quote {
    padding: 0 10px;
    font-size: 15px !important;
    line-height: 1.65 !important;
    text-wrap: pretty;
}

.ctv-lp-story-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding: 0 10px 10px;
}

.ctv-lp-story-ini {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 99px;
    background: #fff;
    color: var(--story-fg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px !important;
    font-weight: 800;
}

.ctv-lp-story-name {
    font-size: 14.5px !important;
    line-height: 1.4 !important;
    font-weight: 700;
}

.ctv-lp-story-role {
    font-size: 12.5px !important;
    line-height: 1.4 !important;
    color: var(--ctv-text);
}

/* Desktop: 3 video chia đều bề ngang, không cuộn */
@media (min-width: 921px) {
    .ctv-lp-stories {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
        margin: 0;
        padding: 6px 0 10px;
        overflow: visible;
        scroll-snap-type: none;
    }

    .ctv-lp-story {
        flex: none;
    }
}

/* Điều khoản + FAQ */
.ctv-lp-faq-sec {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
    align-items: start;
    gap: clamp(28px, 5vw, 56px);
    padding: 56px 0 40px;
}

.ctv-lp-faq-sec .ctv-lp-h2 {
    margin-bottom: 26px;
}

.ctv-lp-terms {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ctv-lp-term {
    display: flex;
    gap: 14px;
}

.ctv-lp-term-num {
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 99px;
    background: #F0EEF9;
    color: var(--ctv-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px !important;
    font-weight: 800;
}

.ctv-lp-term-title {
    font-size: 15px !important;
    line-height: 1.4 !important;
    font-weight: 700;
}

.ctv-lp-term-desc {
    margin-top: 3px;
    font-size: 13.5px !important;
    line-height: 1.6 !important;
    color: var(--ctv-text);
    text-wrap: pretty;
}

.ctv-lp-faqs {
    border-top: 1px solid rgba(18, 19, 42, .12);
}

.ctv-lp-faq {
    border-bottom: 1px solid rgba(18, 19, 42, .12);
}

.ctv-lp-faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 0;
    border: none;
    background: transparent;
    color: var(--ctv-ink);
    text-align: left;
}

.ctv-lp-faq-q-text {
    flex: 1;
    min-width: 0;
    font-size: 15px !important;
    line-height: 1.45 !important;
    font-weight: 600;
}

.ctv-lp-faq-sign {
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 99px;
    background: #F0EEF9;
    color: var(--ctv-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px !important;
    line-height: 1 !important;
    font-weight: 500;
}

.ctv-lp-faq.is-open .ctv-lp-faq-sign {
    background: var(--ctv-purple);
    color: #fff;
}

.ctv-lp-faq-a {
    display: none;
    padding: 0 40px 18px 0;
    font-size: 14px !important;
    line-height: 1.65 !important;
    color: var(--ctv-text);
    text-wrap: pretty;
}

.ctv-lp-faq.is-open .ctv-lp-faq-a {
    display: block;
}

/* CTA cuối trang */
.ctv-lp-cta-sec {
    padding: 48px 0 72px;
}

.ctv-lp-cta {
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    padding: clamp(28px, 5vw, 52px) clamp(22px, 5vw, 56px);
    border-radius: 30px;
    background: var(--ctv-purple);
    color: #fff;
    overflow: hidden;
}

.ctv-lp-cta-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .16) 1.2px, transparent 1.4px);
    background-size: 22px 22px;
    pointer-events: none;
}

.ctv-lp-cta-text {
    position: relative;
    flex: 1;
    min-width: min(100%, 320px);
}

.ctv-lp-cta-tag {
    display: inline-block;
    margin-bottom: 16px;
    padding: 6px 12px;
    border-radius: 10px;
    background: var(--ctv-yellow);
    color: var(--ctv-ink);
    font-size: 13px !important;
    font-weight: 800;
    transform: rotate(-4deg);
}

.ctv-lp-cta-title {
    max-width: 520px;
    margin: 0;
    font-size: clamp(28px, 3.6vw, 46px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -.04em;
    color: #fff;
    text-wrap: balance;
}

.ctv-lp-cta-desc {
    max-width: 560px;
    margin-top: 14px;
    font-size: 16px !important;
    line-height: 1.65 !important;
    opacity: .85;
    text-wrap: pretty;
}

.ctv-lp-btn-white {
    position: relative;
    flex: none;
    height: 58px;
    padding: 0 28px;
    border: none;
    background: #fff;
    color: var(--ctv-purple);
    font-weight: 800;
    box-shadow: 0 6px 0 var(--ctv-purple-dark);
}

.ctv-lp-btn-white:hover {
    transform: translateY(3px);
    box-shadow: 0 3px 0 var(--ctv-purple-dark);
}

/* Footer */
.ctv-lp-footer {
    border-top: 1px solid rgba(18, 19, 42, .08);
    background: #F4F3FA;
}

.ctv-lp-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
    gap: 32px;
    padding-top: 44px;
    padding-bottom: 40px;
}

.ctv-lp-footer-col {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.ctv-lp-footer-brand {
    gap: 10px;
}

.ctv-lp-footer-logo {
    display: flex;
    align-items: center;
    gap: 9px;
}

.ctv-lp-footer-logo .ctv-lp-brand-mark {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    font-size: 13px !important;
}

.ctv-lp-footer-logo .ctv-lp-brand-name {
    font-size: 16px !important;
}

.ctv-lp-footer-about {
    font-size: 13px !important;
    line-height: 1.7 !important;
    color: var(--ctv-text);
}

.ctv-lp-footer-about a {
    color: var(--ctv-purple);
}

.ctv-lp-footer-head {
    font-size: 13.5px !important;
    line-height: 1.4 !important;
    font-weight: 700;
}

.ctv-lp-footer-link {
    align-self: flex-start;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--ctv-text);
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
}

.ctv-lp-footer-link:hover {
    color: var(--ctv-purple);
}

/* Tablet + mobile theo bản thiết kế Mobile */
@media (max-width: 920px) {
    /* Các lưới auto-fit còn đủ chỗ 2 cột ở tablet, ép 1 cột như bản Mobile */
    .ctv-lp-calc,
    .ctv-lp-duo,
    .ctv-lp-faq-sec {
        grid-template-columns: minmax(0, 1fr);
    }

    .ctv-lp-calc-result {
        border-left: none;
        border-top: 1px solid rgba(91, 46, 229, .12);
    }

    .ctv-lp-perks {
        grid-auto-rows: auto;
    }

    .ctv-lp-body.ctv-lp-container {
        padding: 0 18px;
    }

    .ctv-lp-stories {
        margin: 0 -18px;
        padding: 0 18px 6px;
        scroll-padding-inline: 18px;
        gap: 12px;
    }

    .ctv-lp-h2 {
        font-size: 27px;
        letter-spacing: -.03em;
    }

    .ctv-lp-h3 {
        font-size: 22px;
        letter-spacing: -.025em;
    }

    .ctv-lp-sub {
        font-size: 14px !important;
    }

    .ctv-lp-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 14px;
        margin-top: 10px;
        padding: 20px;
        border-radius: 22px;
    }

    .ctv-lp-stat {
        gap: 3px;
    }

    .ctv-lp-stat-value {
        font-size: 27px !important;
    }

    .ctv-lp-stat-label {
        font-size: 12px !important;
        line-height: 1.45 !important;
    }

    .ctv-lp-perks-sec {
        padding: 40px 0 14px;
    }

    .ctv-lp-perks-sec .ctv-lp-h2 {
        margin-bottom: 18px;
    }

    .ctv-lp-perks {
        gap: 10px;
    }

    .ctv-lp-perk {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
        border-radius: 18px;
    }

    .ctv-lp-perk:hover {
        transform: none;
        box-shadow: none;
    }

    .ctv-lp-perk-icon {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .ctv-lp-perk-icon svg {
        width: 18px;
        height: 18px;
    }

    .ctv-lp-perk-text {
        gap: 10px;
    }

    .ctv-lp-perk-title {
        font-size: 14.5px !important;
    }

    .ctv-lp-perk-desc {
        font-size: 12.5px !important;
        line-height: 1.55 !important;
    }

    .ctv-lp-calc-sec {
        padding: 34px 0 14px;
    }

    .ctv-lp-calc-wrap > .ctv-lp-tag {
        top: -14px;
        right: 14px;
        padding: 7px 12px;
        border-radius: 11px;
        font-size: 12.5px !important;
    }

    .ctv-lp-calc {
        border-radius: 22px;
    }

    .ctv-lp-calc-input {
        gap: 24px;
        padding: 22px 18px;
    }

    .ctv-lp-calc-tier-name {
        font-size: 13px !important;
    }

    .ctv-lp-calc-result {
        gap: 18px;
        padding: 22px 18px;
    }

    .ctv-lp-pill-green {
        font-size: 11.5px !important;
    }

    .ctv-lp-calc-monthly-value {
        font-size: 40px !important;
    }

    .ctv-lp-calc-monthly-unit {
        font-size: 16px !important;
    }

    .ctv-lp-pill-yellow {
        font-size: 12.5px !important;
    }

    .ctv-lp-calc-split {
        padding: 14px;
        border-radius: 16px;
    }

    .ctv-lp-calc-bar {
        height: 9px;
    }

    .ctv-lp-calc-row-title {
        font-size: 13px !important;
    }

    .ctv-lp-calc-row-desc {
        font-size: 11.5px !important;
    }

    .ctv-lp-calc-row-sum {
        font-size: 13.5px !important;
    }

    .ctv-lp-calc-daily {
        gap: 10px;
        padding: 12px 13px;
        border-radius: 14px;
        box-shadow: 0 4px 0 rgba(18, 19, 42, .16);
    }

    .ctv-lp-calc-daily-icon {
        width: 26px;
        height: 26px;
        border-radius: 8px;
    }

    .ctv-lp-calc-daily-text {
        font-size: 13.5px !important;
    }

    .ctv-lp-calc-foot {
        font-size: 11.5px !important;
    }

    .ctv-lp-steps-sec,
    .ctv-lp-tiers-sec,
    .ctv-lp-stories-sec {
        padding: 34px 0 14px;
    }

    .ctv-lp-steps-sec .ctv-lp-h2 {
        margin-bottom: 22px;
    }

    .ctv-lp-steps {
        display: flex;
        flex-direction: column;
        gap: 22px;
    }

    .ctv-lp-step {
        flex-direction: row;
        gap: 14px;
    }

    .ctv-lp-step-line {
        display: none;
    }

    .ctv-lp-step-num {
        width: 44px;
        height: 44px;
        border-radius: 14px;
        font-size: 18px !important;
        box-shadow: 0 4px 0 rgba(18, 19, 42, .12);
    }

    .ctv-lp-step-body {
        flex: 1;
        min-width: 0;
        gap: 6px;
    }

    .ctv-lp-step-title {
        font-size: 17px !important;
    }

    .ctv-lp-step-desc {
        max-width: none;
        font-size: 14px !important;
        line-height: 1.6 !important;
    }

    .ctv-lp-tiers-head {
        margin-bottom: 22px;
    }

    .ctv-lp-tiers-head .ctv-lp-sub {
        font-size: 14.5px !important;
    }

    .ctv-lp-tiers {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .ctv-lp-tier {
        flex-direction: row;
        align-items: center;
        gap: 14px;
        min-height: 0;
        padding: 16px 18px;
        border-radius: 18px;
    }

    .ctv-lp-tier:hover {
        transform: none;
    }

    .ctv-lp-tier-hot {
        top: -11px;
        right: 16px;
        padding: 6px 11px;
        font-size: 11.5px !important;
    }

    .ctv-lp-tier-ini {
        width: 42px;
        height: 42px;
        border-radius: 13px;
        font-size: 17px !important;
        box-shadow: 0 4px 0 rgba(18, 19, 42, .14);
    }

    .ctv-lp-tier-text {
        flex: 1;
        min-width: 0;
        gap: 2px;
    }

    .ctv-lp-tier-name {
        font-size: 16px !important;
    }

    .ctv-lp-tier-need {
        font-size: 12px !important;
        line-height: 1.5 !important;
    }

    .ctv-lp-tier-rate {
        flex: none;
        margin-top: 0;
    }

    .ctv-lp-tier-rate-value {
        font-size: 28px !important;
    }

    .ctv-lp-tier-rate-label {
        display: none;
    }

    .ctv-lp-duo {
        gap: 22px;
        padding: 34px 0 14px;
    }

    .ctv-lp-box {
        gap: 18px;
        padding: 20px;
        border-radius: 22px;
    }

    .ctv-lp-box.is-payout {
        gap: 14px;
    }

    .ctv-lp-box.is-media > .ctv-lp-tag {
        top: -12px;
        right: 16px;
        padding: 6px 11px;
        border-radius: 9px;
        font-size: 11.5px !important;
    }

    .ctv-lp-box.is-media .ctv-lp-box-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .ctv-lp-media-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 14px;
        border-radius: 15px;
    }

    .ctv-lp-media-icon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .ctv-lp-media-title {
        font-size: 13.5px !important;
    }

    .ctv-lp-media-desc {
        font-size: 11.5px !important;
    }

    .ctv-lp-box.is-payout .ctv-lp-box-list {
        grid-auto-rows: auto;
        gap: 14px;
    }

    .ctv-lp-payout-item {
        gap: 8px;
        padding: 14px;
        border-radius: 15px;
    }

    .ctv-lp-payout-key {
        font-size: 12px !important;
    }

    .ctv-lp-payout-title {
        font-size: 14px !important;
    }

    .ctv-lp-payout-desc {
        font-size: 12.5px !important;
    }

    .ctv-lp-stories-sec .ctv-lp-sub {
        margin-bottom: 18px;
        font-size: 14px !important;
    }

    .ctv-lp-story {
        flex: none;
        width: 262px;
        gap: 14px;
        padding: 10px;
        border-radius: 22px;
    }

    .ctv-lp-story:hover {
        transform: none;
    }

    .ctv-lp-story-cover {
        height: 320px;
        border-radius: 16px;
    }

    .ctv-lp-story-play {
        right: 12px;
        bottom: 12px;
        width: 46px;
        height: 46px;
    }

    .ctv-lp-story-quote {
        padding: 0 8px;
        font-size: 14px !important;
        line-height: 1.6 !important;
    }

    .ctv-lp-story-author {
        gap: 11px;
        padding: 0 8px 8px;
    }

    .ctv-lp-story-ini {
        width: 40px;
        height: 40px;
        font-size: 13px !important;
    }

    .ctv-lp-story-name {
        font-size: 14px !important;
    }

    .ctv-lp-story-role {
        font-size: 12px !important;
    }

    .ctv-lp-faq-sec {
        gap: 34px;
        padding: 34px 0 14px;
    }

    .ctv-lp-faq-sec .ctv-lp-h2 {
        margin-bottom: 18px;
    }

    .ctv-lp-faq-sec .ctv-lp-faq-col .ctv-lp-h2 {
        margin-bottom: 8px;
    }

    .ctv-lp-terms {
        gap: 18px;
    }

    .ctv-lp-term {
        gap: 13px;
    }

    .ctv-lp-term-title {
        font-size: 14.5px !important;
    }

    .ctv-lp-term-desc {
        font-size: 13px !important;
    }

    .ctv-lp-faq-q {
        gap: 12px;
        padding: 16px 0;
    }

    .ctv-lp-faq-q-text {
        font-size: 14.5px !important;
    }

    .ctv-lp-faq-a {
        padding: 0 10px 16px 0;
        font-size: 13.5px !important;
    }

    .ctv-lp-cta-sec {
        padding: 22px 0 36px;
    }

    .ctv-lp-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 28px 22px;
        border-radius: 24px;
    }

    .ctv-lp-cta-dots {
        background-size: 20px 20px;
    }

    .ctv-lp-cta-tag {
        margin-bottom: 14px;
        padding: 6px 11px;
        border-radius: 9px;
        font-size: 12.5px !important;
    }

    .ctv-lp-cta-title {
        font-size: 28px;
        line-height: 1.1;
    }

    .ctv-lp-cta-desc {
        margin-top: 10px;
        font-size: 14.5px !important;
        line-height: 1.6 !important;
    }

    .ctv-lp-btn-white {
        height: 52px;
        padding: 0 22px;
        font-size: 15.5px;
        box-shadow: 0 5px 0 var(--ctv-purple-dark);
    }

    .ctv-lp-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
        padding: 26px 18px 34px;
    }

    .ctv-lp-footer-brand {
        grid-column: 1 / -1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ctv-lp-sec.is-reveal-wait {
        opacity: 1;
        transform: none;
    }
}

/* Điện thoại nhỏ (320–374px) */
@media (max-width: 374px) {
    .ctv-lp-header .ctv-lp-container {
        gap: 8px;
        padding: 10px 12px;
    }

    .ctv-lp-brand-logo {
        width: 88px;
    }

    .ctv-lp-login {
        font-size: 12px;
    }

    .ctv-lp-register {
        padding: 8px 12px;
        font-size: 12px;
    }

    .ctv-lp-register-icon {
        display: none;
    }

    .ctv-lp-hero .ctv-lp-container,
    .ctv-lp-body.ctv-lp-container {
        padding: 0 14px;
    }

    .ctv-lp-stories {
        margin: 0 -14px;
        padding: 0 14px 6px;
        scroll-padding-inline: 14px;
    }

    .ctv-lp-badge {
        font-size: 11.5px !important;
    }

    .ctv-lp-title {
        font-size: 31px;
    }

    .ctv-lp-avatar {
        width: 36px;
        height: 36px;
        font-size: 11px !important;
    }

    .ctv-lp-visual {
        height: 440px;
    }

    .ctv-lp-phone {
        width: 190px;
        height: 392px;
    }

    .ctv-lp-toast {
        width: min(220px, 80%);
    }

    .ctv-lp-stats {
        padding: 18px 16px;
    }

    .ctv-lp-stat-value {
        font-size: 24px !important;
    }

    .ctv-lp-calc-input,
    .ctv-lp-calc-result {
        padding: 20px 14px;
    }

    .ctv-lp-calc-tiers {
        gap: 5px;
    }

    .ctv-lp-calc-tier {
        padding: 0 2px;
    }

    .ctv-lp-calc-tier-name {
        font-size: 11px !important;
        white-space: normal;
        text-align: center;
    }

    .ctv-lp-calc-tier-rate {
        font-size: 10.5px !important;
    }

    .ctv-lp-calc-monthly-value {
        font-size: 34px !important;
    }

    .ctv-lp-perks {
        grid-template-columns: minmax(0, 1fr);
    }

    .ctv-lp-story {
        width: 240px;
    }

    .ctv-lp-cta {
        padding: 24px 18px;
    }
}
