/* * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
} */

/* ===================== FONTS ===================== */
@font-face {
    font-family: 'SVN-Poppins';
    src: url('/fonts/SVN-Poppins.woff2') format('woff2');
    font-weight: 400;
}

@font-face {
    font-family: 'SVN-Poppins';
    src: url('/fonts/SVN-PoppinsSemiBold.woff2') format('woff2');
    font-weight: 600;
}

@font-face {
    font-family: 'SVN-Poppins';
    src: url('fonts/SVN-PoppinsBold.woff2') format('woff2');
    font-weight: 700;
}


body {
    font-family: 'SVN-Poppins', sans-serif;
    background: linear-gradient(-30deg, #2c1f1f, #000000);
    color: #fff;
    min-width: 1040px;
    overflow-x: hidden;
}

.header {
    position: fixed;
    top: 0;
    font-family: 'SVN-Poppins', sans-serif;
    width: 90%;
    padding: 1.2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(20px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 700;
    font-size: 1.9rem;
}

.logo img {
    width: 46px;
}

.nav a {
    color: #aaa;
    text-decoration: none;
    margin-left: 0.9rem;
    font-weight: 500;
    position: relative;
    font-family: 'SVN-Poppins', sans-serif;
    transition: color 0.4s;
}

.nav a:hover,
.nav a.active {
    color: #fff;
}

.nav a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #ddd;
}


.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0rem;
    max-width: 1800px;
    margin: 0 auto;
    min-height: 20vh;
    position: relative;
}

.content-left {
    flex: 1;
    max-width: 620px;
    z-index: 999;
    margin-top: 190px;
}

.badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'SVN-Poppins', sans-serif;
    letter-spacing: 1.5px;
    margin-bottom: 2rem;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
}

h1 {
    font-size: 2.8rem;
    font-family: 'SVN-Poppins', sans-serif;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.highlight {
    background: linear-gradient(90deg, #ff4d6d, #00d4ff, #ffd700, #ff4d6d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 400%;
    animation: gradientShift 2s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.desc {
    font-size: 1.15rem;
    color: #bbb;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    max-width: 520px;
}

.download-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;

}

.btn {
    padding: 1.2rem 2.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-family: 'SVN-Poppins', sans-serif;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    font-size: 1.1rem;
}

.pc-btn {
    background: #e53256;
    color: white;
}

.mobile-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #ddd;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.btn .text-wrapper {
    display: flex;
    flex-direction: column;
}

.win-icon {
    width: 30px;
    height: 40px;
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* Subtext nhỏ, hiển thị dưới nút */
.btn .sub {
    display: block;
    /* bắt buộc xuống dòng */
    font-size: 0.85rem;
    /* chữ nhỏ hơn */
    font-weight: 400;
    /* chữ thường */
    opacity: 0.8;
    /* mờ nhẹ */
    margin-top: 0.2rem;
    /* cách dòng trên nhỏ */
}

.pc-btn:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(255, 77, 109, 0.5);
}

.mobile-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

/* === MOCKUP MỚI: 3 CỬA SỔ + ĐƯỜNG CONG === */
.content-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    pointer-events: none;
}

.mockup-container {
    position: relative;
    width: 900px;
    overflow: visible;
    /* Thay vì hidden */
    height: 700px;
    perspective: 1500px;
}

.mockup-window {
    position: absolute;
    /*     transform: rotateY(-30deg) rotateX(15deg); */
    right: -180px;
    transition: transform 0.6s ease;
}

.mockup-window img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.window-1 {
    width: 55%;
    height: 90%;
    top: 90px;
    overflow: visible;
    /* video không bị cắt */
    right: -80px;
    transform: rotateY(-30deg) rotateX(25deg);
    transform-style: preserve-3d;
    /* Giữ chiều sâu cho children */
    z-index: 2;
    border-radius: 10px;
}

.phone-screen video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.window-2 {
    width: 80%;
    height: 70%;
    top: 130px;
    left: 20%;
    z-index: 1;
    border-radius: 5px;
    animation: iphoneSlideIn 1s ease-out forwards;
}


.window-3 {
    width: 45%;
    height: 50%;
    top: 340px;
    right: 252px;
    /*  border-radius: 40px; */
    transform: rotateY(15deg) rotateX(10deg);
    z-index: 3;
}

.mockup-window:hover {
    transform: translateY(-10px) scale(1.02) !important;
}

/* === ĐƯỜNG CONG CHỈ BORDER, KHÔNG CÓ NỀN === */
.gradient-curve {
    position: absolute;
    border-radius: 50%;
    border: 3px solid rgba(255, 77, 109, 0.6);
    /* màu border, có thể chỉnh alpha */
    background: transparent;
    /* loại bỏ nền */
    animation: floatCurve 7s ease-in-out infinite;
}

.curve-1 {
    width: 350px;
    height: 350px;
    top: 110px;
    right: 150px;
    animation-delay: 0s;
}

.curve-2 {
    width: 550px;
    height: 550px;
    top: 110px;
    transform: translateY(-18px) rotate(2deg) scale(1.02);
    right: -100px;
    border-color: rgba(255, 139, 171, 0.4);
    /* border mờ hơn */
    animation-delay: -5s;
}

.curve-3 {
    width: 450px;
    height: 450px;
    top: 140px;
    right: 50px;
    border-color: rgba(0, 212, 255, 0.2);
    /* border mờ nhất */
    animation-delay: -10s;
}

@keyframes floatCurve {

    0%,
    100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }

    33% {
        transform: translateY(-12px) rotate(32deg) scale(0.60);
    }


    96% {
        transform: translateY(-9px) rotate(-12deg) scale(0.98);
    }
}



.footer {
    text-align: center;
    /*     padding: 1rem 0;  */
    color: #ffffff;
    font-weight: 400;
    font-family: 'SVN-Poppins', sans-serif;
}

.footer-line {
    width: 180px;
    height: 8px;
    background: linear-gradient(90deg, #ff4d6d, #00d4ff);
    margin: 0 auto 1rem;
    border-radius: 3px;
}

.iphone-wrapper {
    position: absolute;
    top: 55%;
    left: 90%;
    transform: translate(-50%, -50%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease 0.2s;
    z-index: 1999;
    will-change: transform, opacity;
    animation: iphoneSlideIn 1s ease-out forwards;
    /* chạy animation */
}

/*   @keyframes iphoneSlideIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) rotateY(-60deg) translateX(100px) translateY(-50px);
    }

    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) rotateY(-40deg) translateX(30px) translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) rotateY(-35deg) translateX(0) translateY(0);
    }
}
*/
.iphone {
    width: 290px;
    height: 644px;
    border-radius: 40px;
    background: linear-gradient(145deg, #0a0a0a, #111111);
    border: 6px solid #1a1a1a;
    overflow: hidden;
    position: relative;
    isolation: isolate;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.6),
        0 0 0 3px rgba(255, 255, 255, 0.03) inset,
        0 0 20px rgba(255, 255, 255, 0.05) inset;
    transition: width 0.2s ease, height 0.2s ease;
}

.iphone::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(480px 240px at 65% 10%, rgba(255, 255, 255, 0.05), transparent 60%);
    z-index: 1;
}

.iphone::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), transparent 70%);
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 28px;
    border-radius: 0 0 16px 16px;
    background: #111;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
    z-index: 50;
}

.phone-btn-power,
.phone-btn-volume {
    position: absolute;
    border-radius: 2px;
    background: #222;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.phone-btn-power {
    width: 6px;
    height: 36px;
    top: 120px;
    right: -8px;
}

.phone-btn-volume {
    width: 4px;
    height: 28px;
    top: 160px;
    left: -6px;
}

.screen {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 36px;
    overflow: hidden;
    background: #000;
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.03);
}

.video-wrap {
    position: relative;
    width: 100%;
    height: 100%;
}

video.player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 36px;
}

.iphone-gloss {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 60%);
    border-radius: 40px;
}

.iphone-shadow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 40px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.5), 0 10px 50px rgba(0, 0, 0, 0.4);
    z-index: 5;
}

/* Chat CSS (basic) */
.chat {
    position: absolute;
    bottom: 84px;
    left: 12px;
    width: 95%;
    display: flex;
    flex-direction: column-reverse;
    pointer-events: none;
    max-height: 28%;
    overflow: hidden;
    z-index: 15;
    -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0));
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0));
}
.software-tabs-section {
   /*  padding: 80px 20px;
    background-color: #f5f7fa; */
    text-align: center;
}
.software-tabs-section .container {
    max-width: 1100px;
    margin: 0 auto;
}
.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}
.section-desc {
    font-size: 1.1rem;
    color: rgb(248, 199, 37);
    margin-bottom: 50px;
}

.tabs {
    text-align: left;
}
.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}
.tab-btn {
    background: #fff;
    border: 2px solid #ddd;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.tab-btn.active, .tab-btn:hover {
    background: linear-gradient(90deg,#ff6a00,#ff9900);
    color: #fff;
    border-color: #ff9900;
}
.tab-contents {
    display: flex;
    justify-content: center;
}
.tab-content {
    display: none;
    max-width: 800px;
    text-align: center;
    animation: fadeIn 0.5s ease forwards;
}
.tab-content.active {
    display: block;
}
.tab-img {
    max-width: 100%;
    border-radius: 16px;
    margin-bottom: 20px;
}
.tab-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}
.tab-content p {
    font-size: 1rem;
    color: #ffffff;
    line-height: 1.6;
}

/* animation */
@keyframes fadeIn {
    from {opacity:0; transform: translateY(20px);}
    to {opacity:1; transform: translateY(0);}
}

.chat-item {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    background: rgba(0, 0, 0, .45);
    color: #fff;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 8px;
    margin-bottom: 6px;
    opacity: 0;
    animation: fadein .28s forwards;
    max-width: 420px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}

.chat-avatar {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    object-fit: cover;
    background: #2b2b31;
    flex-shrink: 0
}

.chat-username {
    font-weight: 700;
    margin-right: 4px;
    margin-top: 3px;
    white-space: nowrap
}

.chat-text {
    line-height: 1.35;
    margin-top: 3px;
    word-break: break-word
}

.chat-item.gift {
    background: linear-gradient(135deg, rgba(255, 0, 80, .78), rgba(255, 58, 128, .68));
    font-weight: 650
}

@keyframes fadein {
    to {
        opacity: 1
    }
}

/* ================== Overlay ================== */
.overlay {
    position: absolute;
    top: 30px;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* để overlay không chắn click */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px;
    box-sizing: border-box;
    z-index: 20;
}

/* ================== Topbar ================== */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: auto;
    /* bật click cho nút theo dõi */
}

/* ================== Streamer info ================== */
.streamer {
    display: flex;
    align-items: center;
    background-color: #0a0a0a11;
    padding: 4px;
    border-radius: 7px;
    gap: 5px;
}

.streamer .avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid rgba(184, 14, 14, 0.842);
    object-fit: cover;
}

.streamer .info {
    display: flex;
    flex-direction: column;
    color: #fff;
    font-size: 8px;
}

.streamer .info .name {
    font-weight: 600;
}

.streamer .info .followers {
    font-size: 8px;
    color: rgba(255, 255, 255, 0.7);
}

/* ================== Follow button ================== */
.follow-btn {
    background-color: #ff2d55;
    border: none;
    border-radius: 12px;
    padding: 4px 10px;
    color: #fff;
    font-size: 7px;
    font-weight: 600;
    cursor: pointer;
    pointer-events: auto;
    transition: background 0.2s;
}

.follow-btn:hover {
    background-color: #ff5470;
}

/* ================== Live pill ================== */
.live-pill {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 0, 0, 0.85);
    color: #fff;
    font-size: 7px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 12px;
}

.live-pill .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
}

/* ================== Composer ================== */
.composer {
    position: absolute;
    bottom: 16px;
    /* cách đáy màn hình iPhone */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 280px;
    /* giới hạn vừa với màn hình iPhone */
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 24px;
    padding: 6px 12px;
    box-sizing: border-box;
    pointer-events: auto;
    z-index: 30;
}


/* Input area */
.composer-input {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.composer-input span {
    font-size: 6px;
}

.composer-input input.input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    color: #fff;
    font-size: 10px;
    padding: 4px 0;
}

.composer-input input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Composer actions (buttons) */
.composer-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
}

.composer-actions .icon-btn {
    /*   background: #ff2d55; */
    border: none;
    /*  border-radius: 50%; */
    width: 20 px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

/* ================== iPhone Notch ================== */
.phone-notch {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 30px;
    border-radius: 20px;
    background: #000;
    z-index: 5;
}

/* ================== Power Button ================== */
.phone-btn-power {
    position: absolute;
    width: 6px;
    height: 36px;
    top: 120px;
    right: -8px;
    border-radius: 3px;
    background: linear-gradient(145deg, #222, #111);
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.6),
        inset 0 1px 1px rgba(255, 255, 255, 0.08);
    transition: background 0.2s, transform 0.2s;
}

.phone-btn-power:hover {
    background: linear-gradient(145deg, #333, #222);
    transform: translateY(-1px);
}

/* ================== Volume Buttons ================== */
.phone-btn-volume {
    position: absolute;
    width: 4px;
    height: 28px;
    top: 160px;
    left: -6px;
    border-radius: 2px;
    background: linear-gradient(145deg, #222, #111);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.08);
    transition: background 0.2s, transform 0.2s;
}

.phone-btn-volume:hover {
    background: linear-gradient(145deg, #333, #222);
    transform: translateY(-1px);
}


.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0);
    color: #fff;
    border: none;
    font-size: 2rem;
    padding: 10px;
    cursor: pointer;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.slides {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5rem 4rem 5rem;
    max-width: 1800px;
    margin: 0 auto;
    min-height: 20vh;
    position: relative;
}

.slides {
    display: block;
}

.slide {
    display: none;
    width: 100%;
}

.slide.active {
    display: flex;
    justify-content: space-between;
}

#giftList {
    position: absolute;
    /* hoặc fixed nếu muốn cố định màn hình */
    display: grid;
    grid-template-columns: repeat(7, 3fr);
    gap: 7px;
    background: rgba(0, 0, 0, 0.603);
    justify-items: center;
    padding: 20px;
    /*  top: 200px;
    left: 220px; */
    border-radius: 7px;
    z-index: 99999;
}


.gift-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 8px;
    border-radius: 7px;
    padding: 10px;
    background: #7575752a;
    transition: transform 0.3s, box-shadow 0.3s;
}

.gift-item:hover img {
    transform: scale(1.1);
}

.gift-item .gift-name {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 4px;
}

.gift-item .diamond-count {
    font-weight: 700;
    color: #ff2d55;
    font-size: 12px;
}