/* =========================================
   3. PRICING SECTION (Container & Grid)
   ========================================= */
.pricing-section {
    background-color: #050505;
    padding: 80px 0 100px;
    color: white;
}

/* Tab Kategori */
.pricing-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: 1px solid #333;
    color: #ccc;
    padding: 10px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    transition: 0.3s;
}

.tab-btn.active, .tab-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Grid Layout */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: start;
}

/* =========================================
   4. DESIGN KARTU STANDARD (Putih)
   ========================================= */
.pricing-card {
    background: white;
    color: #333;
    border-radius: 15px;
    padding: 40px 30px;
    position: relative;
    transition: transform 0.3s ease;
    overflow: hidden;
}

/* Hover Kartu Biasa */
.pricing-card:hover {
    transform: translateY(-10px);
}

/* Header Kartu */
.card-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.card-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 10px;
}

.price .currency {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: -15px;
}

.desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

/* List Fitur */
.feature-list {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: #444;
}

.feature-list i {
    font-size: 1.2rem;
    color: #333;
    flex-shrink: 0;
}

/* Tombol Select */
.btn-price {
    display: block;
    width: 100%;
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    background-color: transparent;
    border: 2px solid #111;
    color: #111;
    transition: 0.3s;
}

.btn-price:hover {
    background-color: #111;
    color: white;
}

/* =========================================
   5. KARTU POPULAR (Oranye Style)
   ========================================= */
.pricing-card.popular {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 10px 40px rgba(255, 140, 0, 0.3);
    transform: scale(1.05); /* Default lebih besar */
    z-index: 2;
}

/* FIX HOVER KARTU POPULAR (PENTING) */
.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 20px 50px rgba(255, 140, 0, 0.5);
    z-index: 3;
}

/* Override warna dalam kartu oranye */
.pricing-card.popular .card-header {
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

.pricing-card.popular .price, 
.pricing-card.popular .desc,
.pricing-card.popular .feature-list li,
.pricing-card.popular .feature-list i { 
    color: white; 
}

/* Tombol Putih */
.pricing-card.popular .btn-white {
    background-color: white;
    border-color: white;
    color: var(--primary-color);
}

.pricing-card.popular .btn-white:hover {
    background-color: #111;
    border-color: #111;
    color: white;
}

/* Pita Ribbon */
.ribbon {
    position: absolute;
    top: 25px;
    right: -30px;
    background: #000;
    color: white;
    padding: 5px 35px;
    transform: rotate(45deg);
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* =========================================
   6. RESPONSIVE (MOBILE)
   ========================================= */
@media screen and (max-width: 780px) {
    /* 1. Container & Layout */
    .pricing-section {
        padding: 60px 0 80px;
    }

    /* Grid jadi 2 kolom dulu biar gak sempit */
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
        gap: 30px;
        padding: 0 20px; /* Tambah padding samping */
    }

    /* 2. Kartu Popular */
    .pricing-card.popular {
        transform: scale(1); /* Reset scale biar gak nabrak kartu lain */
        order: -1; /* Opsional: Kalau mau kartu popular naik paling atas di tablet */
    }
    
    .pricing-card.popular:hover {
        transform: translateY(-5px); /* Efek hover lebih kalem */
    }
}

/* --- MOBILE VIEW (HP / Smartphone) --- */
@media screen and (max-width: 480px) {
    /* 1. Header & Intro */
    .page-header {
        height: 250px;
    }
    
    .page-title {
        font-size: 1.8rem;
    }

    .pricing-tabs {
        gap: 10px; /* Jarak antar tombol tab lebih rapat */
        margin-bottom: 40px;
    }

    .tab-btn {
        padding: 8px 20px; /* Tombol tab lebih kecil */
        font-size: 0.9rem;
        flex: 1 1 auto; /* Biar tombol ngisi ruang kosong */
    }

    /* 2. Grid & Card */
    .pricing-grid {
        display: flex; /* Ubah grid jadi flex column biar pasti tumpuk ke bawah */
        flex-direction: column;
        gap: 40px; /* Jarak antar kartu vertikal */
        padding: 0 20px;
    }

    .pricing-card {
        padding: 30px 20px; /* Padding dalam kartu dikurangi dikit */
    }

    /* Judul Paket */
    .card-header h3 {
        font-size: 1.3rem;
    }

    /* Harga */
    .price {
        font-size: 2rem;
    }

    /* List Fitur */
    .feature-list li {
        font-size: 0.9rem; /* Font list lebih kecil */
    }

    /* Matikan efek hover naik di HP biar smooth */
    .pricing-card:hover,
    .pricing-card.popular:hover {
        transform: none;
    }
}