:root {
    --container: 1500px;

    --orange: #FF5B1F;
    --line-orange: #ffb47b;
    --header-orange: #ffb47b;
    --soft-orange: #ffdbbf;

    --text: #111;
    --muted: #666;
    --bg: #fff;

    --shadow: 0 12px 26px rgba(0, 0, 0, .06);
}

@media (min-width: 821px) {
    .mobile-only {
        display: none !important;
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Be Vietnam Pro", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    scroll-behavior: smooth;
}

a {
    color: inherit;
    text-decoration: none;
}

.btn-text-mobile {
    display: none;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    width: min(var(--container), 92%);
    margin: 0 auto;
}

/* ===== Header ===== */
.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;
    /* border-bottom: 1px solid #f2f2f2; */
    margin-top: 20px;
    margin-bottom: 5px;
}

.topbar-inner {
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 220px;
}

.brand img {
    width: 68px;
    height: 68px;
    object-fit: contain;
}

.brand-name {
    font-weight: 900;
    font-size: 13px;
    letter-spacing: .2px;
    line-height: 1.1;
}

.brand-sub {
    margin-top: 2px;
    font-weight: 900;
    font-size: 11px;
    color: #2f6fff;
    letter-spacing: .4px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 15px;
    font-weight: 600;
    color: #444;
}

.nav a {
    padding: 8px 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.nav a:hover {
    background: #fafafa;
    color: var(--orange);
}

.nav a.active {
    color: var(--orange);
    font-weight: 900;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* ===== Mobile Menu Overlay ===== */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease-in-out;
    backdrop-filter: blur(2px);
}

.mobile-menu-overlay.active {
    visibility: visible;
    opacity: 1;
}

.mobile-menu-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    background: #fff;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.mobile-menu-overlay.active .mobile-menu-inner {
    transform: translateY(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.mobile-menu-header .brand img {
    height: 51px;
    width: auto;
}

.close-menu {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #333;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    padding-top: 10px;
}

.mobile-nav a {
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    border-bottom: 1px solid #f8f8f8;
    transition: background 0.2s;
}

.mobile-nav a:last-child {
    border-bottom: none;
}

.mobile-nav a.active {
    color: var(--orange);
}

/* ===== Hero ===== */
.hero-wrap {
    background: url('../images/bg-header.png') no-repeat center center;
    background-size: cover;
    padding: 26px 0 28px;
}

.hero {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 22px;
    align-items: center;
}

.hero h1 {
    margin: 0 0 6px;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: .2px;
}

.hero h1 span {
    color: #ff4f00;
}

.hero .kicker {
    font-size: 16px;
    font-weight: 900;
    color: #ff4f00;
    margin-bottom: 10px;
}

.hero .desc {
    margin: 0 0 14px;
    font-size: 14px;
    /* color: #7a3a1f; */
    line-height: 1.55;
    max-width: 620px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 25px 0;
}

.btn {
    border: 0;
    cursor: pointer;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 10px 18px rgba(0, 0, 0, .08);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    user-select: none;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, .12);
}

.btn.primary {
    background: var(--orange);
    color: #fff;
}

.btn.primary:hover {
    background: #fff;
    color: var(--orange);
}

.btn.ghost {
    background: #fff;
    color: #ff4f00;
}

.btn.ghost:hover {
    background: var(--orange);
    color: #fff;
}

.hero-badges {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    align-items: center;
    /* color: #7a3a1f; */
    font-size: 12px;
    font-weight: 700;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.badge img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.hero-right {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    align-content: start;
}

.hero-right .mini,
.hero-right .mini.small {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.hero-right .mini:nth-child(1) {
    animation-delay: 0.2s;
}

.hero-right .mini:nth-child(2) {
    animation-delay: 0.4s;
}

.hero-right .mini:nth-child(3) {
    animation-delay: 0.6s;
}

.hero-right .mini.small:nth-child(4) {
    animation-delay: 0.8s;
}

.hero-right .mini.small:nth-child(5) {
    animation-delay: 1.0s;
}

.hero-right .mini.small:nth-child(6) {
    animation-delay: 1.2s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mini {
    background: rgba(255, 255, 255, .55);
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 12px;
    padding: 10px 10px;
    box-shadow: 0 10px 30px rgba(255, 106, 43, .10);
    text-align: center;
    backdrop-filter: blur(4px);
}

.mini b {
    display: block;
    font-size: 22px;
    color: #ff4f00;
    font-weight: 900;
}

.mini span {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    font-weight: 900;
    color: #2A2A2A;
}

.mini.small {
    grid-column: 2 / span 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 8px;
    width: 100%;
}

.mini.small img {
    width: 12px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.mini.small span {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
    white-space: nowrap;
}

/* ===== Section title ===== */
.section {
    padding: 40px 0 0;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    line-height: 1.3;
    font-weight: 800;
    margin: 0 0 20px;
    color: #2b2b2b;
}

.section-title img {
    height: 23px;
    width: auto;
    object-fit: contain;
}

/* ===== Plan boxes - match screenshots ===== */
.plan-box {
    border: 2px solid var(--line-orange);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
}

/* ===== Scroll reveal + focus effect ===== */
/* .scroll-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s cubic-bezier(.2, .9, .2, 1), transform .55s cubic-bezier(.2, .9, .2, 1);
    will-change: opacity, transform;
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
} */

.scroll-target-focus {
    animation: scrollTargetFocus 900ms cubic-bezier(.2, .9, .2, 1);
}

@keyframes scrollTargetFocus {
    0% {
        box-shadow: 0 0 0 rgba(255, 91, 31, 0);
        transform: translateY(0);
    }
    35% {
        box-shadow: 0 0 0 10px rgba(255, 91, 31, .12);
        transform: translateY(-2px);
    }
    100% {
        box-shadow: 0 0 0 rgba(255, 91, 31, 0);
        transform: translateY(0);
    }
}

.plan-grid {
    display: grid;
    grid-template-columns: 280px 1fr 280px;
}

.plan-head {
    background: var(--header-orange);
    font-weight: 800;
    color: #111;
    font-size: 15px;
    text-align: center;
}

.plan-head>div {
    padding: 16px 12px;
    border-right: 2px solid rgba(255, 255, 255, .55);
}

.plan-head>div:last-child {
    border-right: 0;
}

.plan-item {
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    background: #fff;
}

.plan-item>div {
    padding: 16px 18px;
    border-right: 2px solid #ffd8c3;
}

.plan-item>div:last-child {
    border-right: 0;
}

.plan-divider {
    height: 1px;
    background: #ffd8c3;
}

.plan-left {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

.plan-mid-top {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: #111;
    font-size: 15px;
}

.plan-mid-top .code {
    font-weight: 800;
    color: var(--orange);
}

.plan-right {
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 0 !important;
}

.plan-mid-body {
    grid-column: span 2;
    background: var(--soft-orange);
    padding: 14px 16px !important;
    border-top: 1px solid #ffd8c3;
    border-right: 0 !important;
}

.hot-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--orange);
    color: #fff;
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
}

.hot-pill img {
    height: 16px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.plan-name {
    color: var(--orange);
    font-weight: 900;
    font-size: 18px;
    /* line-height: 1.5; */
}

.plan-price {
    font-weight: 500;
    font-size: 12px;
    color: #111;
    margin-bottom: 5px;
    margin-top: 5px;
}

.plan-quota {
    font-weight: 800;
    color: var(--orange);
    font-size: 13px;
    /* margin-top: 4px; */
}


.plan-mid-body {
    background: var(--soft-orange);
    padding: 14px 16px;
}

.plan-mid-body ul {
    margin: 0;
    padding-left: 18px;
    font-size: 12px;
    line-height: 1.7;
    color: #111;
    font-weight: 500;
}

.plan-mid-body li {
    margin: 2px 0;
}

.plan-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    background: var(--orange);
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    transition: transform .2s;
}

.btn-pill:hover {
    transform: scale(1.04);
}

.btn-pill img {
    height: 17px;
    width: auto;
    object-fit: contain;
}

.cell-empty {
    background: #fff;
}

/* ===== Layout: 2 columns (ngày / tháng) ===== */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-top: 50px;
}

.grid-2 .plan-grid,
.grid-2 .plan-item {
    grid-template-columns: 140px 1fr 140px;
}

.grid-2 .plan-item>div {
    padding: 14px 10px;
}

.grid-2 .btn-pill {
    padding: 10px 12px;
}

/* ===== FAQ box (match screenshot #4) ===== */
.faq-box {
    border: 2px solid var(--line-orange);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow);
}

.faq-head {
    background: var(--header-orange);
    padding: 16px 18px;
    font-weight: bold;
    color: #111;
    font-size: 16px;
}

.faq-body {
    padding: 16px 18px 18px;
}

.faq-body ul {
    margin: 0;
    padding-left: 18px;
    color: #111;
    font-size: 13px;
    line-height: 1.85;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 14px;
}

/* ===== Footer ===== */
footer {
    border-top: 2px solid var(--orange);
    padding: 30px 0 20px;
    margin-top: 50px;
    background: #fff;
}

.footer-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.footer-logo img {
    width: 89px;
    height: 89px;
    object-fit: contain;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.footer-left {
    flex: 1;
}

.company-name {
    margin: 0 0 12px;
    color: var(--orange);
    font-size: 18px;
    font-weight: 800;
}

.footer-info {
    font-size: 14px;
    line-height: 1.8;
    color: #333;
    font-weight: 500;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    text-align: right;
}

.hotline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 999px;
    background: #fff1e9;
    border: 1.5px solid #f39b71;
    font-size: 15px;
    color: #666;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .05);
}

.hotline img {
    height: 20px;
    width: auto;
    flex-shrink: 0;
}

.hotline a {
    color: var(--orange);
    font-weight: 800;
    transition: color 0.3s ease;
}

.hotline a:hover {
    color: #e64500;
    text-decoration: underline;
}

.footer-links a {
    font-size: 13px;
    color: #666;
    /* font-weight: 600; */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--orange);
}

.copyright {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #999;
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-right {
        grid-template-columns: repeat(3, 1fr);
    }

    .plan-item,
    .plan-grid {
        grid-template-columns: 240px 1fr 240px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-right {
        align-items: center;
    }

    .footer-links {
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 900px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .nav {
        display: none;
    }
}

@media (max-width: 820px) {
    .desktop-only {
        display: none !important;
    }

    .topbar {
        margin-top: 10px;
    }

    .menu-toggle {
        display: flex;
    }

    .brand {
        min-width: auto;
    }

    .brand img {
        width: 51px;
        height: 51px;
    }

    .hero-wrap {
        padding: 20px 0 30px;
    }

    .hero h1 {
        font-size: 24px;
        line-height: 1.2;
    }

    .hero .kicker h1 {
        font-size: 24px;
    }

    .hero .desc {
        font-size: 14px;
        margin-bottom: 25px;
    }

    .hero-actions {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 12px;
        margin: 20px 0;
    }

    .hero-actions .btn {
        width: auto;
        flex: 1 1 0;
        justify-content: center;
        padding: 14px 10px;
        font-size: 14px;
        white-space: nowrap;
    }

    .btn-text-desktop {
        display: none;
    }

    .btn-text-mobile {
        display: inline;
    }

    .hero-right {
        display: none;
    }

    .hero-badges {
        flex-direction: row;
        gap: 15px;
        justify-content: flex-start;
    }

    .plan-item,
    .plan-grid {
        grid-template-columns: 1fr;
    }

    .grid-2 {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .plan-head {
        display: none;
    }

    .plan-box {
        border: none;
        margin-bottom: 20px;
        background: transparent;
        overflow: visible;
    }

    /* ===== MOBILE PLAN ITEM (V4 PRECISE) ===== */
    .plan-item-mobile {
        position: relative;
        display: flex;
        flex-direction: column;
        background: #fff0e5;
        border: 1px solid #ff9d66;
        border-radius: 20px;
        margin-bottom: 25px;
        overflow: visible;
    }

    .plan-item-mobile-header {
        padding: 35px 15px 10px;
        position: relative;
    }

    .plan-item-mobile .hot-pill {
        position: absolute;
        top: -12px;
        left: 0px;
        z-index: 2;
        padding: 4px 12px;
        font-size: 13px;
        font-weight: 700;
        color: #fff;
        background: var(--orange);
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(255, 111, 0, 0.2);
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .plan-item-mobile .hot-pill img {
        width: 14px;
        height: 14px;
    }

    .plan-item-mobile .plan-name {
        font-size: 20px;
        font-weight: 800;
        margin-bottom: 4px;
        color: var(--orange);
    }

    .plan-item-mobile .plan-price {
        font-size: 16px;
        font-weight: 600;
        color: #111;
        margin: 0;
    }

    .plan-item-mobile .plan-mid-top {
        display: block;
        font-size: 18px;
        font-weight: 800;
        color: var(--orange);
        margin-top: 3px;
    }

    .plan-item-mobile .plan-right {
        position: absolute;
        top: 35px;
        right: 15px;
    }

    .plan-item-mobile .btn-pill {
        background: var(--orange);
        color: #fff;
        padding: 10px 20px;
        border-radius: 30px;
        font-weight: 700;
        font-size: 14px;
        border: none;
        display: flex;
        align-items: center;
        gap: 8px;
        box-shadow: 0 4px 12px rgba(255, 111, 0, 0.3);
    }

    .plan-item-mobile .plan-mid-body {
        background: #fff;
        border-radius: 0 0 20px 20px;
        padding: 20px 15px !important;
        border-top: 1px solid #ff9d66;
    }

    .plan-item-mobile .plan-quota-label {
        display: block;
        font-size: 18px;
        font-weight: 800;
        color: var(--orange);
        margin-bottom: 15px;
    }

    .plan-item-mobile ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .plan-item-mobile li {
        position: relative;
        padding-left: 20px;
        margin-bottom: 10px;
        font-size: 14px;
        color: #333;
        line-height: 1.4;
    }

    .plan-item-mobile li::before {
        content: "•";
        position: absolute;
        left: 0;
        color: #333;
        font-weight: bold;
    }

    .section-title {
        font-size: 20px;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .footer {
        padding: 40px 0 20px;
        border-top-width: 4px;
    }

    .footer-logo img {
        width: 80px;
        height: 80px;
    }

    .footer-inner {
        gap: 20px;
    }

    .company-name {
        font-size: 16px;
        text-align: center;
    }

    .footer-info {
        text-align: center;
        font-size: 13px;
    }

    .footer-right {
        width: 100%;
    }

    .hotline {
        width: 100%;
        justify-content: center;
        padding: 14px;
        font-size: 14px;
    }

    .footer-links {
        width: 100%;
        align-items: center;
        gap: 15px;
        margin-top: 10px;
    }

    .footer-links a {
        font-size: 13px;
    }
}

/* ===== Registration Popup ===== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    backdrop-filter: blur(4px);
    padding: 20px;
}

.popup-overlay.active {
    display: flex;
}

.popup-content {
    background: #FFE0C8;
    width: 100%;
    max-width: 420px;
    padding: 35px 25px 30px;
    border-radius: 28px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    border: 1.5px solid #ff9d66;
    animation: popupScale 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popupScale {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.popup-content h3 {
    color: var(--orange);
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 25px;
}

.syntax-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.syntax-label {
    font-size: 20px;
    font-weight: 800;
    color: #111;
}

.syntax-value-box {
    border: 1.5px solid #ff9d66;
    background: #fff;
    border-radius: 12px;
    padding: 10px 20px;
    font-size: 20px;
    font-weight: 800;
    color: #111;
    display: flex;
    align-items: center;
    gap: 8px;
}

.orange-code {
    color: var(--orange);
}

.btn-close-popup {
    width: 100%;
    background: var(--orange);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 999px;
    font-size: 20px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(255, 79, 0, 0.3);
    transition: transform 0.2s, background 0.2s;
}

.btn-close-popup:hover {
    transform: translateY(-2px);
    background: #e64600;
}

.btn-close-popup:active {
    transform: translateY(0);
}