/* --- CSS Reset & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #0f172a; /* Dark Blue Background */
    color: #ffffff;
    display: flex;
    justify-content: center;
    /* align-items: center dihapus agar halaman panjang bisa di-scroll dengan enak dari atas */
    align-items: flex-start; 
    min-height: 100vh;
    padding: 50px 20px;
}

/* --- Container Section --- */
.pricing-section {
    width: 100%;
    max-width: 1050px; /* Lebar total container dibatasi agar rapi */
    text-align: center;
    margin: 0 auto;
}

.section-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(to right, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-weight: bold;
    color: #94a3b8;
    margin-bottom: 40px;
    font-size: 1rem;
}

/* --- FILTER & SEARCH STYLES (BARU) --- */
.filter-wrapper {
    max-width: 700px;
    margin: 0 auto 50px auto; /* Posisi Wrapper di tengah */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Search Bar Design */
.search-container {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 20px;
    color: #94a3b8;
    font-size: 1.1rem;
}

.search-container input {
    width: 100%;
    padding: 15px 20px 15px 50px; /* Padding kiri besar untuk icon */
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 50px; /* Rounded pill shape */
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.search-container input:focus {
    border-color: #4facfe;
    box-shadow: 0 0 15px rgba(79, 172, 254, 0.2);
}

.search-container input::placeholder {
    color: #64748b;
}

/* Category Filter Design (RATA TENGAH) */
.category-container {
    display: flex;
    flex-wrap: auto; /* Agar tombol turun ke bawah jika layar sempit */
    justify-content: center; /* KUNCI: Rata Tengah */
    align-items: center;
    gap: 10px;
    width: 100%;
}

.category-btn {

    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1rem;
    font-weight: 600;
    padding: 10px 15px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    white-space: nowrap; /* Teks tombol tidak turun baris */
}

/* Efek Hover */
.category-btn:hover {
    color: #fff;
}

/* Efek Active (Garis Bawah) */
.category-btn.active {
    color: #4facfe;
}

.category-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 3px;
    background: #4facfe;
    border-radius: 2px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { width: 0; }
    to { width: 80%; }
}

/* --- Grid Layout --- */
.pricing-container {
    display: grid;
    /* Ukuran kartu min 280px (pas, tidak terlalu lebar/kurus) */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 10px;
    align-items: stretch; /* Tinggi kartu seragam */
    width: 100%;
}

/* Class Helper untuk Javascript (Hide Element) */
.price-card.hide {
    display: none;
}

/* --- Card Design --- */
.price-card {
    background: #1e293b;
    border-radius: 20px;
    padding: 0;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid #334155;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
    animation: fadeIn 0.5s ease; /* Efek halus saat filter */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.price-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: #4facfe;
}

/* Highlight Popular */
.price-card.popular {
    background: linear-gradient(145deg, #1e293b, #26334d);
    border: 1px solid #4facfe;
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.2);
}

/* --- Image Style (Updated) --- */
.card-image {
    width: 100%;
    height: 200px;
    background-color: #162030;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid #334155;
}

.card-image img {
    width: 90%;
    height: 90%;
    object-fit: contain; /* Gambar utuh, tidak zoom */
    object-position: center; /* Gambar pas di tengah */
    padding: 10px;
}

/* --- Card Content --- */
.card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* --- Badge Style --- */
.badge-popular {
    position: absolute;
    top: 20px;
    right: -35px;
    background: #4facfe;
    color: #fff;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
}

/* --- Typography --- */
.plan-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 15px;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 5px;
}

.price span {
    font-size: 1rem;
    color: #94a3b8;
    font-weight: 400;
}

.divider {
    height: 1px;
    background: #334155;
    margin: 25px 0;
    width: 100%;
}

/* --- Features List --- */
.features {
    list-style: none;
    text-align: left;
    flex-grow: 1;
    margin-bottom: 20px;
}

.features li {
    margin-bottom: 15px;
    color: #cbd5e1;
    display: flex;
    align-items: center;
}

.features li i {
    margin-right: 10px;
    width: 20px;
}

.features li i.check {
    color: #4facfe;
}

.features li i.times {
    color: #ef4444;
}

/* --- Button --- */
.btn-order {
    display: inline-block;
    width: 100%;
    padding: 15px;
    background: transparent;
    color: #4facfe;
    border: 2px solid #4facfe;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    margin-top: auto;
}

.price-card.popular .btn-order,
.btn-order:hover {
    background: #4facfe;
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.4);
}

/* --- Responsive Mobile --- */
@media (max-width: 768px) {
    .section-title {
        font-size: 3rem;
    }
    
    .category-container {
        /* Pastikan di HP tombol tetap rata tengah dan turun baris jika perlu */
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .category-btn {
        font-size: 0.7rem;
        padding: 5px 5px;
        margin: 5px;
    }
}



