/* =======================================================
   HALAMAN HARGA KACHING
   ======================================================= */
.pricing-header {
    background: radial-gradient(circle at 50% 0%, #0f172a, #1e293b);
    color: #ffffff;
    padding: 120px 5% 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.pricing-header::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    background: rgba(0, 210, 255, 0.15);
    filter: blur(120px);
    border-radius: 50%;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
}
.pricing-header h1 {
    position: relative;
    z-index: 2;
    font-size: 52px;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
}
.pricing-header p {
    position: relative;
    z-index: 2;
    font-size: 18px;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* =======================================================
   TIER UTAMA
   ======================================================= */
.pricing-container {
    padding: 80px 5%;
    max-width: 1200px;
    margin: -60px auto 0;
    position: relative;
    z-index: 10;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    align-items: center;
}
.price-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    padding: 50px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    transition: all 0.4s ease;
    position: relative;
}
.price-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.price-card.popular {
    background: linear-gradient(135deg, #0284c7 0%, var(--kaching-blue) 100%);
    color: #ffffff;
    border: none;
    transform: scale(1.05);
    box-shadow: 0 30px 60px rgba(0, 132, 255, 0.25);
}
.price-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}
.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    color: #000;
    font-weight: 900;
    font-size: 12px;
    padding: 8px 20px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.4);
}

.tier-name {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 10px;
}
.tier-desc {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 30px;
    min-height: 40px;
}
.price-card.popular .tier-desc {
    color: #bae6fd;
}

.price-box {
    margin-bottom: 20px;
}
.price-currency {
    font-size: 24px;
    font-weight: 700;
    vertical-align: top;
}
.price-number {
    font-size: 56px;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1;
}
.price-period {
    font-size: 16px;
    color: #94a3b8;
    font-weight: 500;
}
.price-card.popular .price-period {
    color: #bae6fd;
}

/* =======================================================
   [PERBAIKAN] DURASI PAKET (6 BULAN, 1 TAHUN, 2 TAHUN)
   ======================================================= */
.billed-info {
    font-size: 13px;
    font-weight: 700;
    color: #10b981;
    margin-top: 5px;
    margin-bottom: 20px; /* Tambahan jarak ke tombol durasi */
}
.price-card.popular .billed-info {
    color: #d1fae5;
}

.package-options {
    display: flex;
    gap: 8px;
    justify-content: space-between;
    margin-bottom: 25px;
}

.package-option {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 15px 5px;
    position: relative;
    font-size: 12px;
    font-weight: 800;
    color: #64748b;
    cursor: pointer;
    text-align: center;
    flex: 1;
    transition: all 0.3s ease;
}

.package-option:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

.package-option.active {
    background: #ecfdf5;
    border-color: #10b981;
    color: #047857;
}

.pkg-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(239, 68, 68, 0.3);
}

/* Penyesuaian khusus kotak tengah (PRO) */
.price-card.popular .package-option {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #e0f2fe;
}
.price-card.popular .package-option:hover {
    background: rgba(255, 255, 255, 0.2);
}
.price-card.popular .package-option.active {
    background: #ffffff;
    border-color: #fbc116; /* Kuning Kaching */
    color: #0f172a;
}

/* Tombol Pilih Paket & Fitur List */
.btn-price {
    display: block;
    text-align: center;
    width: 100%;
    padding: 16px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 16px;
    transition: 0.3s;
    margin-bottom: 40px;
    box-sizing: border-box;
}
.btn-outline {
    background: #f8fafc;
    color: #0f172a;
    border: 1px solid #e2e8f0;
}
.btn-outline:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}
.btn-solid-yellow {
    background: #fbc116;
    color: #0f172a;
    box-shadow: 0 10px 20px rgba(251, 193, 22, 0.3);
}
.btn-solid-yellow:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(251, 193, 22, 0.5);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    font-size: 15px;
    font-weight: 500;
    color: #334155;
}
.price-card.popular .feature-list li {
    color: #ffffff;
}

.check-icon {
    background: #e0f2fe;
    color: #0284c7;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
    flex-shrink: 0;
    margin-top: 2px;
}
.price-card.popular .check-icon {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}
.cross-icon {
    background: #f1f5f9;
    color: #94a3b8;
}
.text-muted {
    color: #94a3b8 !important;
    text-decoration: line-through;
}

/* =======================================================
   YEARLY PROMO SECTION (KOTAK DISKON DI BAWAH TIER)
   ======================================================= */
.yearly-promo-section {
    max-width: 1100px;
    margin: 60px auto 40px;
    padding: 0 5%;
    position: relative;
    z-index: 5;
}
.yearly-promo-card {
    background: #ecfdf5;
    border: 1px solid #d1fae5;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    overflow: hidden;
}
.yearly-promo-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #10b981;
    color: #fff;
    font-weight: 800;
    font-size: 11px;
    padding: 5px 15px;
    border-radius: 0 0 0 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.yearly-promo-content {
    flex-grow: 1;
}
.yearly-promo-card h3 {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 5px;
}
.yearly-promo-card p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}
.yearly-promo-action {
    flex-shrink: 0;
}
.btn-yearly-promo-outline {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    border: 2px solid #10b981;
    color: #10b981;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
    background: transparent;
    white-space: nowrap;
}
.btn-yearly-promo-outline:hover {
    background: #10b981;
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.2);
}

/* =======================================================
   BUNDLING SECTION STYLES (TAB KATEGORI - HORIZONTAL)
   ======================================================= */
.addon-section {
    max-width: 1100px;
    margin: 80px auto 0;
    padding: 0 5%;
}
.addon-header {
    text-align: center;
    margin-bottom: 30px;
}
.addon-header h2 {
    font-size: 32px;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -1px;
}
.addon-header p {
    font-size: 16px;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto 10px;
}

.bundling-tabs-wrapper {
    margin-bottom: 30px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 10px;
    text-align: center;
}
.bundling-tabs-wrapper::-webkit-scrollbar {
    display: none;
}
.bundling-tabs {
    display: inline-flex;
    justify-content: center;
    gap: 15px;
    min-width: max-content;
}

.b-tab {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
}
.b-tab:hover {
    border-color: #cbd5e1;
    color: #0f172a;
}
.b-tab.active {
    background: #ecfdf5;
    border-color: #10b981;
    color: #047857;
}

.bundling-card-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    position: relative;
    padding: 40px 30px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}
.bundling-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: #dcfce7;
    color: #166534;
    font-weight: 800;
    font-size: 14px;
    padding: 8px 30px;
    border-radius: 0 0 20px 0;
}

.bundling-content {
    display: flex;
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    width: 100%;
}

.b-image-area {
    flex-shrink: 0;
}
.b-image-area img {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.b-items-area {
    display: flex;
    flex-direction: row !important;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-start;
    flex-grow: 1;
    gap: 30px;
}
.b-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
}
.b-item-icon {
    width: 50px;
    height: 50px;
    background: #f0f9ff;
    color: #0284c7;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.b-item-icon svg {
    width: 26px;
    height: 26px;
}
.b-item h4 {
    font-size: 15px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 4px;
}
.b-item p {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
}

.b-price-area {
    text-align: center;
    border-left: 2px solid #f1f5f9;
    border-top: none;
    padding-left: 40px;
    min-width: 220px;
    flex-shrink: 0;
}
.b-hanya {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 5px;
}
.b-total-price {
    font-size: 36px;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 5px 0;
    letter-spacing: -1px;
}
.b-bulan {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 20px;
}
.btn-bundle {
    display: inline-block;
    background: #10b981;
    color: #fff;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
    width: 100%;
    box-sizing: border-box;
}
.btn-bundle:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2);
}

/* =======================================================
   SINGLE ADD-ON SECTION (A LA CARTE - VERTIKAL CAROUSEL)
   ======================================================= */
.single-addon-section {
    max-width: 1100px;
    margin: 80px auto 40px;
    padding: 0 5%;
    overflow: visible; /* Wajib visible agar tombol tidak terpotong */
}

/* Pembungkus Carousel & Tombol */
.addon-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

/* Desain Tombol Panah */
.addon-nav-btn {
    position: absolute;
    top: 50%; /* Menarik tombol ke tengah vertikal */
    transform: translateY(-50%); /* Menyeimbangkan posisi tepat di tengah */
    z-index: 10;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #64748b;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.addon-nav-btn:hover {
    background: #10b981;
    color: #ffffff;
    border-color: #10b981;
    /* Efek hover harus menggabungkan posisi translateY agar tidak lompat */
    transform: translateY(-50%) scale(1.1);
}

.addon-nav-btn svg {
    width: 22px;
    height: 22px;
}

/* Posisi Panah */
.prev-btn {
    left: -20px;
}
.next-btn {
    right: -20px;
}

.single-addon-grid {
    display: flex; /* Mengubah grid menjadi flex menyamping */
    flex-wrap: nowrap; /* Melarang kotak turun ke baris baru */
    overflow-x: auto; /* Mengaktifkan scroll horizontal */
    gap: 30px;
    padding-bottom: 20px; /* Memberi ruang untuk scrollbar */
    scroll-snap-type: x mandatory; /* Efek magnet/snap saat digeser */
    scroll-behavior: smooth;
}

/* Mempercantik Scrollbar di Windows/Desktop */
.single-addon-grid::-webkit-scrollbar {
    height: 8px;
}
.single-addon-grid::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}
.single-addon-grid::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
.single-addon-grid::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.sa-card-v {
    /* [BARU] Memaksa agar hanya 3 kotak yang tampil di layar desktop */
    flex: 0 0 calc(33.333% - 20px);
    min-width: 280px; /* Batas minimum ukuran di layar HP */
    scroll-snap-align: start; /* Magnet berhenti di awal kotak */

    /* (Sisa kode tidak berubah) */
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 40px 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sa-card-v:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}
.sa-icon-v {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.sa-icon-v svg {
    width: 32px;
    height: 32px;
}
.sa-title-v {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
}
.sa-price-v {
    font-size: 18px;
    font-weight: 900;
    color: #1e293b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.sa-price-v span {
    font-size: 14px;
    color: #64748b;
    font-weight: 600;
}
.sa-desc-v {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 30px;
    flex-grow: 1;
}
.btn-sa-outline {
    display: inline-block;
    width: 100%;
    padding: 12px;
    border-radius: 50px;
    border: 1px solid #10b981;
    color: #10b981;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
    background: transparent;
    box-sizing: border-box;
}
.btn-sa-outline:hover {
    background: #10b981;
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.2);
}

/* =======================================================
   RESPONSIVE MOBILE KHUSUS HALAMAN HARGA
   ======================================================= */
@media (max-width: 992px) {
    .price-card.popular {
        transform: scale(1);
    }
    .price-card.popular:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .pricing-header {
        padding: 100px 5% 50px;
    }
    .pricing-header h1 {
        font-size: 32px !important;
        letter-spacing: -1px;
    }
    .pricing-header p {
        font-size: 15px !important;
    }

    .pricing-container {
        padding: 40px 5%;
        margin-top: -30px;
    }
    .price-card {
        padding: 40px 25px;
    }
    .price-number {
        font-size: 42px !important;
    }

    /* Responsif Promo Tahunan */
    .yearly-promo-card {
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
    }
    .yearly-promo-badge {
        right: 50%;
        transform: translateX(50%);
        border-radius: 0 0 10px 10px;
    }
    .btn-yearly-promo-outline {
        width: 100%;
        box-sizing: border-box;
    }

    .addon-header h2 {
        font-size: 26px !important;
    }
    .bundling-tabs-wrapper {
        text-align: left;
        padding: 0 5%;
    }
    .bundling-tabs {
        justify-content: flex-start;
    }

    .bundling-content {
        flex-direction: column !important;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
    .b-image-area img {
        width: 80px;
        height: 80px;
        margin-top: 20px;
    }
    .b-items-area {
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: center;
    }
    .b-item {
        width: 40%;
        margin-bottom: 15px;
    }
    .b-price-area {
        border-left: none;
        border-top: 2px dashed #e2e8f0;
        padding-left: 0;
        padding-top: 20px;
        text-align: center;
        width: 100%;
    }
}
