/* PACKAGE DETAIL PAGE STYLES */
.topbar {
    border-bottom: 1px solid #FF5B1F;
    margin-bottom: 0px !important;
}

.topbar-inner {
    margin-bottom: 5px !important;
}

.package-detail-page {
    padding: 0;
    background-color: #fff;
    font-family: 'Be Vietnam Pro', sans-serif;
}

/* Visibility toggling */
.package-main-card-mobile {
    display: none;
}

@media (max-width: 768px) {
    .package-main-card-desktop {
        display: none;
    }

    .package-main-card-mobile {
        display: block;
    }
}

.breadcrumb-wrap {
    padding: 25px 0;
    background: #fff;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #666;
}

.breadcrumb .back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #f7f7f7;
    border-radius: 50%;
    margin-right: 5px;
    transition: all 0.3s;
    color: #666;
}

.breadcrumb .back-link:hover {
    background: var(--soft-orange);
    color: var(--orange);
}

.breadcrumb a {
    color: #666;
    transition: color 0.3s;
}

.breadcrumb a.home::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 5px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23666" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path><polyline points="9 22 9 12 15 12 15 22"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

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

.breadcrumb i {
    font-size: 10px;
    color: #ccc;
    font-style: normal;
}

.breadcrumb span {
    color: #111;
    font-weight: 600;
}

/* Detail Layout */
.package-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    margin-bottom: 60px;
}

/* Feature Box (Left Side) */
.package-main-card {
    background-color: #FFE0C8;
    border-radius: 24px;
    padding: 35px;
    position: relative;
    border: 1px solid #FF5B1F;
}

.package-main-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.package-main-title h1 {
    font-size: 21px;
    font-weight: 900;
    color: var(--orange);
    margin: 0 0 10px 0;
}

.package-main-title .price {
    font-size: 20px;
    color: #111;
    font-weight: 600;
}

.package-main-title .price span {
    font-weight: 400;
    color: #666;
}

.package-header-icons {
    display: flex;
    gap: 12px;
}

/* Header Icon Box (Mobile-first, desktop hides labels) */
.package-header-icons {
    display: flex;
    gap: 15px;
}

.header-icon-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    flex: 1;
    border: 1px solid #eee;
}

.header-icon-btn,
.icon-circle {
    width: 44px;
    height: 44px;
    background: #FF5B1F !important;
    /* Force orange for desktop/mobile circles */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.header-icon-btn .info-icon,
.icon-circle .info-icon {
    filter: brightness(0) invert(1);
}

.icon-info {
    display: flex;
    flex-direction: column;
}

.icon-info .label {
    font-size: 13px;
    color: #666;
}

.icon-info .value {
    font-size: 16px;
    font-weight: 800;
    color: var(--orange);
}

/* Hide labels on desktop by default if needed, or adjust layout */
@media (min-width: 769px) {
    .header-icon-box {
        background: transparent;
        padding: 0;
        border: none;
        flex: none;
        display: block;
    }

    .icon-info {
        display: none;
    }

    .icon-circle {
        background: var(--orange);
    }
}

/* Info Sections (Cách đăng ký, Mô tả) */
.info-section {
    margin-bottom: 25px;
}

.info-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 800;
    color: #111;
    margin-bottom: 15px;
}

.info-white-box {
    background: #fff;
    border-radius: 16px;
    padding: 20px 25px;
}

/* Syntax Boxes */
.syntax-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.syntax-box-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #eee;
}

.syntax-box-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.syntax-label {
    font-size: 15px;
    color: #666;
}

.syntax-value {
    font-size: 16px;
    font-weight: 800;
    /* color: var(--orange); */
}

/* Description List */
.description-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.description-list li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 12px;
    font-size: 15px;
    color: #111;
    line-height: 1.5;
}

.description-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 5px;
    height: 5px;
    background-color: black;
    border-radius: 50%;
}

/* Sidebar */
.package-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-action-box {
    background: #fff;
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--orange);
}

/* Buttons */
.btn-sidebar-reg {
    width: 100%;
    background: var(--orange);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 15px;
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 15px;
}

.btn-sidebar-reg:hover {
    background: #e64a19;
    transform: translateY(-2px);
}

.btn-sidebar-other {
    width: 100%;
    background: #fff;
    color: var(--orange);
    border: 1.5px solid var(--orange);
    border-radius: 10px;
    padding: 14px;
    font-size: 15px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-sidebar-other:hover {
    background: var(--soft-orange);
}

/* Sidebar Info List */
.sidebar-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-info-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--orange);
    font-size: 14px;
}

.sidebar-info-item:last-child {
    border-bottom: none;
}

.info-label {
    color: #666;
}

.info-val {
    color: #111;
    font-weight: 700;
}

.info-val.orange {
    color: var(--orange);
}

/* Similar Packages Section */
.similar-section {
    margin-top: 50px;
    padding-bottom: 50px;
}

.similar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.similar-header h2 {
    font-size: 24px;
    font-weight: 900;
    color: #111;
    margin: 0;
}

/* Package Card (Grid Item) */
.package-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.pcard {
    background: #FFE0C8;
    border-radius: 20px;
    border: 1px solid #FF5B1F;
    overflow: hidden;
    transition: all 0.3s;
    padding: 15px;
}

.pcard:hover {
    box-shadow: 0 10px 30px rgba(255, 91, 31, 0.1);
}

.pcard-head {
    background: transparent;
    padding: 10px 0 15px;
    text-align: center;

}

.pcard-head .name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.pcard-head .price {
    font-size: 20px;
    font-weight: bold;
    color: var(--orange);
}

.pcard-body {
    padding: 0;
}

.pcard-specs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.spec-pill {
    background: #fff;
    border-radius: 12px;
    padding: 12px 15px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #111;
    border: 1px solid #FF5B1F;
}

.spec-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.spec-pill i {
    width: 14px;
    height: 14px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
}

.pcard-actions {
    display: flex;
    gap: 10px;
}

.pcard-actions .btn-reg {
    flex: 1;
    background: var(--orange);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 10px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pcard-actions .btn-reg {
    border: 1.5px solid var(--orange);
    transition: all 0.3s ease;
}

.pcard-actions .btn-reg:hover {
    background: #fff;
    color: var(--orange);
    transform: scale(1.04);
}

.pcard-actions .btn-detail {
    flex: 1;
    background: white;
    color: var(--orange);
    border: 1.5px solid var(--orange);
    border-radius: 50px;
    padding: 10px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.pcard-actions .btn-detail:hover {
    background: var(--orange);
    color: #fff;
    transform: scale(1.04);
}

/* Icons via SVG Background Data URIs (Simplified for implementation) */
.icon-pie {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23FF5B1F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21.21 15.89A10 10 0 1 1 8 2.83"></path><path d="M22 12A10 10 0 0 0 12 2v10z"></path></svg>');
}

.icon-wifi {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23FF5B1F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12.55a11 11 0 0 1 14.08 0"></path><path d="M1.42 9a16 16 0 0 1 21.16 0"></path><path d="M8.53 16.11a6 6 0 0 1 6.95 0"></path><line x1="12" y1="20" x2="12.01" y2="20"></line></svg>');
}

.icon-phone {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23FF5B1F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path></svg>');
}

.icon-chat {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23FF5B1F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path></svg>');
}

.icon-list {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23FF5B1F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="8" y1="6" x2="21" y2="6"></line><line x1="8" y1="12" x2="21" y2="12"></line><line x1="8" y1="18" x2="21" y2="18"></line><line x1="3" y1="6" x2="3.01" y2="6"></line><line x1="3" y1="12" x2="3.01" y2="12"></line><line x1="3" y1="18" x2="3.01" y2="18"></line></svg>');
}

.icon-data {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23FF5B1F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="2" width="20" height="8" rx="2" ry="2"></rect><rect x="2" y="14" width="20" height="8" rx="2" ry="2"></rect><line x1="6" y1="6" x2="6.01" y2="6"></line><line x1="6" y1="18" x2="6.01" y2="18"></line></svg>');
}

.icon-clock {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23FF5B1F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><polyline points="12 6 12 12 16 14"></polyline></svg>');
}

.info-icon,
.spec-icon,
.info-icon-img {
    width: 24px;
    height: 24px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    object-fit: contain;
    vertical-align: middle;
}

.spec-icon {
    width: 16px;
    height: 16px;
}

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

    .package-sidebar {
        order: 2;
    }

    .package-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .package-main-card-mobile .package-main-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .package-main-card-mobile .package-main-title {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
        border-bottom: 1.5px solid #ffffff;
        padding-bottom: 20px;
        margin-bottom: 5px;
    }

    .package-main-card-mobile .package-main-title h1 {
        font-size: 28px;
        color: var(--orange);
        margin: 0 auto 5px;
        text-align: center;
        width: 100%;
    }

    .package-main-card-mobile .package-main-title .price {
        text-align: center;
        color: #111;
        font-size: 18px;
        width: 100%;
        margin-bottom: 0px;
    }

    .package-main-card-mobile .package-header-icons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
        gap: 15px;
    }

    .package-main-card-mobile .header-icon-box {
        flex-direction: column;
        text-align: center;
        padding: 20px 10px;
    }

    .package-main-card-mobile .icon-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 5px;
    }

    .package-main-card-mobile .mobile-section-header {
        display: flex;
        align-items: center;
        gap: 12px;
        margin: 25px 0 25px;
        font-size: 18px;
        font-weight: 800;
        color: #111;
    }

    .package-main-card-mobile .mobile-section-header .info-icon {
        width: 32px;
        height: 32px;
        background-color: var(--orange);
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    .package-main-card-mobile .mobile-section-header .info-icon::after {
        content: '';
        position: absolute;
        width: 16px;
        height: 16px;
        background-image: inherit;
        /* Inherit the icon-list background */
        filter: brightness(0) invert(1);
        background-size: contain;
        background-repeat: no-repeat;
    }

    .package-main-card-mobile .info-section-title {
        display: block;
        font-size: 16px;
        font-weight: 800;
        margin-bottom: 12px;
        color: #111;
    }

    .package-main-card-mobile .info-section-title .info-icon {
        display: none;
    }

    .package-grid {
        display: block;
    }

    .package-sidebar {
        display: none !important;
    }

    .package-left-col {
        width: 100%;
        margin-bottom: 30px;
    }

    .package-main-card {
        padding: 25px 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .package-card-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 20px;
        gap: 15px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        scrollbar-width: none;
        -ms-overflow-style: none;
        /* Ensure it doesn't push parent */
        max-width: 100%;
    }

    .package-card-grid::-webkit-scrollbar {
        display: none;
    }

    .pcard {
        min-width: 280px;
        max-width: 280px;
        flex: 0 0 280px;
        scroll-snap-align: start;
    }

    .package-sidebar {
        width: 100%;
        box-sizing: border-box;
    }

    .package-header-icons {
        margin-top: 10px;
    }
}

@media (min-width: 769px) {
    .mobile-section-header {
        display: none;
    }
}

/* Registration Popup Enhancements */
.registration-popup {
    background: #FFEADD !important;
    border: none !important;
    padding: 30px 20px !important;
    max-width: 480px !important;
}

.registration-popup .popup-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.registration-popup .popup-header .popup-logo-img {
    height: 28px;
    width: auto;
    object-fit: contain;
}

.registration-popup .popup-header h3 {
    margin: 0;
    color: var(--orange);
    font-size: 24px;
    font-weight: 800;
}

.close-popup-x {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    line-height: 1;
}

.popup-info-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--orange);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.popup-card-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 15px;
}

.popup-card-left i {
    width: 24px;
    height: 24px;
    color: var(--orange);
}

.popup-card-right .syntax {
    font-weight: 600;
    font-size: 15px;
}

.popup-card-right .syntax span,
.popup-card-right .syntax {
    color: #111;
}

.popup-card-right .syntax #popupCode,
.popup-card-right .syntax #popupNumber,
.popup-card-right .syntax #popupCodeCancel,
.popup-card-right .syntax #popupCancelNumber {
    color: var(--orange);
    font-weight: 800;
    font-size: 18px;
}

.registration-popup .btn-close-popup {
    width: 100%;
    background: var(--orange);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 15px;
    font-size: 18px;
    font-weight: 800;
    margin-top: 15px;
    cursor: pointer;
}

@media (max-width: 480px) {
    .registration-popup {
        width: calc(100% - 30px);
        padding: 25px 15px !important;
    }

    .popup-info-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .popup-card-right .syntax {
        font-size: 14px;
    }
}