﻿/* === BẮT ĐẦU: TĂNG KÍCH THƯỚC POP-UP TRÊN LAPTOP === */
@media (min-width: 1200px) {
    .modal {
        max-width: 1300px; /* Tăng chiều rộng tối đa */
    }

    .modal-content {
        padding: 40px 50px; /* Tăng padding cho cân đối */
    }

    .modal-body {
        gap: 50px; /* Tăng khoảng cách giữa 2 cột */
    }
}
/* === KẾT THÚC === */

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #e0e0e0;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1002;
}

.modal-content {
    padding: 40px 42px;
}

    .modal-content h4 {
        color: #6e6e73;
        font-weight: 600;
    }

    .modal-content h3 {
        font-size: 2.5rem;
        font-weight: 700;
        margin-top: 5px;
        margin-bottom: -5px;
    }

.modal-body {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

    .modal-body p {
        flex: 1;
        line-height: 1.6;
        color: #333;
    }

    .modal-body #modal-image {
        flex: 1;
        max-width: 50%;
        height: auto;
        border-radius: 12px;
    }

        .modal-body #modal-image[src=""] {
            display: none;
        }


.modal.image-view {
    top: 50%;
    left: 50%;
    width: auto;
    height: auto;
    max-width: 95vw;
    max-height: 95vh;
    padding: 0;
    background: transparent;
    overflow: visible;
}

    .modal.image-view .modal-content {
        padding: 0;
        background: transparent;
        box-shadow: none;
        width: auto;
        height: auto;
        max-height: 100%;
    }

    .modal.image-view .modal-close {
    display: flex;
    position: absolute;
    top: 12px;
    right: 12px;
    background: #fff;
    color: #c00;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 2rem;
    font-weight: bold;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0.95;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    }
    .modal.image-view .modal-close:hover {
        background: #ffeaea;
        color: #a00;
        box-shadow: 0 4px 16px rgba(192,0,0,0.18);
    }

    .modal.image-view h4, .modal.image-view h3, .modal.image-view p {
        display: none;
    }

    .modal.image-view #modal-image {
        max-width: 86vw;
        max-height: 86vh;
        object-fit: contain;
        border-radius: 12px;
        flex: none;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease-in-out;
    }

        .modal.image-view #modal-image:hover {
            transform: scale(1.01);
            filter: brightness(1.02);
        }


.modal-full-width-wrapper {
    margin: 40px -50px -40px -50px;
}

.modal-benefits-section {
    background-color: #f9f9f9;
    padding: 25px 50px;
    text-align: left;
}

.modal-faq-section {
    padding: 25px 50px;
    text-align: left;
    border-top: 1px solid #e5e5e5;
}

    .modal-benefits-section h3, .modal-faq-section h3 {
        font-size: 1.5rem;
        margin-top: 0;
        margin-bottom: 15px;
    }

.package-description {
    font-size: 15px;
}

.package-price {
    font-size: 18px;
}

.modal-benefits-section, .modal-faq-section, .faq-answer {
    font-size: 1rem;
}

.faq-question {
    font-size: 1rem;
}

/* === BẮT ĐẦU: CHỈNH SỬA CHIỀU RỘNG GÓI DỊCH VỤ === */
/* Tại đây bạn có thể thay đổi chiều rộng tối thiểu và tối đa của các ô chọn gói CHO TỪNG DỊCH VỤ CỤ THỂ. */
/* Ví dụ: minmax(250px, 350px) nghĩa là chiều rộng nhỏ nhất là 250px và lớn nhất là 350px */

.packages-container {
    display: grid;
    justify-content: center; /* Căn giữa các ô nếu còn khoảng trống */
    gap: 15px;
    margin: 25px 0;
    width: 100%;
}

/* --- TÙY CHỈNH CHO TỪNG DỊCH VỤ --- */

/* Gói YouTube */
.youtube-packages {
    grid-template-columns: repeat(auto-fit, minmax(10px, 301px));
}

/* Gói Netflix */
.netflix-packages {
    grid-template-columns: repeat(auto-fit, minmax(250px, 550px));
}

/* Gói Spotify */
.spotify-packages {
    grid-template-columns: repeat(auto-fit, minmax(250px, 450px));
}

/* Gói ChatGPT */
.chatgpt-packages {
    grid-template-columns: repeat(auto-fit, minmax(150px, 300px));
}

/* Gói SuperGrok */
.supergrok-packages {
    grid-template-columns: repeat(auto-fit, minmax(250px, 350px));
}

/* Gói Gemini */
.gemini-packages {
    grid-template-columns: repeat(auto-fit, minmax(250px, 350px));
}
/* Gói Canva */
.canva-packages {
    grid-template-columns: repeat(auto-fit, minmax(250px, 450px));
}

/* Gói Duolingo */
.duolingo-packages {
    grid-template-columns: repeat(auto-fit, minmax(250px, 450px));
}

/* === KẾT THÚC: CHỈNH SỬA CHIỀU RỘNG GÓI DỊCH VỤ === */

.package-option {
    background-color: #fdfdfd;
    border: 2px solid #e9e9e9;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

    .package-option:hover {
        transform: translateY(-5px);
        border-color: #c00;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    }

    .package-option.recommended {
        border-color: #c00;
        position: relative;
        overflow: hidden;
    }

        .package-option.recommended::before {
            content: 'Phổ biến';
            position: absolute;
            top: -1px;
            right: -1px;
            background-color: #c00;
            color: white;
            padding: 5px 15px;
            font-size: 13px;
            font-weight: 600;
            border-bottom-left-radius: 16px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        }

.package-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
}

.package-title {
    font-size: 1.15rem !important;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0;
}

.package-price {
    font-size: 2rem !important;
    font-weight: 700;
    color: #c00;
    margin-top: 5px;
}

    .package-price .price-unit {
        font-size: 1rem;
        font-weight: 400;
        color: #6e6e73;
    }

.package-description {
    font-size: 1rem !important;
    color: #555;
    flex-grow: 1;
    margin-bottom: 15px;
    line-height: 1.5;
}

.package-features {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.95rem;
}

    .package-features li {
        position: relative;
        padding-left: 22px;
        margin-bottom: 8px;
        color: #333;
    }

        .package-features li::before {
            content: '✔';
            position: absolute;
            left: 0;
            top: 2px;
            color: #28a745;
            font-weight: bold;
        }

.purchase-section {
    text-align: center;
    margin-top: 20px;
}

.purchase-note {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 20px;
    font-style: italic;
}

.btn-contact-buy {
    background-color: #FF0000 !important;
    padding: 15px 40px !important;
    font-size: 1.1rem !important;
    border-radius: 8px !important;
    box-shadow: 0 5px 20px rgba(255, 0, 0, 0.5);
    color: #fff !important;
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.4);
    font-weight: bold;
    text-decoration: none;
}

.faq-container {
    margin-top: 15px;
    border-top: 1px solid #e5e5e5;
}

.faq-item {
    border-bottom: 1px solid #e5e5e5;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 18px 40px 18px 0;
    background: none;
    border: none;
    font-weight: 600;
    font-size: 1rem !important;
    cursor: pointer;
    position: relative;
    color: #1d1d1f;
    transition: color 0.2s ease;
}

    .faq-question:hover {
        color: #c00;
    }

    .faq-question::after {
        content: '+';
        position: absolute;
        right: 5px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.6rem;
        font-weight: 300;
        transition: transform 0.3s ease;
    }

    .faq-question.active::after {
        transform: translateY(-50%) rotate(45deg);
    }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

    .faq-answer p {
        padding: 0 10px 20px 15px;
        font-size: 0.95rem;
        line-height: 1.6;
        color: #333;
    }

/* === BẮT ĐẦU: TĂNG CỠ CHỮ FAQ TRONG MODAL TRÊN MÁY TÍNH === */
@media (min-width: 768px) {
    .modal-faq-section .faq-question {
        font-size: 1.3rem !important; /* Tăng cỡ chữ câu hỏi */
    }

    .modal-faq-section .faq-answer p {
        font-size: 1.25rem; /* Tăng cỡ chữ câu trả lời */
    }
}
/* === KẾT THÚC === */


.floating-actions-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: transform 0.4s ease-in-out;
}

.floating-action-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    display: block;
    transition: transform 0.2s ease;
}

.btn-facebook {
    background-image: url('./images/IcoinFb.webp');
}

.btn-messenger {
    background-image: url('./images/IcoinMess.webp');
}

.btn-telegram {
    background-image: url('./images/IcoinTele.webp');
}

.btn-zalo {
    background-image: url('./images/IcoinZalo.webp');
}

.category-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

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

.category-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: transparent;
    z-index: 1051;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

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

.category-columns-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
    padding: 110px 40px 40px 40px;
}

.category-column {
    flex: 1 1 250px;
    background: transparent;
    padding: 0;
    border-radius: 0;
}

    .category-column h4 {
        font-size: 0.9rem;
        color: #333;
        font-weight: 600;
        text-transform: uppercase;
        margin-bottom: 15px;
        padding-bottom: 5px;
        border-bottom: 1px solid #ddd;
    }

.category-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    text-decoration: none;
    color: #1d1d1f;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

    .category-menu li a:hover {
        background-color: rgba(0, 0, 0, 0.05);
    }

.category-menu li img {
    height: 32px;
    width: auto;
    border-radius: 6px;
}

.category-menu li span {
    font-size: 0.95rem;
    font-weight: 600;
}

.category-close-btn {
    position: fixed;
    top: 90px;
    right: 30px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 28px;
    color: #1d1d1f;
    cursor: pointer;
    z-index: 1061;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.category-menu.active ~ .category-close-btn,
.category-overlay.active ~ .category-close-btn {
    opacity: 1;
    visibility: visible;
}

@keyframes subtle-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
}

@keyframes ring-shake {
    0% {
        transform: rotate(0);
    }

    15% {
        transform: rotate(10deg);
    }

    30% {
        transform: rotate(-8deg);
    }

    45% {
        transform: rotate(6deg);
    }

    60% {
        transform: rotate(-4deg);
    }

    75% {
        transform: rotate(2deg);
    }

    90% {
        transform: rotate(-1deg);
    }

    100% {
        transform: rotate(0);
    }
}

@keyframes pulse-halo {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 26, 26, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(255, 26, 26, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 26, 26, 0);
    }
}

.floating-action-btn {
    animation: subtle-pulse 2.5s infinite ease-in-out;
}

.btn-zalo, .btn-telegram, .btn-messenger {
    border: none;
    animation: ring-shake 1.5s infinite, pulse-halo 2s infinite;
}

.floating-action-btn:hover {
    transform: scale(1.1);
    animation-play-state: paused;
}

.btn-contact-buy {
    animation: pulse-halo 2s infinite;
    transition: transform 0.2s ease;
}

    .btn-contact-buy:hover {
        transform: scale(1.03);
        animation-play-state: paused;
    }

#floating-icons-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1000;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    display: block;
    bottom: -80px;
    animation-name: float-up-zigzag;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes float-up-zigzag {
    0% {
        bottom: -80px;
        transform: translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    25% {
        transform: translateX(var(--h-move, 40px));
        opacity: 0.2;
    }

    40% {
        opacity: 0.8;
    }

    50% {
        transform: translateX(calc(var(--h-move, 40px) * -1));
    }

    60% {
        opacity: 0.3;
    }

    75% {
        transform: translateX(var(--h-move, 40px));
        opacity: 0.9;
    }

    90% {
        opacity: 0.2;
    }

    100% {
        bottom: 100vh;
        transform: translateX(0);
        opacity: 0;
    }
}



@media (max-width: 768px) {
    .category-menu {
        padding-bottom: 120px; /* Thêm vùng đệm dưới cùng cho menu dịch vụ */
    }
    .modal.image-view .modal-close {
        width: 32px;
        height: 32px;
        font-size: 1.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;    /* Đảm bảo không bị lệch dọc */
        padding: 0;        /* Không padding dư */
        /* Thêm thuộc tính này để căn giữa tuyệt đối ký tự X */
        text-align: center;
        vertical-align: middle;
        /* Nếu vẫn lệch, thử thêm: */
        font-family: Arial, sans-serif;
    }

    #floating-actions .floating-action-item {
        width: 40px;
        height: 40px;
        line-height: 40px;
    }

        #floating-actions .floating-action-item i {
            font-size: 18px;
        }

        #floating-actions .floating-action-item img {
            width: 20px;
            height: 20px;
        }

    #floating-toggle-btn {
        width: 45px;
        height: 45px;
    }

    .modal-content {
        padding: 30px 12px;
    }

        .modal-content h3 {
            font-size: 1.4rem;
        }

    .modal-body {
        flex-direction: column;
    }

        .modal-body #modal-image {
            max-width: 100%;
            margin-top: 20px;
        }

    .modal-full-width-wrapper {
        margin: 30px -20px -30px -20px;
    }

    .modal-benefits-section, .modal-faq-section {
        padding: 25px 20px;
    }

        .modal-benefits-section h3, .modal-faq-section h3 {
            font-size: 1.3rem;
        }

    .modal-benefits-section, .modal-faq-section, .faq-answer {
        font-size: 0.95rem; /* Cỡ chữ mobile cho Lợi ích/FAQ */
    }

    .faq-question {
        font-size: 0.95rem !important;
    }

    .floating-actions-container {
        gap: 12px;
        right: 20px;
        bottom: 20px;
    }

    .floating-action-btn {
        width: 52px;
        height: 52px;
    }

    .category-menu li a, .footer-column ul li a {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .package-option {
        padding: 10px;
    }

    .package-header {
        margin-bottom: -1px;
        padding-bottom: 5px;
    }

    .package-title {
        font-size: 1.05rem !important;
    }

    .package-price {
        font-size: 1.6rem !important;
    }

    .package-description {
        font-size: 0.9rem !important;
    }

    .package-features li {
        font-size: 0.85rem;
    }

    /* === BẮT ĐẦU: CẢI THIỆN RESPONSIVE CHO CARD DỊCH VỤ === */
    .card-content h4 {
        font-size: 1.1rem; /* Tăng cỡ chữ tiêu đề trên mobile */
    }
    .card-content p {
        font-size: 1rem; /* Tăng cỡ chữ giá tiền trên mobile */
    }
    /* === KẾT THÚC === */
}

/* === BẮT ĐẦU: TĂNG CỠ CHỮ LỢI ÍCH DỊCH VỤ TRÊN MÁY TÍNH === */
@media (min-width: 1024px) {
    .modal-benefits-section ul li {
        font-size: 1.25rem; /* Tăng cỡ chữ cho các dòng lợi ích */
        line-height: 1.8; /* Tăng khoảng cách dòng cho dễ đọc hơn */
    }
}
/* === KẾT THÚC === */