/* =========================================================
   GLOBAL
========================================================= */
html {
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* =========================================================
   BRAND VARIABLES — SEA BLUE + WHITE
========================================================= */
:root {
    --sea-blue: #1565c0;
    --sea-blue-dark: #0f4fa0;
    --sea-blue-soft: rgba(21, 101, 192, 0.10);
    --sea-blue-light: #eaf3ff;

    --white: #ffffff;
    --black: #111827;

    --text-dark: #111827;
    --text-muted: #6b7280;

    --border-light: #e5e7eb;
    --border-soft: #dbeafe;

    --hero-dark-1: #031633;
    --hero-dark-2: #0b2a52;

    --success: #16a34a;
    --danger: #dc2626;
    --warning-bg: #eff6ff;

    --shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    --card-shadow: 0 18px 45px rgba(2, 18, 41, 0.08);
}

/* =========================================================
   SCROLL OFFSET
========================================================= */
#packages-list {
    scroll-margin-top: 120px;
}

/* =========================================================
   HERO
========================================================= */
.packages-hero {
    position: relative;
    min-height: 55vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--hero-dark-1), var(--hero-dark-2));
    padding: 140px 0 60px;
}

.packages-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.packages-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        rgba(3, 22, 51, 0.92),
        rgba(11, 42, 82, 0.72)
    );
}

.packages-hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
}

.packages-hero-glow-1 {
    width: 260px;
    height: 260px;
    top: 40px;
    left: -60px;
    background: rgba(21, 101, 192, 0.18);
}

.packages-hero-glow-2 {
    width: 280px;
    height: 280px;
    bottom: -80px;
    right: -60px;
    background: rgba(255, 255, 255, 0.10);
}

/* =========================================================
   CONTENT
========================================================= */
.packages-hero-content {
    position: relative;
    z-index: 2;
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
    padding: 0 1rem;
}

.packages-hero-title {
    font-size: clamp(1.6rem, 3.2vw, 2.6rem);
    line-height: 1.25;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 0.8rem;
}

.packages-hero-description {
    max-width: 440px;
    margin: 0 auto;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #dbeafe;
}

.packages-hero-description strong {
    color: #ffffff;
}

/* =========================================================
   BUTTONS
========================================================= */
.packages-hero-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.6rem;
}

.packages-btn {
    padding: 0.85rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 800;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.28s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.packages-btn-sea {
    background: var(--sea-blue);
    color: var(--white);
    box-shadow: var(--shadow);
}

.packages-btn-sea:hover {
    background: var(--sea-blue-dark);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 18px 40px rgba(21, 101, 192, 0.28);
}

.packages-btn-white {
    background: rgba(255, 255, 255, 0.10);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.packages-btn-white:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.32);
}

/* =========================================================
   PRODUCT PAGE
========================================================= */
.product-section {
    padding: 3rem 0;
    background: #ffffff;
}

.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);
}

.product-layout {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
}

.product-image {
    flex: 0 0 360px;
}

.product-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    border: 1px solid #eef2f7;
}

.product-info {
    flex: 1;
}

/* =========================================================
   BREADCRUMB
========================================================= */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.95rem;
    color: #9ca3af;
}

.breadcrumb a {
    color: var(--sea-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--sea-blue-dark);
    text-decoration: underline;
}

.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;
}

.product-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    margin-top: 10px;
    border-radius: 4px;
    background: linear-gradient(135deg, var(--sea-blue), #2a7de1);
}

.product-price-range {
    font-size: 1.08rem;
    font-weight: 800;
    margin-bottom: 1.3rem;
    color: var(--text-dark);
}

.select-label {
    font-weight: 700;
    margin-bottom: 0.8rem;
    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.56rem 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;
    color: var(--text-dark);
}

.bundle-btn:hover {
    border-color: var(--sea-blue);
    color: var(--sea-blue);
    transform: translateY(-1px);
}

.bundle-btn.active {
    background: var(--sea-blue);
    color: #ffffff;
    border-color: var(--sea-blue);
    box-shadow: 0 8px 18px rgba(21, 101, 192, 0.28);
    transform: translateY(-2px);
}

/* =========================================================
   CHECKOUT ROW
========================================================= */
.checkout-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1.4rem;
    margin-top: 2rem;
    align-items: start;
    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 SUMMARY
========================================================= */
.price-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 220px;
    padding: 1rem 1.2rem;
    background: linear-gradient(135deg, #f8fbff, #eef6ff);
    border: 1.5px solid #cfe3ff;
    border-radius: 18px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 10px 24px rgba(21, 101, 192, 0.08);
}

.price-summary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(21, 101, 192, 0.14);
}

.price-summary-label {
    font-size: 0.78rem;
    font-weight: 800;
    color: #5b6b82;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-right: 1rem;
}

.price-summary-value {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--sea-blue-dark);
    white-space: nowrap;
}

/* =========================================================
   PHONE SECTION
========================================================= */
.phone-section {
    display: flex;
    flex-direction: column;
    max-width: 420px;
}

.phone-label {
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
    color: var(--text-dark);
}

.phone-label span {
    color: var(--danger);
}

.phone-input {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 1.5px solid #d1d5db;
    font-size: 0.96rem;
    color: var(--text-dark);
    background: #ffffff;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.phone-input:focus {
    outline: none;
    border-color: var(--sea-blue);
    box-shadow: 0 0 0 4px rgba(21, 101, 192, 0.12);
}

.phone-hint {
    margin-top: 0.45rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
}

.phone-error {
    display: none;
    margin-top: 0.45rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--danger);
}

.ported-checkbox {
    margin-top: 0.7rem;
    font-size: 0.88rem;
    cursor: pointer;
    color: #374151;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.ported-checkbox input {
    margin: 0;
    accent-color: var(--sea-blue);
}

/* =========================================================
   ACTION BUTTONS
========================================================= */
.product-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.6rem;
}

#buyBtn,
#clearBtn {
    padding: 0.82rem 1.8rem;
    border-radius: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 0.92rem;
}

#buyBtn {
    background: #9ca3af;
    color: #ffffff;
    border: none;
    cursor: not-allowed;
}

#buyBtn:not([disabled]) {
    background: var(--sea-blue);
    cursor: pointer;
}

#buyBtn:not([disabled]):hover {
    background: var(--sea-blue-dark);
    transform: translateY(-1px);
}

#clearBtn {
    background: transparent;
    border: 1.5px solid #cbd5e1;
    color: #475569;
}

#clearBtn:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

/* =========================================================
   DATA INFO & NOTICE SECTION — DIFFERENT STYLE
========================================================= */
.data-info-section {
    position: relative;
    padding: 4rem 0;
    background:
        radial-gradient(circle at top left, rgba(21, 101, 192, 0.08), transparent 30%),
        radial-gradient(circle at bottom right, rgba(21, 101, 192, 0.06), transparent 28%),
        linear-gradient(180deg, #f7fbff 0%, #eef6ff 100%);
    overflow: hidden;
}

.data-info-card {
    max-width: 980px;
    margin: 0 auto;
    background: linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
    border-radius: 28px;
    padding: 2.3rem 2.3rem;
    border: 1px solid rgba(21, 101, 192, 0.12);
    box-shadow: 0 25px 60px rgba(12, 40, 77, 0.10);
    position: relative;
    overflow: hidden;
}

.data-info-card::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    top: -120px;
    right: -120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(21, 101, 192, 0.16), transparent 70%);
    pointer-events: none;
}

.data-info-card::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    bottom: -110px;
    left: -100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(21, 101, 192, 0.10), transparent 70%);
    pointer-events: none;
}

.data-info-title {
    position: relative;
    z-index: 2;
    font-size: 1.7rem;
    font-weight: 900;
    color: var(--sea-blue-dark);
    margin-bottom: 0.9rem;
}

.data-info-description {
    position: relative;
    z-index: 2;
    font-size: 0.97rem;
    line-height: 1.8;
    color: #475569;
    max-width: 820px;
}

.data-info-divider {
    position: relative;
    z-index: 2;
    height: 1px;
    margin: 1.8rem 0 1.6rem;
    background: linear-gradient(
        90deg,
        rgba(21, 101, 192, 0),
        rgba(21, 101, 192, 0.25),
        rgba(21, 101, 192, 0)
    );
}

.data-info-subtitle {
    position: relative;
    z-index: 2;
    font-size: 1.08rem;
    font-weight: 900;
    color: #102a43;
    margin-bottom: 1rem;
}

.data-info-list {
    position: relative;
    z-index: 2;
    list-style: none;
    padding: 0;
    margin: 0 0 1.8rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.9rem 1rem;
}

.data-info-list li {
    background: #ffffff;
    border: 1px solid rgba(21, 101, 192, 0.10);
    border-radius: 14px;
    padding: 0.95rem 1rem 0.95rem 2.8rem;
    font-size: 0.92rem;
    color: #334155;
    position: relative;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.data-info-list li::before {
    content: "✕";
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: var(--sea-blue);
    font-weight: 900;
    font-size: 0.9rem;
}

.data-info-warning {
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #0f4fa0, #1565c0);
    border-radius: 18px;
    padding: 1.2rem 1.25rem;
    font-size: 0.92rem;
    color: #ffffff;
    line-height: 1.75;
    box-shadow: 0 16px 34px rgba(21, 101, 192, 0.22);
}

.data-info-warning strong {
    color: #ffffff;
}

/* =========================================================
   EMPTY STATE
========================================================= */
.empty-package-state {
    width: 100%;
    margin-top: 1.5rem;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    border: 1px solid rgba(21, 101, 192, 0.14);
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(2, 18, 41, 0.08);
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.empty-package-state::before {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    right: -160px;
    top: -160px;
    background: radial-gradient(circle, rgba(21, 101, 192, 0.18), transparent 65%);
}

.empty-package-state::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    left: -120px;
    bottom: -140px;
    background: radial-gradient(circle, rgba(21, 101, 192, 0.10), transparent 65%);
}

.empty-icon {
    width: 78px;
    height: 78px;
    margin: 0 auto 1.2rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(21, 101, 192, 0.10);
    border: 1px solid rgba(21, 101, 192, 0.18);
    color: var(--sea-blue);
    animation: floatIcon 3s ease-in-out infinite;
}

.empty-icon i {
    font-size: 34px;
    animation: pulseIcon 2s ease-in-out infinite;
}

.empty-package-state h3 {
    font-size: 1.45rem;
    font-weight: 900;
    color: #111827;
    margin-bottom: 0.5rem;
}

.empty-package-state p {
    max-width: 520px;
    margin: 0.5rem auto 1.6rem;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #6b7280;
}

.empty-actions {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.empty-actions .btn-sea,
.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-sea {
    background: linear-gradient(135deg, var(--sea-blue), var(--sea-blue-dark));
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(21, 101, 192, 0.28);
}

.empty-actions .btn-sea:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 35px rgba(21, 101, 192, 0.34);
}

.empty-actions .btn-outline {
    background: #ffffff;
    color: var(--sea-blue);
    border: 1.5px solid rgba(21, 101, 192, 0.24);
}

.empty-actions .btn-outline:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(2, 18, 41, 0.08);
}

/* =========================================================
   UTILITIES
========================================================= */
.hidden {
    display: none !important;
}

/* =========================================================
   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: 1200px) {
    .bundle-options {
        grid-template-columns: repeat(8, 1fr);
    }
}

@media (max-width: 991px) {
    .packages-hero {
        padding: 130px 0 50px;
    }
}

@media (max-width: 900px) {
    .product-layout {
        flex-direction: column;
        gap: 1.2rem;
    }

    .product-image {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .product-image img {
        width: 100%;
        max-height: 420px;
        object-fit: cover;
        border-radius: 16px;
    }

    .product-info {
        margin-top: 0.5rem;
    }

    .bundle-options {
        grid-template-columns: repeat(5, 1fr);
    }

    .checkout-row {
        grid-template-columns: 1fr;
    }

    .price-summary {
        max-width: 320px;
        margin: 0;
    }

    .phone-section {
        max-width: 100%;
    }

    .data-info-card {
        padding: 1.9rem 1.8rem;
    }

    .data-info-title {
        font-size: 1.48rem;
    }

    .data-info-subtitle {
        font-size: 1.03rem;
    }

    .product-page-heading {
        font-size: 1.9rem;
    }

    .product-page-subheading {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .breadcrumb {
        font-size: 0.8rem;
        gap: 4px;
    }

    .product-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 767px) {
    .packages-hero {
        padding: 120px 0 45px;
    }

    .packages-hero-title {
        font-size: 1rem !important;
        line-height: 1.25;
        letter-spacing: -0.01em;
    }

    .packages-hero-description {
        font-size: 0.88rem;
    }

    .packages-hero-actions {
        flex-direction: row;
        gap: 0.5rem;
    }

    .packages-btn {
        flex: 1;
        font-size: 0.82rem;
        padding: 0.75rem;
    }
}

@media (max-width: 600px) {
    .packages-hero {
        height: 44vh;
        min-height: 300px;
        padding: 110px 0 40px;
    }

    .packages-hero-title {
        font-size: 0.9rem !important;
        line-height: 1.2;
        letter-spacing: 0;
    }

    .packages-hero-description {
        font-size: 0.85rem;
    }

    .packages-btn {
        font-size: 0.78rem;
        padding: 0.7rem;
    }

    .product-page-header {
        margin-bottom: 1.8rem;
    }

    .product-page-heading {
        font-size: 1.6rem;
    }

    .product-page-subheading {
        font-size: 0.9rem;
    }

    .product-layout {
        gap: 0.9rem;
    }

    .product-image {
        width: 100%;
        margin: 0;
    }

    .product-image img {
        width: 100%;
        max-height: 360px;
        object-fit: cover;
        border-radius: 14px;
    }

    .bundle-options {
        grid-template-columns: repeat(4, 1fr);
    }

    .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 #dbeafe;
        min-width: 100%;
    }

    .price-summary-label {
        font-size: 0.85rem;
        text-transform: none;
        letter-spacing: 0;
        color: #111827;
    }

    .price-summary-value {
        font-size: 1.1rem;
        color: var(--sea-blue-dark);
    }

    .phone-section {
        max-width: 100%;
    }

    .product-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .product-actions button {
        width: 100%;
    }

    .data-info-section {
        padding: 2.3rem 0;
    }

    .data-info-card {
        padding: 1.45rem;
        border-radius: 18px;
    }

    .data-info-title {
        font-size: 1.3rem;
    }

    .data-info-description {
        font-size: 0.9rem;
    }

    .data-info-list {
        grid-template-columns: 1fr;
    }

    .data-info-warning {
        font-size: 0.86rem;
        padding: 1rem;
    }

    .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-sea,
    .empty-actions .btn-outline {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .packages-hero-title {
        font-size: 0.9rem !important;
        line-height: 1.2;
        letter-spacing: 0;
    }
}

@media (max-width: 360px) {
    .packages-hero-title {
        font-size: 0.85rem !important;
        line-height: 1.15;
    }
}