:root {
    --primary: #10b981;
    --primary-dark: #059669;
    --bg-page: #d7ccc8; /* Mimicking the paper background in image */
    --bg-card: #ffffff;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-page);
    background-image: radial-gradient(circle at 2px 2px, rgba(0,0,0,0.05) 1px, transparent 0);
    background-size: 24px 24px;
    color: var(--text-main);
    line-height: 1.5;
    min-height: 100dvh; /* Use dynamic viewport height for mobile */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 15px;
    overflow-x: hidden;
}

.page-wrapper {
    width: 100%;
    max-width: 600px; /* Diperlebar dari 480px agar lebih lega */
}

.support-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--shadow-premium);
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Header Section */
.card-header {
    text-align: center;
    margin-bottom: 32px;
}

.icon-container {
    width: 180px;
    height: 180px;
    margin: 0 auto 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.user-avatar {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.card-header h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #111827;
}

.card-header p {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 300;
}

/* Sections */
.section, .data-section, .payment-section {
    margin-bottom: 28px;
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 16px;
    text-transform: none;
}

/* Amount Grid */
.amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.amount-btn {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 8px;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Outfit', sans-serif;
}

.amount-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(16, 185, 129, 0.05);
}

.amount-btn.active {
    border-color: var(--primary);
    background: rgba(16, 185, 129, 0.05);
    color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

/* Form Styles */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    background: #fdfdfd;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 15px;
    font-family: 'Outfit', sans-serif;
    transition: var(--transition);
    color: var(--text-main);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.wa-input-wrapper {
    display: flex;
    align-items: center;
    position: relative;
}

.wa-prefix {
    position: absolute;
    left: 16px;
    color: var(--text-main);
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
}

.wa-input-wrapper .form-control {
    padding-left: 55px;
}

/* Payment Buttons */
.payment-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.pay-btn {
    position: relative;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px 12px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 90px;
}

.pay-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.pay-btn.mandiri { border-color: #003d79; }
.pay-btn.mandiri .pay-logo { color: #003d79; }
.pay-btn.dana { border-color: #118eea; }
.pay-btn.dana .pay-logo { color: #118eea; }
.pay-btn.ovo { border-color: #4d2a86; }
.pay-btn.ovo .pay-logo { color: #4d2a86; }
.pay-btn.jago { border-color: #10b981; }

.pay-btn .pay-logo {
    width: 100%;
    height: 35px;
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pay-btn .pay-logo img {
    max-height: 100%;
    max-width: 80%;
    object-fit: contain;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.05));
}

.pay-btn .pay-logo {
    font-size: 16px;
    font-weight: 700;
    color: #334155;
    text-align: center;
}

.pay-sub {
    font-size: 9px;
    font-weight: 700;
    color: #ffffff;
    background: #10b981;
    padding: 5px 12px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Modal Steps Styling */
.modal-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
    text-align: left;
}

.step-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.step-number {
    background: var(--primary);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-text {
    font-size: 14px;
    color: #475569;
}

.step-text strong {
    color: #1e293b;
}

.admin-link-wrapper a:hover {
    opacity: 1;
    color: var(--primary);
}

/* Footer */
.card-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 11px;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 400px) {
    .amount-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Modal Content */
.modal-content {
    background: white;
    width: 100%;
    max-width: 420px;
    border-radius: 28px;
    padding: 32px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: scaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleUp {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f3f4f6;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    background: #e5e7eb;
    color: #111827;
}

.modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.modal-header p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Payment Info Card */
.payment-info-card {
    background: #f9fafb;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
}

.bank-info, .amount-info {
    margin-bottom: 20px;
}

.bank-info:last-child, .amount-info:last-child {
    margin-bottom: 0;
}

.bank-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.account-row, .amount-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.account-number, .total-amount {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.total-amount {
    color: #10b981;
    font-size: 20px;
}

.account-holder {
    font-size: 13px;
    color: var(--text-muted);
}

.amount-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    display: block;
    margin-bottom: 8px;
}

.copy-btn {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
}

.copy-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.unique-code-notice {
    font-size: 11px;
    color: #ef4444;
    line-height: 1.4;
    margin-top: 12px;
    font-weight: 400;
}

/* Actions */
.modal-actions {
    margin-bottom: 16px;
}

.btn-confirm {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Outfit', sans-serif;
}

.btn-confirm:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3);
}

.modal-footer-note {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.4;
}

/* Toast Notification Pro */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 16px 20px;
    min-width: 300px;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1), fadeOut 0.3s ease forwards 4.7s;
}

.toast.success { border-left: 4px solid var(--primary); }
.toast.error { border-left: 4px solid #ef4444; }
.toast.info { border-left: 4px solid #3b82f6; }

.toast-content {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    line-height: 1.4;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(100%) scale(0.9); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.9); }
}

/* Mobile Responsive Optimization */
@media (max-width: 600px) {
    .page-wrapper {
        padding: 10px 0; /* Vertical breathing room on mobile */
        display: flex;
        align-items: center;
        min-height: calc(100dvh - 20px);
    }

    .support-card {
        padding: 30px 20px;
        border-radius: 20px;
        max-width: 100%;
    }

    .icon-container {
        width: 120px; /* Ukuran foto di HP diperkecil sedikit agar proporsional */
        height: 120px;
    }

    .card-header h1 {
        font-size: 24px;
    }

    .amount-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .amount-btn {
        padding: 12px 5px;
        font-size: 12px;
    }

    .payment-buttons {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 100%;
        max-width: 90%;
        margin: 0 auto;
        border-radius: 24px;
        position: relative;
        padding: 30px 20px;
        animation: scaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .toast {
        min-width: auto;
        width: calc(100% - 40px);
        right: 20px;
        bottom: 20px;
    }
}
