/* =========================================================
   BRAND VARIABLES
========================================================= */

:root {
    --violet: #6d28d9;
    --violet-dark: #5b21b6;
    --violet-soft: rgba(109, 40, 217, 0.12);
    --text-dark: #111827;
    --text-muted: #6b7280;
    --border-light: #e5e7eb;
}

/* =========================================================
   PACKAGES HERO
========================================================= */

.packages-hero {
    position: relative;
    height: 52vh;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #020617;
    padding-top: 56px;
}

.packages-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.packages-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        rgba(15, 23, 42, 0.92),
        rgba(15, 23, 42, 0.65)
    );
    z-index: 1;
}

.packages-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
}

.packages-hero-text {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    padding: 0 1rem;
}

.packages-breadcrumb {
    margin-bottom: 0.6rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #94a3b8;
}

.packages-hero-title {
    font-size: 2.6rem;
    font-weight: 900;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 0.6rem;
}

.packages-hero-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #e5e7eb;
}

/* =========================================================
   PRODUCT PAGE
========================================================= */

.product-section {
    padding: 3rem 0;
    background: #ffffff;
}

.product-layout {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
}

/* IMAGE */
.product-image {
    flex: 0 0 360px;
}

.product-image img {
    width: 100%;
    border-radius: 18px;
}

/* INFO */
.product-info {
    flex: 1;
}

.product-title {
    font-size: 1.9rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
    color: var(--text-dark);
}

.product-price-range {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.3rem;
    color: var(--text-dark);
}

.select-label {
    font-weight: 700;
    margin-bottom: 0.7rem;
    color: var(--text-dark);
}

/* =========================================================
   DATA BUNDLES
========================================================= */

.bundle-options {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 0.6rem;
    margin-bottom: 1.6rem;
}

.bundle-btn {
    padding: 0.5rem 0;
    border-radius: 999px;
    border: 1.5px solid #d1d5db;
    background: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.bundle-btn:hover {
    border-color: var(--violet);
    color: var(--violet);
    transform: translateY(-1px);
}

.bundle-btn.active {
    background: var(--violet);
    color: #ffffff;
    border-color: var(--violet);
    box-shadow: 0 8px 18px rgba(109, 40, 217, 0.35);
    transform: translateY(-2px);
}

/* =========================================================
   CHECKOUT ROW (DESKTOP INLINE)
========================================================= */

.checkout-row {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 1.4rem;
    margin-top: 2rem;
    align-items: center;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.checkout-row.hidden {
    display: grid !important;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
}

/* PRICE */
.price-summary {
    background: #faf7ff;
    border: 1px solid #e9d5ff;
    border-radius: 14px;
    padding: 0.9rem 1rem;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.price-summary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(109, 40, 217, 0.25);
}

.price-summary-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--violet);
}

.price-summary-value {
    display: block;
    margin-top: 0.35rem;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--violet-dark);
}

/* PHONE */
.phone-section {
    display: flex;
    flex-direction: column;
    max-width: 420px; /* ✅ ONLY CHANGE */
    margin-left: 150px;
}

.phone-label {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--text-dark);
}

.phone-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 14px;
    border: 1.5px solid #d1d5db;
    font-size: 0.95rem;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.phone-input:focus {
    outline: none;
    border-color: var(--violet);
    box-shadow: 0 0 0 4px var(--violet-soft);
}

.phone-error {
    display: none;
    margin-top: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #dc2626;
}

.ported-checkbox {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    cursor: pointer;
    color: #374151;
}

.ported-checkbox input {
    margin-right: 6px;
}

/* =========================================================
   ACTION BUTTONS
========================================================= */

.product-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.6rem;
}

#buyBtn {
    background: #9ca3af;
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.8rem;
    border-radius: 14px;
    font-weight: 800;
    cursor: not-allowed;
    transition: all 0.25s ease;
}

#buyBtn:not([disabled]) {
    background: var(--violet);
    cursor: pointer;
}

#buyBtn:not([disabled]):hover {
    background: var(--violet-dark);
    transform: translateY(-1px);
}

#clearBtn {
    background: transparent;
    border: 1.5px solid #ef4444;
    color: #ef4444;
    padding: 0.75rem 1.8rem;
    border-radius: 14px;
    font-weight: 800;
    cursor: pointer;
}

/* =========================================================
   UTILITIES
========================================================= */

.hidden {
    display: none !important;
}

/* =========================================================
   RESPONSIVE
========================================================= */

/* LARGE TABLET / SMALL LAPTOP */
@media (max-width: 1200px) {
    .bundle-options {
        grid-template-columns: repeat(8, 1fr);
    }
}

/* TABLET */
@media (max-width: 900px) {

    /* Layout */
    .product-layout {
        flex-direction: column;
        gap: 1.2rem; /* 🔽 reduced space */
    }

    /* Image bigger */
    .product-image {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .product-image img {
        width: 100%;
        max-height: 420px;
        object-fit: cover;
        border-radius: 16px;
    }

    /* Content tighter */
    .product-info {
        margin-top: 0.5rem;
    }

    /* Bundles */
    .bundle-options {
        grid-template-columns: repeat(5, 1fr);
    }

    /* Checkout */
    .checkout-row {
        grid-template-columns: 1fr;
    }

    .price-summary {
        max-width: 320px;
        margin: 0;
    }

    .phone-section {
        max-width: 100%;
        margin-left: 0;
    }
}

/* MOBILE */
@media (max-width: 600px) {

    /* Hero */
    .packages-hero {
        height: 44vh;
        min-height: 300px;
    }

    .packages-hero-title {
        font-size: 1.9rem;
    }

    .packages-hero-description {
        font-size: 0.9rem;
    }

    /* Layout tighter */
    .product-layout {
        gap: 0.9rem;
    }

    /* Image dominant */
    .product-image {
        width: 100%;
        margin: 0;
    }

    .product-image img {
        width: 100%;
        max-height: 360px;
        object-fit: cover;
        border-radius: 14px;
    }

    /* Bundles */
    .bundle-options {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Checkout */
    .checkout-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .price-summary {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        padding: 0.9rem 1rem;
        background: #ffffff;
        border: 1.5px solid #e5e7eb;
    }

    .price-summary-label {
        font-size: 0.85rem;
        text-transform: none;
        letter-spacing: 0;
        color: #111827;
    }

    .price-summary-value {
        font-size: 1.1rem;
        color: #111827;
    }

    .phone-section {
        max-width: 100%;
        margin-left: 0;
    }

    .product-actions {
        justify-content: center;
    }
}


/* ================= PRICE SUMMARY (SPACED & WIDER) ================= */

.price-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 280px;
    padding: 1rem 1.25rem;
    background: #faf7ff;
    border: 1.5px solid #e9d5ff;
    border-radius: 16px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.price-summary-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #6b7280;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-right: 1rem;
}

.price-summary-value {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--violet-dark);
    white-space: nowrap;
}


/* =========================================================
   PRODUCT PAGE HEADER
========================================================= */

.product-page-header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 2.5rem;
}

.product-page-heading {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 0.6rem;
}

.product-page-subheading {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .product-page-heading {
        font-size: 1.9rem;
    }

    .product-page-subheading {
        font-size: 0.95rem;
    }
}

@media (max-width: 600px) {
    .product-page-header {
        margin-bottom: 1.8rem;
    }

    .product-page-heading {
        font-size: 1.6rem;
    }

    .product-page-subheading {
        font-size: 0.9rem;
    }
}


/* =========================================================
   DATA INFO & NOTICE SECTION
========================================================= */

.data-info-section {
    padding: 3rem 0;
    background: #f9fafb;
}

.data-info-card {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 18px;
    padding: 2rem 2.2rem;
    border: 1.5px solid var(--border-light);
}

.data-info-title {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
}

.data-info-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.data-info-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 1.6rem 0;
}

.data-info-subtitle {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.6rem;
}

.data-info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.6rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.5rem 1.2rem;
}

.data-info-list li {
    font-size: 0.9rem;
    color: #374151;
    position: relative;
    padding-left: 1.2rem;
}

.data-info-list li::before {
    content: "✕";
    position: absolute;
    left: 0;
    color: #ef4444;
    font-weight: 800;
}

.data-info-warning {
    background: #fff7ed;
    border: 1.5px solid #fed7aa;
    border-radius: 12px;
    padding: 1rem 1.2rem;
    font-size: 0.9rem;
    color: #7c2d12;
    line-height: 1.6;
}

/* =========================================================
   RESPONSIVE (DATA INFO SECTION)
========================================================= */

@media (max-width: 900px) {

    .data-info-card {
        padding: 1.8rem 1.8rem;
    }

    .data-info-title {
        font-size: 1.45rem;
    }

    .data-info-subtitle {
        font-size: 1.05rem;
    }
}

@media (max-width: 600px) {

    .data-info-section {
        padding: 2.2rem 0;
    }

    .data-info-card {
        padding: 1.5rem;
        border-radius: 14px;
    }

    .data-info-title {
        font-size: 1.35rem;
    }

    .data-info-description {
        font-size: 0.9rem;
    }

    .data-info-list {
        grid-template-columns: 1fr; /* single column on mobile */
    }

    .data-info-warning {
        font-size: 0.85rem;
        padding: 0.9rem 1rem;
    }
}

/* =========================================================
   EMPTY STATE — PROFESSIONAL DESIGN
========================================================= */

.empty-package-state {
    width: 100%;
    margin-top: 1.5rem;

    background: linear-gradient(180deg, #ffffff, #fbfbff);
    border: 1px solid rgba(109, 40, 217, 0.12);
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(2, 6, 23, 0.08);

    padding: 2.5rem 2rem;
    text-align: center;

    position: relative;
    overflow: hidden;
}

/* Soft background glow */
.empty-package-state::before {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    right: -160px;
    top: -160px;
    background: radial-gradient(circle, rgba(109,40,217,0.18), transparent 65%);
}

.empty-package-state::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    left: -120px;
    bottom: -140px;
    background: radial-gradient(circle, rgba(250,204,21,0.12), transparent 65%);
}

/* ICON */
.empty-icon {
    width: 78px;
    height: 78px;
    margin: 0 auto 1.2rem;

    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(109, 40, 217, 0.10);
    border: 1px solid rgba(109, 40, 217, 0.18);
    color: #6d28d9;

    animation: floatIcon 3s ease-in-out infinite;
}

.empty-icon i {
    font-size: 34px;
    animation: pulseIcon 2s ease-in-out infinite;
}

/* TITLE */
.empty-package-state h3 {
    font-size: 1.45rem;
    font-weight: 900;
    color: #111827;
    margin-bottom: 0.5rem;
}

/* DESCRIPTION */
.empty-package-state p {
    max-width: 520px;
    margin: 0.5rem auto 1.6rem;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #6b7280;
}

/* ACTION BUTTONS */
.empty-actions {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.empty-actions .btn-primary,
.empty-actions .btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;

    padding: 0.9rem 1.3rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.9rem;
    text-decoration: none;

    transition: transform 0.2s ease,
                box-shadow 0.2s ease,
                background 0.2s ease;
}

.empty-actions .btn-primary {
    background: linear-gradient(135deg, #6d28d9, #5b21b6);
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(109, 40, 217, 0.28);
}

.empty-actions .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 35px rgba(109, 40, 217, 0.35);
}

.empty-actions .btn-outline {
    background: #ffffff;
    color: #6d28d9;
    border: 1.5px solid rgba(109, 40, 217, 0.25);
}

.empty-actions .btn-outline:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(2, 6, 23, 0.08);
}

/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes pulseIcon {
    0%,100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.9; }
}

@keyframes floatIcon {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 600px) {

    .empty-package-state {
        padding: 1.8rem 1.2rem;
        border-radius: 18px;
    }

    .empty-package-state h3 {
        font-size: 1.2rem;
    }

    .empty-package-state p {
        font-size: 0.9rem;
    }

    .empty-actions .btn-primary,
    .empty-actions .btn-outline {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================================
   BREADCRUMB (PRODUCT PAGE)
========================================================= */

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;

    font-size: 0.9rem;
    font-weight: 600;

    margin-bottom: 0.9rem;
    color: #9ca3af;
}

/* Links */
.breadcrumb a {
    color: #6d28d9;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #5b21b6;
    text-decoration: underline;
}

/* Slash separator */
.breadcrumb span,
.breadcrumb strong::before {
    color: #d1d5db;
    margin: 0 4px;
}

/* Active page */
.breadcrumb strong {
    font-weight: 800;
    color: #111827;
}

/* =========================================================
   PRODUCT TITLE
========================================================= */

.product-title {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #111827;
    letter-spacing: -0.3px;
}

/* Subtle underline accent */
.product-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    margin-top: 10px;
    border-radius: 4px;
    background: linear-gradient(
        135deg,
        #6d28d9,
        #5b21b6
    );
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 768px) {

    .breadcrumb {
        font-size: 0.8rem;
        gap: 4px;
    }

    .product-title {
        font-size: 1.6rem;
    }
}

