/* Reset Dasar */
body {
    background-color: #f4f7f6;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 500px;
}

/* Kartu / Panel */
.card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* Header Produk (Toska Style) */
.item-wide {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Styling Header Produk yang Diperbarui */
.item-wide {
    display: flex;
    align-items: center;
    gap: 15px;
}

.banner-img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    border: 2px solid #008080;
    object-fit: cover;
}

/* Membungkus Icon dan Teks */
.info-title {
    display: flex;
    align-items: center; /* Sejajarkan secara vertikal */
    gap: 8px; /* Jarak antara icon dan teks */
}

/* Styling Icon Kecil */
.mini-icon {
    width: 25px;
    height: 25px;
    border-radius: 5px; /* Sedikit lengkungan */
    object-fit: contain; /* Menjaga proporsi icon asli */
}

.info h4 {
    margin: 0;
    color: #008080;
    font-size: 1.2rem;
    font-weight: bold;
}

.info p {
    margin: 2px 0 0 33px; /* Margin kiri 33px agar sejajar dengan teks h4 (icon 25px + gap 8px) */
    color: #777;
    font-size: 0.9rem;
}

/* Judul Langkah (Step) */
.step-title {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-title span {
    background-color: #008080; /* Hijau Toska */
    color: white;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.8rem;
}

/* Input Group */
.input-group {
    display: flex;
    gap: 10px;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
}

.input-group input:focus {
    border-color: #008080;
}

.input-hint {
    font-size: 0.75rem;
    color: #888;
    margin-top: 10px;
}

/* Grid Nominal */
.grid-nominal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.nominal-item {
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
    text-align: left;
}

.nominal-item p {
    margin: 0;
    font-weight: bold;
    font-size: 0.95rem;
}

.nominal-item span {
    color: #008080;
    font-size: 0.85rem;
    font-weight: 600;
}

/* State Aktif (Pilihan yang dipilih) */
.nominal-item.active {
    border: 2px solid #008080;
    background-color: rgba(0, 128, 128, 0.05);
}

.nominal-item:hover {
    border-color: #008080;
}

/* Tombol Beli */
.btn-buy {
    width: 100%;
    background-color: #008080; /* Hijau Toska */
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 128, 128, 0.3);
    transition: 0.3s;
}

.btn-buy:hover {
    background-color: #006666;
    transform: translateY(-2px);
}
.nickname-box {
    background-color: rgba(0, 128, 128, 0.05);
    border: 1px dashed #008080;
    border-radius: 8px;
    padding: 10px;
    margin-top: 15px;
    animation: fadeIn 0.5s ease;
}

.nickname-box p {
    margin: 3px 0;
    font-size: 0.9rem;
    color: #444;
}

#nickname-text {
    color: #008080;
    font-weight: bold;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Grid Pembayaran */
.grid-payment {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.payment-item {
    border: 1px solid #eee;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

.payment-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.payment-top img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.payment-name {
    font-size: 0.85rem;
    font-weight: bold;
    color: #444;
}

.payment-price {
    font-size: 0.8rem;
    color: #008080; /* Hijau Toska */
    font-weight: 600;
    text-align: right;
    border-top: 1px solid #f9f9f9;
    padding-top: 5px;
}

/* State Aktif untuk Pembayaran */
.payment-item.active {
    border: 2px solid #008080 !important;
    background-color: rgba(0, 128, 128, 0.05);
}

.payment-item:hover {
    border-color: #008080;
}
/* Modal Styling */
.modal {
    display: none; 
    position: fixed;
    z-index: 999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(3px);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal-content h3 { color: #008080; margin-top: 0; }

.modal-body p {
    margin: 10px 0;
    font-size: 0.95rem;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 5px;
}

.total-section {
    background: rgba(0, 128, 128, 0.05);
    padding: 10px;
    border-radius: 8px;
    margin: 15px 0;
}

.total-label { font-size: 0.8rem; color: #666; display: block; }
.total-price { font-size: 1.3rem; font-weight: bold; color: #008080; }

.modal-buttons { display: flex; gap: 10px; }

.btn-cancel {
    flex: 1; padding: 12px; border: none; border-radius: 8px;
    background: #eee; cursor: pointer; font-weight: bold;
}

.btn-confirm {
    flex: 2; padding: 12px; border: none; border-radius: 8px;
    background: #008080; color: white; cursor: pointer; font-weight: bold;
}