/* =============================================================================
   Landing page10 — "Creator Feed"
   Nền tối, aurora tím–hồng–cam, kính mờ, mockup điện thoại video dọc.
   Mọi class dùng tiền tố sf-; token màu đặt trên body.sf.
   ============================================================================= */

/* ---------- Token & nền ---------- */
body.sf {
    --sf-bg: #0c0a17;
    --sf-bg-2: #141026;
    --sf-surface: rgba(255, 255, 255, .06);
    --sf-surface-2: rgba(255, 255, 255, .095);
    --sf-border: rgba(255, 255, 255, .1);
    --sf-border-2: rgba(255, 255, 255, .16);
    --sf-text: #f5f3ff;
    --sf-muted: #a7a3c2;
    --sf-dim: #7f7a9e;
    --sf-violet: #7c3aed;
    --sf-pink: #ec4899;
    --sf-orange: #f97316;
    --sf-grad: linear-gradient(120deg, #7c3aed 0%, #ec4899 52%, #f97316 100%);
    --sf-grad-v: linear-gradient(180deg, #7c3aed 0%, #ec4899 55%, #f97316 100%);
    --sf-grad-text: linear-gradient(100deg, #a78bfa 0%, #f472b6 45%, #fb923c 100%);
    --sf-ring: conic-gradient(from 200deg, #7c3aed, #ec4899, #f97316, #fbbf24, #ec4899, #7c3aed);
    --sf-blur: blur(18px) saturate(150%);
    --sf-radius: 22px;
    --sf-radius-lg: 30px;
    --sf-shadow: 0 30px 70px -32px rgba(0, 0, 0, .75);
    --sf-ease: cubic-bezier(.2, .75, .2, 1);
    --sf-wrap: 1200px;
    --sf-gutter: clamp(16px, 4vw, 32px);
    --sf-header-h: 64px;
    --sf-font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

    margin: 0;
    min-height: 100vh;
    background: var(--sf-bg);
    color: var(--sf-text);
    font-family: var(--sf-font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body.sf *,
body.sf *::before,
body.sf *::after { box-sizing: border-box; }

.sf ::selection { background: rgba(236, 72, 153, .35); color: #fff; }

.sf-ic {
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

.sf-main,
.sf-footer { position: relative; z-index: 1; }

.sf-main p,
.sf-footer p { margin: 0; }

.sf-wrap {
    width: 100%;
    max-width: calc(var(--sf-wrap) + 2 * var(--sf-gutter));
    margin-inline: auto;
    padding-inline: var(--sf-gutter);
}

.sf-section { padding-block: clamp(56px, 7.5vw, 104px); }
.sf-section[id],
.sf-hero[id] { scroll-margin-top: 92px; }

/* Aurora: radial-gradient thay cho filter blur để nhẹ GPU, chỉ animate transform */
.sf-aurora {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.sf-aurora__blob {
    position: absolute;
    width: 62vmax;
    height: 62vmax;
    border-radius: 50%;
    will-change: transform;
    animation: sf-drift-a 32s ease-in-out infinite alternate;
}
.sf-aurora__blob--1 {
    top: -24vmax;
    left: -18vmax;
    background: radial-gradient(closest-side, rgba(124, 58, 237, .55), rgba(124, 58, 237, 0));
}
.sf-aurora__blob--2 {
    top: 12vh;
    right: -28vmax;
    background: radial-gradient(closest-side, rgba(236, 72, 153, .38), rgba(236, 72, 153, 0));
    animation-name: sf-drift-b;
    animation-duration: 38s;
}
.sf-aurora__blob--3 {
    bottom: -34vmax;
    left: 18vw;
    background: radial-gradient(closest-side, rgba(249, 115, 22, .26), rgba(249, 115, 22, 0));
    animation-name: sf-drift-c;
    animation-duration: 44s;
}
.sf-aurora__noise {
    position: absolute;
    inset: 0;
    opacity: .05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes sf-drift-a {
    to { transform: translate3d(14vw, 10vh, 0) scale(1.1); }
}
@keyframes sf-drift-b {
    to { transform: translate3d(-16vw, 14vh, 0) scale(.92); }
}
@keyframes sf-drift-c {
    to { transform: translate3d(-12vw, -12vh, 0) scale(1.08); }
}

/* ---------- Chữ & thành phần chung ---------- */
.sf-grad-text {
    background: var(--sf-grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.sf-head .sf-sub { text-wrap: balance; }
.sf-head {
    max-width: 700px;
    margin: 0 auto clamp(36px, 5vw, 60px);
    text-align: center;
}

.sf-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 10px;
    border: 1px solid var(--sf-border);
    border-radius: 999px;
    background: var(--sf-surface);
    color: #e9d5ff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .01em;
}
.sf-eyebrow .sf-ic { color: #f472b6; font-size: 15px; }

.sf-h2 {
    margin: 18px 0 14px;
    font-size: clamp(1.85rem, 1.25rem + 2.3vw, 3rem);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -.03em;
    color: var(--sf-text);
    text-wrap: balance;
}

.sf-sub {
    color: var(--sf-muted);
    font-size: clamp(1rem, .96rem + .25vw, 1.125rem);
    line-height: 1.65;
    text-wrap: pretty;
}

/* Nút */
.sf-btn {
    --sf-btn-h: 48px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: var(--sf-btn-h);
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.005em;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .25s var(--sf-ease), box-shadow .25s var(--sf-ease), background-color .25s, border-color .25s, color .25s;
}
.sf-btn .sf-ic { font-size: 18px; transition: transform .25s var(--sf-ease); }
.sf-btn:hover { transform: translateY(-2px); text-decoration: none; }
.sf-btn:hover .sf-ic:last-child:not(:first-child) { transform: translateX(3px); }
.sf-btn:focus-visible { outline: 2px solid #f9a8d4; outline-offset: 3px; }
.sf-btn--sm { --sf-btn-h: 40px; padding: 0 18px; font-size: 14px; }
.sf-btn--lg { --sf-btn-h: 54px; padding: 0 28px; font-size: 16px; }

.sf-btn--grad {
    color: #fff;
    background: var(--sf-grad);
    background-size: 140% 100%;
    background-position: 0 0;
    box-shadow: 0 14px 34px -14px rgba(236, 72, 153, .75), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.sf-btn--grad:hover {
    color: #fff;
    background-position: 100% 0;
    box-shadow: 0 20px 40px -14px rgba(236, 72, 153, .9), inset 0 1px 0 rgba(255, 255, 255, .3);
}

.sf-btn--glass {
    color: var(--sf-text);
    background: var(--sf-surface);
    border-color: var(--sf-border-2);
    -webkit-backdrop-filter: var(--sf-blur);
    backdrop-filter: var(--sf-blur);
}
.sf-btn--glass:hover {
    color: #fff;
    background: var(--sf-surface-2);
    border-color: rgba(255, 255, 255, .26);
}

/* ---------- Header ---------- */
.sf-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    padding: 12px var(--sf-gutter) 0;
    pointer-events: none;
}
.sf-header__bar {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: var(--sf-wrap);
    height: var(--sf-header-h);
    margin: 0 auto;
    padding: 0 10px 0 14px;
    border: 1px solid var(--sf-border);
    border-radius: 20px;
    background: rgba(18, 14, 34, .5);
    -webkit-backdrop-filter: var(--sf-blur);
    backdrop-filter: var(--sf-blur);
    pointer-events: auto;
    transition: background-color .3s, box-shadow .3s, border-color .3s;
}
.sf-header.is-scrolled .sf-header__bar,
.sf-header.is-open .sf-header__bar {
    background: rgba(16, 12, 30, .82);
    border-color: rgba(255, 255, 255, .12);
    box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .8);
}

.sf-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: var(--sf-text);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -.02em;
    text-decoration: none;
}
.sf-brand:hover { color: #fff; text-decoration: none; }
.sf-brand__glyph {
    position: relative;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: var(--sf-grad);
    color: #fff;
    box-shadow: 0 8px 20px -8px rgba(236, 72, 153, .8), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.sf-brand__glyph .sf-ic { font-size: 17px; margin-left: 2px; }
.sf-brand__name {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.sf-nav__links {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.sf-nav__link {
    display: block;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--sf-muted);
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s, background-color .2s;
}
.sf-nav__link:hover {
    color: var(--sf-text);
    background: var(--sf-surface);
    text-decoration: none;
}
.sf-nav__actions { display: flex; align-items: center; gap: 8px; }

.sf-burger {
    display: none;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--sf-border);
    border-radius: 13px;
    background: var(--sf-surface);
    color: var(--sf-text);
    cursor: pointer;
}
.sf-burger .sf-ic { font-size: 21px; }
.sf-burger__close { display: none; }
.sf-header.is-open .sf-burger__open { display: none; }
.sf-header.is-open .sf-burger__close { display: inline-block; }

@media (min-width: 992px) {
    .sf-nav {
        display: flex;
        align-items: center;
        flex: 1;
        gap: 16px;
        min-width: 0;
    }
    .sf-nav__links { margin-inline: auto; }
    .sf-header__quick { display: none; }
}

@media (max-width: 991.98px) {
    .sf-header__bar { padding-right: 8px; }
    .sf-brand { margin-right: auto; }
    .sf-burger { display: grid; }
    .sf-header__quick { flex-shrink: 0; }

    /* Menu thả xuống dạng kính */
    .sf-nav {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 12px;
        border: 1px solid var(--sf-border-2);
        border-radius: 20px;
        background: linear-gradient(180deg, #1a1430, #110d21);
        box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .85);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px) scale(.98);
        transform-origin: top center;
        transition: opacity .22s var(--sf-ease), transform .22s var(--sf-ease), visibility 0s linear .22s;
    }
    .sf-header.is-open .sf-nav {
        opacity: 1;
        visibility: visible;
        transform: none;
        transition-delay: 0s;
    }
    .sf-nav__links { flex-direction: column; align-items: stretch; }
    .sf-nav__link {
        padding: 13px 14px;
        border-radius: 12px;
        color: var(--sf-text);
        font-size: 16px;
    }
    .sf-nav__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        padding-top: 12px;
        border-top: 1px solid var(--sf-border);
    }
    .sf-nav__actions .sf-btn { --sf-btn-h: 46px; }
}

@media (max-width: 359.98px) {
    .sf-header__quick { display: none; }
}

/* ---------- Hero ---------- */
.sf-hero {
    position: relative;
    overflow: hidden;
    padding-top: calc(var(--sf-header-h) + 12px + clamp(36px, 6vw, 64px));
    padding-bottom: clamp(56px, 7vw, 96px);
}
.sf-hero__grid {
    display: grid;
    gap: clamp(40px, 6vw, 56px);
    align-items: center;
}
@media (min-width: 992px) {
    .sf-hero__grid { grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); }
}

.sf-hero__copy { position: relative; z-index: 2; min-width: 0; }

.sf-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px 6px 6px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 999px;
    background: linear-gradient(120deg, rgba(124, 58, 237, .18), rgba(236, 72, 153, .1));
    color: #ede9fe;
    font-size: 13.5px;
    font-weight: 600;
}
.sf-pill__dot {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--sf-grad);
    color: #fff;
    font-size: 12px;
    line-height: 1;
}

.sf-hero__title {
    margin: 24px 0 20px;
    font-size: clamp(2.5rem, 1.45rem + 4.3vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.04em;
    color: var(--sf-text);
    text-wrap: balance;
}
.sf-hero__domain {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: clamp(1rem, .9rem + .35vw, 1.15rem);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.3;
    color: #d8ccff;
}
.sf-hero__handle { min-width: 0; overflow-wrap: anywhere; }
.sf-verified {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--sf-grad);
    color: #fff;
    font-size: 12px;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, .16);
}

.sf-hero__lead {
    max-width: 540px;
    color: var(--sf-muted);
    font-size: clamp(1.02rem, .97rem + .28vw, 1.16rem);
    line-height: 1.7;
}

.sf-hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

/* Story tròn (dùng cho hero + dải nền tảng) */
.sf-story {
    --sz: 84px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: calc(var(--sz) + 12px);
    text-align: center;
}
.sf-story__ring {
    position: relative;
    display: grid;
    place-items: center;
    width: var(--sz);
    height: var(--sz);
    border-radius: 50%;
    isolation: isolate;
    transition: transform .35s var(--sf-ease);
}
.sf-story__ring::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 50%;
    background: var(--sf-ring);
}
.sf-story__face {
    display: grid;
    place-items: center;
    width: calc(100% - 7px);
    height: calc(100% - 7px);
    border: 3px solid var(--sf-bg);
    border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, #2a2346, #15112a 70%);
    color: var(--brand, #fff);
    font-size: calc(var(--sz) * .4);
    font-weight: 800;
}
.sf-story__face--tiktok .sf-ic { filter: drop-shadow(-1.5px -1px 0 #25f4ee) drop-shadow(1.5px 1px 0 #fe2c55); }
.sf-story__name {
    max-width: 100%;
    color: var(--sf-muted);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sf-story:hover .sf-story__ring { transform: translateY(-3px); }
.sf-story:hover .sf-story__ring::before { animation: sf-spin 2.2s linear infinite; }
.sf-story:hover .sf-story__name { color: var(--sf-text); }

.sf-story__link {
    display: contents;
    color: inherit;
    text-decoration: none;
}
.sf-story--more .sf-story__face {
    color: var(--sf-text);
    font-size: calc(var(--sz) * .3);
    background: rgba(255, 255, 255, .08);
}
.sf-story--more .sf-story__ring::before { background: conic-gradient(from 0deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, .08), rgba(255, 255, 255, .35)); }

@keyframes sf-spin { to { transform: rotate(1turn); } }

.sf-hero__stories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 6px;
    margin: 40px 0 0;
    padding: 24px 0 0;
    border-top: 1px solid var(--sf-border);
    list-style: none;
}
.sf-story--sm { --sz: 58px; gap: 8px; }
.sf-story--sm .sf-story__face { border-width: 2.5px; width: calc(100% - 5px); height: calc(100% - 5px); }
.sf-story--sm .sf-story__name { font-size: 12px; }

/* ---------- Sân khấu mockup điện thoại ---------- */
.sf-hero__visual {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sf-stage {
    --pw: min(300px, 72vw);
    /* khoảng toast được tràn ra lề trang mà không bị cắt; --tw ≈ bề rộng toast */
    --sf-bleed: calc(max(var(--sf-gutter), (100vw - var(--sf-wrap)) / 2) - 18px);
    --tw: 262px;
    position: relative;
    display: grid;
    place-items: center;
    width: min(100%, calc(var(--pw) + 280px));
    padding: 8px 0 16px;
}
/* quầng sáng sau điện thoại */
.sf-stage::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: calc(var(--pw) * 1.7);
    height: calc(var(--pw) * 1.7);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(236, 72, 153, .38), rgba(124, 58, 237, .18) 55%, transparent);
    pointer-events: none;
}
.sf-stage__orbit {
    position: absolute;
    left: 50%;
    top: 50%;
    width: calc(var(--pw) * 1.45);
    height: calc(var(--pw) * 1.45);
    margin: calc(var(--pw) * -.725) 0 0 calc(var(--pw) * -.725);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    pointer-events: none;
    animation: sf-spin 40s linear infinite;
}
.sf-stage__orbit::after {
    content: "";
    position: absolute;
    top: 12%;
    left: 6%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f472b6;
    box-shadow: 0 0 14px 3px rgba(244, 114, 182, .7);
}
.sf-stage__orbit--2 {
    width: calc(var(--pw) * 2.05);
    height: calc(var(--pw) * 2.05);
    margin: calc(var(--pw) * -1.025) 0 0 calc(var(--pw) * -1.025);
    border-style: dashed;
    border-color: rgba(255, 255, 255, .06);
    animation-duration: 64s;
    animation-direction: reverse;
}
.sf-stage__orbit--2::after {
    top: auto;
    bottom: 18%;
    left: auto;
    right: 4%;
    width: 8px;
    height: 8px;
    background: #fb923c;
    box-shadow: 0 0 14px 3px rgba(251, 146, 60, .7);
}

.sf-stage__note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px !important;
    color: var(--sf-dim);
    font-size: 12.5px;
    font-weight: 500;
}
.sf-stage__note .sf-ic { color: #f472b6; }

/* Khung máy: mọi kích thước bên trong tính theo em = bề rộng máy / 30 */
.sf-phone {
    position: relative;
    z-index: 1;
    width: var(--pw);
    aspect-ratio: 9 / 19;
    padding: .85em;
    border-radius: 4.6em;
    font-size: calc(var(--pw) / 30);
    background: linear-gradient(150deg, #3a3357 0%, #15121f 38%, #0b0a12 62%, #2a2540 100%);
    box-shadow:
        inset 0 0 0 .12em rgba(255, 255, 255, .14),
        inset 0 0 0 .5em #07060c,
        0 0 0 1px rgba(255, 255, 255, .05),
        0 60px 120px -40px rgba(124, 58, 237, .65),
        0 40px 80px -30px rgba(0, 0, 0, .9);
}
.sf-phone__btn {
    position: absolute;
    width: .38em;
    border-radius: .3em;
    background: linear-gradient(90deg, #2c2742, #514a6e);
}
.sf-phone__btn--action { left: -.3em; top: 17%; height: 3em; }
.sf-phone__btn--vol1 { left: -.3em; top: 25%; height: 5.6em; }
.sf-phone__btn--vol2 { left: -.3em; top: 35%; height: 5.6em; }
.sf-phone__btn--power { right: -.3em; top: 28%; height: 8.6em; background: linear-gradient(270deg, #2c2742, #514a6e); }

.sf-phone__screen {
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: 3.8em;
    background: #000;
    isolation: isolate;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    color: #fff;
    line-height: 1.35;
}

.sf-phone__island {
    position: absolute;
    top: .95em;
    left: 50%;
    z-index: 5;
    width: 9.6em;
    height: 2.8em;
    margin-left: -4.8em;
    border-radius: 2em;
    background: #000;
}
.sf-phone__island::after {
    content: "";
    position: absolute;
    right: 1em;
    top: .9em;
    width: 1em;
    height: 1em;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #3b3a5e, #0d0c18 60%);
}

.sf-phone__status {
    position: absolute;
    top: 1.35em;
    left: 0;
    right: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2.7em 0 3em;
    font-size: 1em;
}
.sf-phone__time { font-size: 1.4em; font-weight: 700; letter-spacing: -.01em; }
.sf-phone__sys { display: flex; align-items: center; gap: .6em; }
.sf-signal { display: flex; align-items: flex-end; gap: .18em; height: 1.1em; }
.sf-signal i { width: .32em; border-radius: .1em; background: #fff; }
.sf-signal i:nth-child(1) { height: 35%; }
.sf-signal i:nth-child(2) { height: 55%; }
.sf-signal i:nth-child(3) { height: 78%; }
.sf-signal i:nth-child(4) { height: 100%; }
.sf-battery {
    position: relative;
    width: 2.4em;
    height: 1.15em;
    padding: .15em;
    border: .12em solid rgba(255, 255, 255, .55);
    border-radius: .35em;
}
.sf-battery::after {
    content: "";
    position: absolute;
    right: -.38em;
    top: 50%;
    width: .2em;
    height: .45em;
    margin-top: -.225em;
    border-radius: 0 .1em .1em 0;
    background: rgba(255, 255, 255, .55);
}
.sf-battery i { display: block; width: 78%; height: 100%; border-radius: .15em; background: #fff; }

.sf-feedtabs {
    position: absolute;
    top: 5em;
    left: 0;
    right: 0;
    z-index: 4;
    display: flex;
    justify-content: center;
    gap: 1.6em;
    font-size: 1.3em;
    font-weight: 600;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .35);
}
.sf-feedtabs span { position: relative; opacity: .7; }
.sf-feedtabs .is-active { opacity: 1; font-weight: 800; }
.sf-feedtabs .is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -.45em;
    width: 1.8em;
    height: .2em;
    margin-left: -.9em;
    border-radius: .2em;
    background: #fff;
}

/* "Video": trời hoàng hôn + mặt trời sọc retro + sóng */
.sf-video { position: absolute; inset: 0; overflow: hidden; }
.sf-video > * { position: absolute; }
.sf-video__sky {
    inset: 0;
    background: linear-gradient(180deg, #1e0b4a 0%, #4c1d95 22%, #9d174d 50%, #ea580c 74%, #fdba74 100%);
}
.sf-video__shine {
    inset: -45%;
    background: conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(255, 255, 255, .12) 40deg, transparent 90deg, rgba(236, 72, 153, .28) 160deg, transparent 220deg, rgba(124, 58, 237, .3) 290deg, transparent 360deg);
    animation: sf-spin 22s linear infinite;
}
.sf-video__glow {
    left: 50%;
    top: 47%;
    width: 22em;
    height: 22em;
    margin: -11em 0 0 -11em;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(253, 186, 116, .7), rgba(251, 113, 133, .25) 55%, transparent);
    animation: sf-breathe 6s ease-in-out infinite;
}
.sf-video__sun {
    left: 50%;
    top: 47%;
    width: 12em;
    height: 12em;
    margin: -6em 0 0 -6em;
    border-radius: 50%;
    background: linear-gradient(180deg, #fff1c1 0%, #fdba74 38%, #fb7185 70%, #db2777 100%);
    -webkit-mask-image: linear-gradient(180deg, #000 52%, transparent 52%, transparent 56%, #000 56%, #000 64%, transparent 64%, transparent 69%, #000 69%, #000 76%, transparent 76%, transparent 82%, #000 82%, #000 88%, transparent 88%, transparent 95%, #000 95%);
    mask-image: linear-gradient(180deg, #000 52%, transparent 52%, transparent 56%, #000 56%, #000 64%, transparent 64%, transparent 69%, #000 69%, #000 76%, transparent 76%, transparent 82%, #000 82%, #000 88%, transparent 88%, transparent 95%, #000 95%);
    animation: sf-sun 7s ease-in-out infinite;
}
.sf-video__spark { width: 1.6em; height: 1.6em; color: #fff; opacity: .85; animation: sf-twinkle 3.2s ease-in-out infinite; }
.sf-video__spark--1 { left: 16%; top: 25%; }
.sf-video__spark--2 { right: 22%; top: 31%; width: 1.1em; height: 1.1em; animation-delay: 1.1s; }
.sf-video__spark--3 { left: 30%; top: 38%; width: .9em; height: .9em; animation-delay: 2s; }
.sf-video__wave {
    left: 0;
    bottom: 0;
    width: 200%;
    height: 34%;
    animation: sf-wave 9s linear infinite;
}
.sf-video__wave path { fill: rgba(59, 7, 100, .72); }
.sf-video__wave--front { height: 27%; animation-duration: 6s; }
.sf-video__wave--front path { fill: #1d0838; }
.sf-video__sticker {
    left: 50%;
    top: 22%;
    padding: .35em .75em;
    border-radius: .45em;
    background: #fff;
    color: #17112b;
    font-size: 1.45em;
    font-weight: 800;
    letter-spacing: -.01em;
    white-space: nowrap;
    transform: translateX(-50%) rotate(-3deg);
    box-shadow: 0 .6em 1.4em -.4em rgba(0, 0, 0, .45);
}
.sf-video__shade {
    left: 0;
    right: 0;
    bottom: 0;
    height: 46%;
    background: linear-gradient(180deg, transparent, rgba(8, 4, 20, .7));
}

@keyframes sf-breathe {
    0%, 100% { transform: scale(1); opacity: .9; }
    50% { transform: scale(1.12); opacity: 1; }
}
@keyframes sf-sun {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-.6em); }
}
@keyframes sf-twinkle {
    0%, 100% { transform: scale(.6) rotate(0); opacity: .25; }
    50% { transform: scale(1) rotate(45deg); opacity: 1; }
}
@keyframes sf-wave { to { transform: translate3d(-50%, 0, 0); } }

/* Thanh hành động bên phải */
.sf-rail {
    position: absolute;
    right: .9em;
    bottom: 8.6em;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5em;
}
.sf-rail__avatar { position: relative; margin-bottom: .6em; }
.sf-rail__face {
    display: grid;
    place-items: center;
    width: 2.6em;
    height: 2.6em;
    border: .13em solid #fff;
    border-radius: 50%;
    background: var(--sf-grad);
    font-size: 1.7em;
    font-weight: 800;
    line-height: 1;
}
.sf-rail__follow {
    position: absolute;
    left: 50%;
    bottom: -.9em;
    display: grid;
    place-items: center;
    width: 1.9em;
    height: 1.9em;
    margin-left: -.95em;
    border-radius: 50%;
    background: #fe2c55;
    font-size: 1em;
}
.sf-rail__follow .sf-ic { width: 1.2em; height: 1.2em; }
.sf-rail__item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .3em;
}
.sf-rail__item > .sf-ic {
    width: 3.1em;
    height: 3.1em;
    filter: drop-shadow(0 .15em .4em rgba(0, 0, 0, .35));
}
.sf-rail__item--like > .sf-ic { color: #ff2d6f; }

/* Nút trong điện thoại minh hoạ bấm được (mở form đăng nhập) nên phản hồi khi rê chuột */
.sf-rail__item > .sf-ic,
.sf-rail__face { transition: scale .2s var(--sf-ease); }
.sf-rail__item:hover > .sf-ic,
.sf-rail__avatar:hover .sf-rail__face { scale: 1.1; }
.sf-feedtabs span { transition: opacity .2s ease; }
.sf-feedtabs span:hover { opacity: 1; }
.sf-rail__item--like.is-pop > .sf-ic { animation: sf-pop .45s var(--sf-ease); }
.sf-rail__count {
    font-size: 1.12em;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .4);
}
.sf-disc {
    display: grid;
    place-items: center;
    width: 3.8em;
    height: 3.8em;
    margin-top: .4em;
    border-radius: 50%;
    background: repeating-radial-gradient(circle, #1c1830 0 .25em, #2c2645 .25em .35em);
    box-shadow: 0 0 0 .25em rgba(0, 0, 0, .25);
    animation: sf-spin 5s linear infinite;
}
.sf-disc span { width: 1.7em; height: 1.7em; border-radius: 50%; background: var(--sf-grad); }

@keyframes sf-pop {
    0% { transform: scale(1); }
    40% { transform: scale(1.22); }
    100% { transform: scale(1); }
}

/* Tim bay lên — main.js tạo phần tử, CSS lo chuyển động */
.sf-hearts {
    position: absolute;
    left: 50%;
    top: .4em;
    width: 0;
    height: 0;
    pointer-events: none;
}
.sf-fheart {
    position: absolute;
    left: -1.1em;
    top: 0;
    width: 2.2em;
    height: 2.2em;
    color: var(--c, #ff2d6f);
    opacity: 0;
    animation: sf-float var(--dur, 2.6s) cubic-bezier(.25, .6, .35, 1) forwards;
}
@keyframes sf-float {
    0% { transform: translate3d(0, 0, 0) scale(.5) rotate(0); opacity: 0; }
    12% { opacity: 1; transform: translate3d(calc(var(--dx, -1em) * .2), -2em, 0) scale(1) rotate(calc(var(--rot, 10deg) * .3)); }
    100% { transform: translate3d(var(--dx, -1em), -16em, 0) scale(.9) rotate(var(--rot, 10deg)); opacity: 0; }
}

/* Chú thích + nhạc + thanh tiến độ */
.sf-caption {
    position: absolute;
    left: 1.4em;
    right: 7em;
    bottom: 3.7em;
    z-index: 4;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .4);
}
.sf-caption p { margin: 0; }
.sf-caption__user {
    font-size: 1.3em;
    font-weight: 800;
    overflow-wrap: anywhere;
}
.sf-caption__user span { font-weight: 500; }
.sf-caption__tags { margin-top: .35em !important; font-size: 1.12em; opacity: .85; }
.sf-caption__music {
    display: flex;
    align-items: center;
    gap: .5em;
    margin-top: .7em;
    font-size: 1.12em;
}
.sf-caption__music .sf-ic { width: 1.1em; height: 1.1em; }
.sf-ticker {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
    -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent);
    mask-image: linear-gradient(90deg, #000 80%, transparent);
}
.sf-ticker span {
    flex-shrink: 0;
    padding-right: .4em;
    animation: sf-marquee 9s linear infinite;
}
@keyframes sf-marquee { to { transform: translate3d(-100%, 0, 0); } }

.sf-progress {
    position: absolute;
    left: 1.4em;
    right: 1.4em;
    bottom: 2.2em;
    z-index: 4;
    height: .28em;
    overflow: hidden;
    border-radius: .3em;
    background: rgba(255, 255, 255, .25);
}
.sf-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #fff;
    transform-origin: left center;
    animation: sf-progress 10s linear infinite;
}
@keyframes sf-progress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}
.sf-phone__home {
    position: absolute;
    left: 50%;
    bottom: .75em;
    z-index: 4;
    width: 11em;
    height: .45em;
    margin-left: -5.5em;
    border-radius: .3em;
    background: rgba(255, 255, 255, .85);
}

/* Thông báo nổi quanh máy */
.sf-toast {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
    width: max-content;
    max-width: 280px;
    padding: 11px 16px 11px 11px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 18px;
    background: rgba(28, 22, 50, .66);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    backdrop-filter: blur(16px) saturate(160%);
    box-shadow: 0 24px 44px -20px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .08);
    opacity: 0;
    animation: sf-toast 12s var(--sf-ease) infinite both;
}
.sf-toast--1 { top: 15%; right: calc(50% + var(--pw) / 2 - 64px); animation-delay: .4s; }
.sf-toast--2 { top: 30%; left: min(calc(50% + var(--pw) / 2 - 56px), calc(100% + var(--sf-bleed) - var(--tw))); animation-delay: 4.4s; --fx: 16px; }
.sf-toast--3 { top: 60%; right: calc(50% + var(--pw) / 2 - 48px); animation-delay: 8.4s; }
.sf-toast__icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--sf-grad);
    color: #fff;
    font-size: 19px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3);
}
.sf-toast__icon--alt { background: linear-gradient(135deg, #ec4899, #f97316); }
.sf-toast__icon--ok { background: linear-gradient(135deg, #10b981, #22c55e); }
.sf-toast__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.sf-toast__text strong { color: #fff; font-size: 14px; font-weight: 700; white-space: nowrap; }
.sf-toast__text small { margin-top: 2px; color: var(--sf-muted); font-size: 12px; font-weight: 500; }

@keyframes sf-toast {
    0% { opacity: 0; transform: translate3d(var(--fx, -16px), 10px, 0) scale(.94); }
    5% { opacity: 1; transform: none; }
    36% { opacity: 1; transform: none; }
    42% { opacity: 0; transform: translate3d(0, -10px, 0) scale(.97); }
    100% { opacity: 0; transform: translate3d(0, -10px, 0) scale(.97); }
}

/* toast gọn cho màn hẹp hơn desktop lớn */
@media (max-width: 1199.98px) {
    .sf-toast { gap: 10px; padding: 9px 13px 9px 9px; border-radius: 15px; }
    .sf-toast__icon { width: 34px; height: 34px; border-radius: 10px; font-size: 16px; }
    .sf-toast__text strong { font-size: 12.5px; }
    .sf-toast__text small { font-size: 11px; }
    .sf-stage { --tw: 232px; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    .sf-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .sf-stage { --pw: 250px; }
    .sf-toast--1,
    .sf-toast--3 { right: calc(50% + var(--pw) / 2 - 80px); }
}

@media (max-width: 991.98px) {
    .sf-hero__visual { margin-top: -8px; }
}
@media (max-width: 479.98px) {
    .sf-hero__ctas { display: grid; grid-template-columns: 1fr; }
    .sf-hero__ctas .sf-btn { width: 100%; }
    .sf-hero__stories { justify-content: space-between; gap: 10px 0; margin-top: 32px; padding-top: 20px; }
    .sf-story--sm { --sz: 52px; width: calc(var(--sz) + 14px); }
    .sf-story--sm .sf-story__name { font-size: 11.5px; }
}

@media (max-width: 575.98px) {
    .sf-stage { --pw: min(280px, 74vw); width: 100%; }
    .sf-toast { max-width: calc(100% - 4px); }
    .sf-toast--1 { top: 13%; right: auto; left: 0; }
    .sf-toast--2 { top: 27%; left: auto; right: 0; }
    .sf-toast--3 { top: 56%; right: auto; left: 0; }
}

/* ---------- Dải nền tảng (stories) ---------- */
.sf-platforms { padding-top: clamp(16px, 3vw, 40px); padding-bottom: clamp(32px, 4vw, 56px); }
.sf-reel {
    padding: 28px 24px;
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .025));
}
.sf-reel__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (max-width: 767.98px) {
    /* Mobile: cuộn ngang có snap, nằm gọn trong khung của chính nó */
    .sf-reel {
        margin-inline: calc(-1 * var(--sf-gutter));
        padding: 4px 0;
        border: 0;
        border-radius: 0;
        background: none;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: var(--sf-gutter);
        scrollbar-width: none;
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 28px), transparent);
        mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 28px), transparent);
    }
    .sf-reel::-webkit-scrollbar { display: none; }
    .sf-reel__list {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 14px;
        width: max-content;
        padding: 6px var(--sf-gutter);
    }
    .sf-reel .sf-story { --sz: 72px; scroll-snap-align: start; }
}

/* ---------- Tính năng (bento) ---------- */
.sf-bento {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 640px) {
    .sf-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sf-card--wide { grid-column: span 2; }
}
@media (min-width: 1024px) {
    .sf-bento { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
}

.sf-card {
    --mx: 50%;
    --my: 0%;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: clamp(22px, 2.4vw, 30px);
    overflow: hidden;
    border: 1px solid var(--sf-border);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .035));
    isolation: isolate;
    transition: transform .35s var(--sf-ease), border-color .35s;
}
/* quầng sáng theo con trỏ + viền sáng */
.sf-card::before,
.sf-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s;
}
.sf-card::before {
    background: radial-gradient(420px circle at var(--mx) var(--my), rgba(236, 72, 153, .14), rgba(124, 58, 237, .06) 40%, transparent 65%);
}
.sf-card::after {
    padding: 1px;
    background: radial-gradient(260px circle at var(--mx) var(--my), rgba(255, 255, 255, .45), transparent 60%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.sf-card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, .14); }
.sf-card:hover::before,
.sf-card:hover::after { opacity: 1; }

.sf-tile {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
    border-radius: 15px;
    background: var(--sf-grad);
    color: #fff;
    font-size: 23px;
    box-shadow: 0 12px 26px -12px rgba(236, 72, 153, .8), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.sf-tile--b { background: linear-gradient(135deg, #f97316, #ec4899); box-shadow: 0 12px 26px -12px rgba(249, 115, 22, .8), inset 0 1px 0 rgba(255, 255, 255, .3); }
.sf-tile--c { background: linear-gradient(135deg, #8b5cf6, #6366f1); box-shadow: 0 12px 26px -12px rgba(124, 58, 237, .8), inset 0 1px 0 rgba(255, 255, 255, .3); }
.sf-tile--d { background: linear-gradient(135deg, #ec4899, #a855f7); }
.sf-tile--e { background: linear-gradient(135deg, #fb923c, #f43f5e); box-shadow: 0 12px 26px -12px rgba(244, 63, 94, .8), inset 0 1px 0 rgba(255, 255, 255, .3); }
.sf-tile--f { background: linear-gradient(135deg, #7c3aed, #ec4899); }

.sf-card__title {
    margin: 0 0 8px;
    color: var(--sf-text);
    font-size: clamp(1.1rem, 1.04rem + .25vw, 1.25rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.015em;
}
.sf-card__text { color: var(--sf-muted); font-size: 15px; line-height: 1.65; }
.sf-card > .sf-card__text { margin-bottom: 24px; }

.sf-card--wide { gap: 24px; }
.sf-card--wide .sf-flow,
.sf-card--wide .sf-deposit { margin-top: auto; }
@media (min-width: 768px) and (max-width: 1023.98px) {
    .sf-card--wide {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
        align-items: center;
        gap: 28px;
    }
}

.sf-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.sf-chip .sf-ic { font-size: 12px; }
.sf-chip--live { color: #fbcfe8; background: rgba(236, 72, 153, .16); border: 1px solid rgba(236, 72, 153, .35); }
.sf-chip--live::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f472b6;
    box-shadow: 0 0 0 0 rgba(244, 114, 182, .7);
    animation: sf-ping 1.8s ease-out infinite;
}
.sf-chip--ok { color: #bbf7d0; background: rgba(34, 197, 94, .14); border: 1px solid rgba(34, 197, 94, .35); }

@keyframes sf-ping {
    0% { box-shadow: 0 0 0 0 rgba(244, 114, 182, .7); }
    100% { box-shadow: 0 0 0 7px rgba(244, 114, 182, 0); }
}

/* minh hoạ: luồng xử lý đơn */
.sf-flow {
    padding: 16px;
    border: 1px solid var(--sf-border);
    border-radius: 18px;
    background: rgba(10, 8, 22, .55);
}
.sf-flow__order { display: flex; align-items: center; gap: 12px; }
.sf-flow__app {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #000;
    color: #fff;
    font-size: 20px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.sf-flow__app .sf-ic { filter: drop-shadow(-1px -1px 0 #25f4ee) drop-shadow(1px 1px 0 #fe2c55); }
.sf-flow__info { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.3; }
.sf-flow__info strong { font-size: 14px; font-weight: 700; color: var(--sf-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-flow__info small { color: var(--sf-dim); font-size: 12px; }
.sf-flow__steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    color: var(--sf-dim);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}
.sf-flow__steps::before,
.sf-flow__steps::after {
    content: "";
    position: absolute;
    top: 6px;
    left: 16.66%;
    right: 16.66%;
    height: 2px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .1);
}
.sf-flow__steps::after {
    right: auto;
    width: 0;
    background: var(--sf-grad);
    animation: sf-flowbar 4.5s var(--sf-ease) infinite;
}
.sf-flow__steps li {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.sf-flow__steps i {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    background: var(--sf-bg-2);
}
.sf-flow__steps .is-done { color: var(--sf-muted); }
.sf-flow__steps .is-done i { border-color: #a78bfa; background: #7c3aed; }
.sf-flow__steps .is-active { color: #fbcfe8; }
.sf-flow__steps .is-active i { border-color: #f472b6; background: #ec4899; box-shadow: 0 0 0 5px rgba(236, 72, 153, .2); }

@keyframes sf-flowbar {
    0% { width: 0; }
    45%, 100% { width: 33.3%; }
}

/* minh hoạ: cấp bậc */
.sf-tiers {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 46px;
    margin-top: auto;
}
.sf-tiers i {
    flex: 1;
    border-radius: 6px 6px 3px 3px;
    background: rgba(255, 255, 255, .08);
}
.sf-tiers i:nth-child(1) { height: 30%; }
.sf-tiers i:nth-child(2) { height: 46%; }
.sf-tiers i:nth-child(3) { height: 62%; }
.sf-tiers i:nth-child(4) { height: 80%; background: linear-gradient(180deg, rgba(249, 115, 22, .6), rgba(236, 72, 153, .35)); }
.sf-tiers i:nth-child(5) { height: 100%; background: linear-gradient(180deg, #f97316, #ec4899); box-shadow: 0 0 18px -4px rgba(249, 115, 22, .8); }

/* minh hoạ: trực tuyến */
.sf-online {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    margin-top: auto;
    padding: 6px 12px;
    border: 1px solid rgba(34, 197, 94, .3);
    border-radius: 999px;
    background: rgba(34, 197, 94, .1);
    color: #bbf7d0;
    font-size: 12.5px;
    font-weight: 600;
}
.sf-online i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: sf-ping-g 1.8s ease-out infinite;
}
@keyframes sf-ping-g {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .7); }
    100% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
}

/* minh hoạ: nền tảng mini */
.sf-minis {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}
.sf-minis__more {
    color: var(--sf-text) !important;
    font-size: 13px !important;
    font-weight: 700;
}
.sf-minis span {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--sf-border);
    border-radius: 11px;
    background: rgba(255, 255, 255, .05);
    color: var(--brand);
    font-size: 17px;
}

/* minh hoạ: thanh tiến độ đơn */
.sf-meter { margin-top: auto; }
.sf-meter__row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--sf-dim);
    font-size: 12.5px;
    font-weight: 600;
}
.sf-meter__row b { color: #f9a8d4; font-weight: 700; }
.sf-meter__bar {
    height: 8px;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
}
.sf-meter__bar span {
    display: block;
    width: 72%;
    height: 100%;
    border-radius: inherit;
    background: var(--sf-grad);
    transform-origin: left center;
}
.js .sf-card.is-in .sf-meter__bar span { animation: sf-grow 1.6s .3s var(--sf-ease) both; }
@keyframes sf-grow { from { transform: scaleX(0); } }

/* minh hoạ: nạp tiền */
.sf-deposit { display: flex; flex-direction: column; gap: 14px; }
.sf-deposit__note {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--sf-border);
    border-radius: 18px;
    background: rgba(10, 8, 22, .55);
}
.sf-deposit__icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: rgba(124, 58, 237, .22);
    color: #c4b5fd;
    font-size: 20px;
}
.sf-deposit__text { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.25; }
.sf-deposit__text small { color: var(--sf-dim); font-size: 12px; font-weight: 600; }
.sf-deposit__text strong {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.02em;
    background: var(--sf-grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
.sf-deposit__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.sf-deposit__tags span {
    padding: 5px 11px;
    border: 1px solid var(--sf-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, .04);
    color: var(--sf-muted);
    font-size: 12.5px;
    font-weight: 600;
}

/* ---------- Số liệu ---------- */
.sf-stats { padding-bottom: clamp(16px, 3vw, 32px); }
.sf-stats__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.sf-stat {
    position: relative;
    padding: clamp(22px, 3vw, 34px) 16px;
    overflow: hidden;
    border: 1px solid var(--sf-border);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .03));
    text-align: center;
}
.sf-stat::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 60%;
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(244, 114, 182, .8), transparent);
}
.sf-stat__num {
    font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.04em;
    font-variant-numeric: tabular-nums;
    background: var(--sf-grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
.sf-stat__label {
    margin-top: 6px !important;
    color: var(--sf-muted);
    font-size: clamp(.82rem, .78rem + .25vw, 1rem);
    font-weight: 600;
}
@media (max-width: 479.98px) {
    .sf-stats__grid { gap: 10px; }
    .sf-stat { padding-inline: 6px; border-radius: 18px; }
    .sf-stat__num { font-size: 6.6vw; letter-spacing: -.03em; }
    .sf-stat__label { font-size: 12.5px; line-height: 1.4; }
}

/* ---------- Quy trình ---------- */
.sf-steps__grid {
    display: grid;
    gap: clamp(36px, 5vw, 64px);
    align-items: center;
}
@media (min-width: 992px) {
    .sf-steps__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
}
.sf-steps__intro .sf-sub { max-width: 460px; margin-bottom: 28px !important; }

.sf-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}
/* đường nối gradient: mỗi bước vẽ 1 đoạn từ tâm icon của nó tới icon bước kế */
.sf-notif:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 25px;
    top: 36px;
    height: calc(100% + 18px);
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(180deg, #7c3aed, #ec4899);
}
.sf-notif:nth-child(2)::before { background: linear-gradient(180deg, #ec4899, #f97316); }
.sf-notif {
    position: relative;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}
.sf-notif__app {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-top: 10px;
    border-radius: 16px;
    background: var(--sf-grad);
    color: #fff;
    font-size: 23px;
    box-shadow: 0 0 0 6px var(--sf-bg), 0 14px 30px -10px rgba(236, 72, 153, .7), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.sf-notif:nth-child(2) .sf-notif__app { background: linear-gradient(135deg, #ec4899, #f97316); }
.sf-notif:nth-child(3) .sf-notif__app { background: linear-gradient(135deg, #f97316, #fbbf24); box-shadow: 0 0 0 6px var(--sf-bg), 0 14px 30px -10px rgba(249, 115, 22, .7), inset 0 1px 0 rgba(255, 255, 255, .3); }

.sf-notif__card {
    padding: 16px 20px 18px;
    border: 1px solid var(--sf-border);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .045));
    box-shadow: 0 20px 40px -26px rgba(0, 0, 0, .8);
    transition: transform .3s var(--sf-ease), border-color .3s;
}
.sf-notif:hover .sf-notif__card { transform: translateX(4px); border-color: rgba(255, 255, 255, .16); }
.sf-notif__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--sf-dim);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.sf-notif__meta span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sf-notif__meta time {
    flex-shrink: 0;
    padding: 2px 9px;
    border-radius: 999px;
    background: rgba(236, 72, 153, .14);
    color: #f9a8d4;
    letter-spacing: .02em;
    text-transform: none;
}
.sf-notif__title {
    margin: 6px 0 4px;
    color: var(--sf-text);
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: -.01em;
}
.sf-notif__text { color: var(--sf-muted); font-size: 15px; line-height: 1.6; }

/* ---------- Khu đăng nhập / đăng ký ---------- */
.sf-auth {
    position: relative;
    display: grid;
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
    padding: clamp(20px, 4.5vw, 60px);
    border: 1px solid var(--sf-border);
    border-radius: 34px;
    background:
        radial-gradient(600px circle at 0% 0%, rgba(124, 58, 237, .22), transparent 60%),
        radial-gradient(500px circle at 100% 100%, rgba(249, 115, 22, .14), transparent 60%),
        linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .025));
}
@media (min-width: 992px) {
    .sf-auth { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
}
.sf-auth__copy .sf-h2 { margin-top: 18px; }

.sf-checks {
    display: grid;
    gap: 14px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}
.sf-checks li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #e4e0f5;
    font-size: 15.5px;
    font-weight: 500;
    line-height: 1.5;
}
.sf-checks .sf-ic {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    padding: 5px;
    border-radius: 50%;
    background: var(--sf-grad);
    color: #fff;
}

/* login_box: thẻ sáng nổi trên nền tối; z-index giữ icon/popup trong ngữ cảnh xếp lớp riêng */
.sf-auth__form {
    position: relative;
    z-index: 1;
    min-width: 0;
}
.sf-auth__form::before {
    content: "";
    position: absolute;
    inset: 8% -4% -6%;
    z-index: -1;
    border-radius: 40px;
    background: var(--sf-grad);
    opacity: .38;
    filter: blur(44px);
    pointer-events: none;
}

.sf-auth .box-cover {
    padding: 0;
    background: none;
}
.sf-auth .box-cover .container {
    width: 100%;
    max-width: none;
    padding: 0;
}
.sf-auth .box-cover .row { display: block; margin: 0; }
.sf-auth .box-cover .block-left { display: none; }
.sf-auth .box-cover .block-right {
    width: 100%;
    max-width: 100%;
    flex: none;
    padding: 0;
}
.sf-auth .box-cover .card {
    margin: 0;
    border: 0;
    border-radius: 22px;
    background: #fff;
    color: #1b1630;
}
.sf-auth .box-cover .card.shadow-lg {
    box-shadow: 0 40px 80px -36px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .08) !important;
}
.sf-auth .box-cover .card-body { padding: clamp(22px, 3vw, 34px); }
.sf-auth .box-cover .m-b-30 { margin-bottom: 24px !important; gap: 12px; }
.sf-auth .box-cover .img-fluid {
    max-width: 55%;
    max-height: 46px !important;
    object-fit: contain;
}
.sf-auth .box-cover h2 {
    margin: 0;
    color: #1b1630;
    font-family: var(--sf-font);
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -.02em;
}
.sf-auth .box-cover label,
.sf-auth .box-cover .font-weight-semibold {
    color: #3b3552;
    font-size: 14px;
    font-weight: 600;
}
.sf-auth .box-cover .form-group { margin-bottom: 16px !important; }
.sf-auth .box-cover .font-size-14 { color: #5d5677; }
.sf-auth .box-cover .input-affix .prefix-icon {
    left: 15px;
    color: #9a93b5;
    font-size: 15px;
}
.sf-auth .box-cover .input-affix .form-control:not(:first-child) {
    min-height: 48px;
    padding: .75rem 1rem .75rem 42px;
    border: 1px solid #e4e0f0;
    border-radius: 14px;
    background: #f7f6fb;
    color: #1b1630;
    font-family: var(--sf-font);
    font-size: 15px;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.sf-auth .box-cover .input-affix .form-control:not(:first-child)::placeholder { color: #a39cba; }
.sf-auth .box-cover .input-affix .form-control:not(:first-child):hover { border-color: #d3cce8; }
.sf-auth .box-cover .input-affix .form-control:not(:first-child):focus {
    border-color: #a78bfa;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, .14);
}
.sf-auth .box-cover a { color: #7c3aed; font-weight: 600; text-decoration: none; }
.sf-auth .box-cover a:hover,
.sf-auth .box-cover a:focus { color: #db2777; }
.sf-auth .box-cover .float-right { font-size: 13.5px !important; }

.sf-auth .box-cover .btn.btn-primary {
    min-height: 46px;
    padding: .7rem 1.6rem;
    border: 0;
    border-radius: 999px;
    background: var(--sf-grad);
    color: #fff;
    font-family: var(--sf-font);
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 14px 28px -14px rgba(236, 72, 153, .8), inset 0 1px 0 rgba(255, 255, 255, .25);
    transition: transform .2s var(--sf-ease), box-shadow .2s, filter .2s;
}
.sf-auth .box-cover .btn.btn-primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 18px 32px -14px rgba(236, 72, 153, .9), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.sf-auth .box-cover .btn.btn-primary:disabled { opacity: .65; transform: none; }
.sf-auth .box-cover #generate_email.btn {
    min-height: 0;
    padding: .45rem .95rem;
    background: #f1ecff;
    color: #6d28d9;
    font-size: 13px;
    box-shadow: none;
}
.sf-auth .box-cover #generate_email.btn:hover { background: #e7defe; filter: none; }

.sf-auth .box-cover .form-group.check-password {
    padding: 10px 12px;
    border: 1px solid #ebe7f6;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 20px 40px -18px rgba(27, 22, 48, .45);
    color: #3b3552;
    font-size: 14px;
}
.sf-auth .box-cover .form-group.check-password > div:first-child { font-weight: 700; color: #1b1630; padding: 2px 8px 4px; }
.sf-auth .box-cover .valid:before { color: #16a34a; }
.sf-auth .box-cover .form-group.re-check-password { color: #e11d48; font-size: 14px; }
.sf-auth .box-cover .term-agree label { color: #3b3552; }
.sf-auth .box-cover .lang-picker-row {
    margin-top: 6px;
    padding-top: 16px;
    border-top: 1px solid #f0edf7;
}

/* chọn ngôn ngữ — menu bị JS đưa ra body nên scope theo body.sf */
.sf .lang-picker,
.sf .lp-menu {
    --lp-bg: #fff;
    --lp-border: #e7e3f2;
    --lp-ink: #1b1630;
    --lp-ink-2: #4a4363;
    --lp-muted: #8e88a8;
    --lp-hover: #f5f3fb;
    --lp-primary: #7c3aed;
    --lp-primary-soft: rgba(124, 58, 237, .1);
}

/* ---------- Bảng giá ---------- */
.sf-pricebox {
    padding: clamp(16px, 3vw, 32px);
    border: 1px solid var(--sf-border);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .03));
}
.sf-pricebox__scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.sf-prices #label_table_prices {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 0 !important;
    margin-bottom: 18px !important;
    color: var(--sf-text);
}
.sf-prices #label_table_prices span { color: var(--sf-muted); font-size: 15px !important; font-weight: 600; }
.sf-prices #service-category-select {
    min-width: 180px;
    padding: 10px 40px 10px 14px;
    border: 1px solid var(--sf-border-2);
    border-radius: 12px;
    background: rgba(255, 255, 255, .06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23c4b5fd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px;
    color: var(--sf-text);
    font-family: var(--sf-font);
    font-size: 15px;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}
.sf-prices #service-category-select:focus,
.sf-prices .dataTables_wrapper .dataTables_length select:focus,
.sf-prices .dataTables_wrapper .dataTables_filter input:focus {
    outline: none;
    border-color: rgba(244, 114, 182, .6);
    box-shadow: 0 0 0 3px rgba(236, 72, 153, .18);
}
.sf-prices #service-category-select option,
.sf-prices .dataTables_length select option { background: #1a1530; color: var(--sf-text); }

.sf-prices .dataTables_wrapper { color: var(--sf-muted); font-size: 14px; }
.sf-prices .dataTables_wrapper label { color: var(--sf-muted); font-weight: 500; }
.sf-prices .dataTables_wrapper .dataTables_length select,
.sf-prices .dataTables_wrapper .dataTables_filter input {
    padding: 8px 10px;
    border: 1px solid var(--sf-border-2);
    border-radius: 10px;
    background-color: rgba(255, 255, 255, .06);
    color: var(--sf-text);
    font-family: var(--sf-font);
    font-size: 14px;
}
.sf-prices .dataTables_wrapper .dataTables_filter input { min-width: 0; max-width: 200px; margin-left: 8px; }
.sf-prices .dataTables_wrapper .dataTables_length select {
    margin: 0 6px;
    padding-right: 30px;
    background: rgba(255, 255, 255, .06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23c4b5fd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 9px center / 13px;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}
@media (max-width: 575.98px) {
    .sf-prices .dataTables_wrapper .dataTables_paginate .paginate_button {
        min-width: 30px;
        margin-left: 2px;
        padding: 5px 8px;
        font-size: 13px;
    }
    .sf-prices #table_prices thead th,
    .sf-prices #table_prices tbody td { padding: 12px 10px; }
}

.sf-prices table.dataTable {
    margin: 16px 0 !important;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
}
.sf-prices table.dataTable.no-footer { border-bottom: 0; }
.sf-prices #table_prices th,
.sf-prices #table_prices td {
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.sf-prices #table_prices thead th {
    padding: 13px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .045);
    color: #d8ccff;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.sf-prices #table_prices thead th:first-child { border-radius: 12px 0 0 0; }
.sf-prices #table_prices thead th:last-child { border-radius: 0 12px 0 0; }
.sf-prices #table_prices tbody td {
    padding: 14px 16px;
    color: #ece9fb;
    font-size: 14.5px;
    transition: background-color .2s;
}
.sf-prices #table_prices tbody tr:hover td { background-color: rgba(255, 255, 255, .04); }
.sf-prices #table_prices tbody tr:last-child td { border-bottom: 0; }
.sf-prices #table_prices tbody td:last-child {
    color: #f9a8d4 !important;
    font-weight: 700 !important;
    white-space: nowrap;
}
.sf-prices #table_prices td.dataTables_empty { color: var(--sf-muted); text-align: center; }

.sf-prices .dataTables_wrapper .dataTables_info { color: var(--sf-dim); font-size: 13px; }
.sf-prices .dataTables_wrapper .dataTables_paginate .paginate_button {
    min-width: 36px;
    margin-left: 4px;
    padding: 6px 12px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--sf-muted) !important;
    font-weight: 600;
}
.sf-prices .dataTables_wrapper .dataTables_paginate .paginate_button:not(.disabled):not(.current):hover {
    border-color: var(--sf-border);
    background: rgba(255, 255, 255, .08);
    color: var(--sf-text) !important;
}
.sf-prices .dataTables_wrapper .dataTables_paginate .paginate_button.current,
.sf-prices .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    border-color: transparent;
    background: var(--sf-grad);
    color: #fff !important;
    box-shadow: 0 8px 18px -10px rgba(236, 72, 153, .8);
}
.sf-prices .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.sf-prices .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    opacity: .4;
    color: var(--sf-muted) !important;
}
.sf-prices .dataTables_wrapper .dataTables_paginate .ellipsis { color: var(--sf-dim); }
/* ghi chú cấp bậc ngay dưới bảng (inline màu cam đậm → làm sáng cho nền tối) */
.sf-prices #table_prices_wrapper + div {
    margin-top: 14px !important;
    color: #fdba74 !important;
    font-size: 13.5px;
}

/* ---------- FAQ ---------- */
.sf-faq__grid {
    display: grid;
    gap: clamp(32px, 4vw, 64px);
    align-items: start;
}
@media (min-width: 992px) {
    .sf-faq__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
    .sf-faq__intro { position: sticky; top: 110px; }
}
.sf-faq__intro .sf-sub { max-width: 400px; margin-bottom: 26px !important; }
.sf-help {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 400px;
    margin-top: 28px;
    padding: 16px 18px;
    border: 1px solid var(--sf-border);
    border-radius: 20px;
    background: linear-gradient(120deg, rgba(124, 58, 237, .16), rgba(236, 72, 153, .08));
}
.sf-help__icon {
    position: relative;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--sf-grad);
    color: #fff;
    font-size: 22px;
}
.sf-help__icon::after {
    content: "";
    position: absolute;
    right: -3px;
    bottom: -3px;
    width: 12px;
    height: 12px;
    border: 2px solid #1a1430;
    border-radius: 50%;
    background: #22c55e;
}
.sf-help strong { display: block; color: var(--sf-text); font-size: 15px; font-weight: 700; }
.sf-help small { display: block; margin-top: 2px; color: var(--sf-muted); font-size: 13.5px; line-height: 1.5; }
.sf-faq__list { display: grid; gap: 12px; }
.sf-faq__item {
    border: 1px solid var(--sf-border);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .03));
    transition: border-color .3s, background-color .3s;
}
.sf-faq__item[open] {
    border-color: rgba(244, 114, 182, .32);
    background: linear-gradient(180deg, rgba(236, 72, 153, .09), rgba(124, 58, 237, .05));
}
.sf-faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    color: var(--sf-text);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
    list-style: none;
    cursor: pointer;
    border-radius: 20px;
}
.sf-faq__item summary::-webkit-details-marker { display: none; }
.sf-faq__item summary:focus-visible { outline: 2px solid #f9a8d4; outline-offset: 2px; }
.sf-faq__item summary .sf-ic {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    padding: 7px;
    border: 1px solid var(--sf-border);
    border-radius: 50%;
    background: rgba(255, 255, 255, .05);
    color: #f9a8d4;
    transition: transform .3s var(--sf-ease), background-color .3s;
}
.sf-faq__item[open] summary .sf-ic { transform: rotate(180deg); background: rgba(236, 72, 153, .18); }
.sf-faq__item p {
    padding: 0 20px 20px;
    color: var(--sf-muted);
    font-size: 15px;
    line-height: 1.7;
    animation: sf-fade-down .35s var(--sf-ease);
}
@keyframes sf-fade-down {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}

/* ---------- CTA cuối trang: viền gradient xoay ---------- */
@property --sf-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}
.sf-final { padding-top: clamp(24px, 4vw, 56px); padding-bottom: 0; }
.sf-cta {
    position: relative;
    padding: 1.5px;
    border-radius: 34px;
    background: conic-gradient(from var(--sf-angle), #7c3aed, #ec4899, #f97316, #ec4899, #7c3aed);
    animation: sf-angle 8s linear infinite;
    box-shadow: 0 40px 100px -40px rgba(236, 72, 153, .55);
}
@keyframes sf-angle { to { --sf-angle: 360deg; } }
.sf-cta__inner {
    position: relative;
    overflow: hidden;
    padding: clamp(44px, 7vw, 88px) clamp(20px, 5vw, 64px);
    border-radius: 33px;
    background:
        radial-gradient(500px circle at 50% 0%, rgba(236, 72, 153, .22), transparent 65%),
        radial-gradient(400px circle at 0% 100%, rgba(124, 58, 237, .25), transparent 60%),
        radial-gradient(400px circle at 100% 100%, rgba(249, 115, 22, .16), transparent 60%),
        #120e24;
    text-align: center;
}
.sf-cta .sf-h2 {
    margin-top: 0;
    font-size: clamp(2rem, 1.3rem + 3vw, 3.5rem);
}
.sf-cta .sf-sub { max-width: 520px; margin-inline: auto; text-wrap: balance; }
.sf-cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}
.sf-cta__spark {
    position: absolute;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--sf-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, .06);
    font-size: 20px;
    animation: sf-bob 6s ease-in-out infinite;
}
.sf-cta__spark--1 { left: 8%; top: 22%; color: #ff4f8b; transform: rotate(-10deg); }
.sf-cta__spark--2 { right: 9%; top: 18%; color: #fbbf24; animation-delay: -2s; }
.sf-cta__spark--3 { right: 14%; bottom: 16%; color: #c4b5fd; animation-delay: -4s; }
@keyframes sf-bob {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -10px; }
}
@media (max-width: 767.98px) {
    .sf-cta__spark { width: 36px; height: 36px; border-radius: 11px; font-size: 16px; }
    .sf-cta__spark--1 { left: 5%; top: 7%; }
    .sf-cta__spark--2 { right: 6%; top: 9%; }
    .sf-cta__spark--3 { display: none; }
    .sf-cta__actions { flex-direction: column; align-items: center; }
    .sf-cta__actions .sf-btn { width: 100%; max-width: 300px; }
}

/* ---------- Footer ---------- */
.sf-footer {
    margin-top: clamp(56px, 7vw, 96px);
    padding: clamp(44px, 5vw, 64px) 0 28px;
    background: linear-gradient(180deg, rgba(12, 10, 23, 0), rgba(8, 6, 16, .7));
}
.sf-footer::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #7c3aed 20%, #ec4899 50%, #f97316 80%, transparent);
    opacity: .7;
}
.sf-footer__grid {
    display: grid;
    gap: 36px;
}
@media (min-width: 768px) {
    .sf-footer__grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; }
}
.sf-footer__about p {
    max-width: 420px;
    margin-top: 16px;
    color: var(--sf-muted);
    font-size: 14.5px;
    line-height: 1.7;
}
.sf-footer__title {
    margin-bottom: 14px !important;
    color: var(--sf-text);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.sf-footer__list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--sf-muted);
    font-size: 14.5px;
}
.sf-footer__list--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
.sf-footer__list a {
    color: var(--sf-muted);
    text-decoration: none;
    transition: color .2s;
}
.sf-footer__list a:hover { color: var(--sf-text); text-decoration: none; }
.sf-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 20px;
    margin-top: 44px;
    padding-top: 22px;
    border-top: 1px solid var(--sf-border);
    color: var(--sf-dim);
    font-size: 13.5px;
}
.sf-footer__made { display: inline-flex; align-items: center; gap: 6px; }
.sf-footer__made .sf-ic { color: #f472b6; }
@media (max-width: 767.98px) {
    /* chừa chỗ cho nút liên hệ nổi góc phải */
    .sf-footer__bottom { padding-right: 76px; }
}

/* ---------- Nút lên đầu trang (góc trái, tránh widget liên hệ bên phải) ---------- */
.sf-top {
    position: fixed;
    left: 16px;
    bottom: 20px;
    z-index: 55;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--sf-border-2);
    border-radius: 15px;
    background: rgba(22, 18, 40, .72);
    -webkit-backdrop-filter: var(--sf-blur);
    backdrop-filter: var(--sf-blur);
    color: var(--sf-text);
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .3s, transform .3s var(--sf-ease), visibility 0s linear .3s, border-color .2s;
}
.sf-top.is-show {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
}
.sf-top:hover { color: #fff; border-color: rgba(244, 114, 182, .5); }

/* ---------- Hiện dần khi cuộn ---------- */
.js .sf [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
    transition: opacity .8s var(--sf-ease), transform .8s var(--sf-ease);
}
.js .sf [data-reveal].is-in {
    opacity: 1;
    transform: none;
}

/* ---------- Kính mờ cho thẻ chỉ bật ở màn lớn (mobile tiết kiệm GPU) ---------- */
@media (min-width: 768px) {
    .sf-card,
    .sf-stat,
    .sf-notif__card,
    .sf-auth,
    .sf-faq__item,
    .sf-pricebox,
    .sf-reel {
        -webkit-backdrop-filter: blur(14px) saturate(140%);
        backdrop-filter: blur(14px) saturate(140%);
    }
}

/* ---------- Tạm dừng chuyển động: tab ẩn hoặc hero khuất màn hình ---------- */
body.sf-paused .sf-aurora *,
body.sf-paused .sf-stage *,
body.sf-paused .sf-cta,
.sf-stage.is-idle,
.sf-stage.is-idle * {
    animation-play-state: paused !important;
}

/* ---------- Giảm chuyển động ---------- */
@media (prefers-reduced-motion: reduce) {
    .sf-aurora__blob,
    .sf-stage__orbit,
    .sf-video *,
    .sf-disc,
    .sf-ticker span,
    .sf-progress span,
    .sf-story__ring::before,
    .sf-chip--live::before,
    .sf-online i,
    .sf-flow__steps::after,
    .sf-cta,
    .sf-cta__spark,
    .sf-faq__item p,
    .sf-meter__bar span {
        animation: none !important;
    }
    .sf-toast {
        animation: none !important;
        opacity: 1;
        transform: none;
    }
    .sf-progress span { transform: scaleX(.42); }
    .sf-flow__steps::after { width: 33.3%; }
    .sf-fheart { display: none; }
    .js .sf [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .sf-btn,
    .sf-card,
    .sf-story__ring,
    .sf-notif__card,
    .sf-nav,
    .sf-top {
        transition: none !important;
    }
    .sf-btn:hover,
    .sf-card:hover,
    .sf-story:hover .sf-story__ring { transform: none; }
}
