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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #FF8C42 0%, #FF6B35 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 550px;
    margin: 0 auto;
}

/* ==================== HEADER ==================== */
.header {
    text-align: center;
    margin-bottom: 28px;
    padding: 0 8px;
}

.header h1 {
    color: white;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header p {
    color: rgba(255,255,255,0.85);
    font-size: 12px;
    margin-top: 6px;
    font-weight: 500;
}

/* ==================== TABS ==================== */
.tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 6px;
    border-radius: 60px;
    margin-bottom: 24px;
}

.tab-btn {
    padding: 12px 4px;
    border: none;
    background: transparent;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    color: white;
    text-align: center;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: white;
    color: #FF6B35;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: scale(1.02);
}

/* ==================== PANEL ==================== */
.panel {
    display: none;
    animation: fadeIn 0.4s ease;
}

.panel.active {
    display: block;
}

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

/* ==================== CARD ==================== */
.card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 32px;
    padding: 24px;
    box-shadow: 0 20px 40px -12px rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.3);
}

/* ==================== REKENING CARD ==================== */
.rekening-card {
    background: linear-gradient(135deg, #1a3a5f 0%, #0d2a44 100%);
    border-radius: 24px;
    padding: 22px;
    margin-bottom: 24px;
    color: white;
    text-align: center;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
}

.rekening-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 0.5px;
}

.rekening-title i {
    font-size: 18px;
    opacity: 0.9;
}

.bank-name {
    font-size: 11px;
    opacity: 0.8;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.account-number {
    font-size: 26px;
    font-weight: 800;
    margin: 12px 0 8px;
    letter-spacing: 3px;
    font-family: monospace;
}

.account-name {
    font-size: 13px;
    opacity: 0.9;
    font-weight: 500;
}

.rekening-note {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.15);
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ==================== INSTRUKSI CARD ==================== */
.instruksi-card {
    background: linear-gradient(135deg, #FFF8F0 0%, #FFF3E6 100%);
    border-radius: 20px;
    padding: 16px 18px;
    margin-bottom: 24px;
    border: 1px solid #FFE0CC;
}

.instruksi-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.instruksi-header span {
    font-weight: 700;
    font-size: 13px;
    color: #FF6B35;
}

.instruksi-header i {
    color: #FF8C42;
    font-size: 13px;
    transition: transform 0.3s ease;
}

.instruksi-content {
    display: none;
    padding-top: 14px;
    margin-top: 10px;
    border-top: 1px solid #FFE0CC;
}

.instruksi-content.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
}

.step-number {
    width: 24px;
    height: 24px;
    background: #FF6B35;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
}

.step-text {
    font-size: 12px;
    color: #4A3B2C;
    flex: 1;
    line-height: 1.4;
}

.step-text strong {
    color: #FF6B35;
}

.btn-group {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.btn-bot {
    background: #FF6B35;
    padding: 9px 16px;
    border-radius: 40px;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-bot:hover {
    background: #e05a2a;
    transform: translateY(-2px);
}

.btn-bot-outline {
    background: transparent;
    border: 1.5px solid #FF6B35;
    padding: 7px 14px;
    border-radius: 40px;
    text-decoration: none;
    color: #FF6B35;
    font-weight: 700;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-bot-outline:hover {
    background: #FF6B35;
    color: white;
    transform: translateY(-2px);
}

/* ==================== FORM ==================== */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 7px;
    display: block;
}

.form-label span {
    color: #ef4444;
}

input, select, textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    background: white;
    transition: all 0.2s ease;
}

textarea {
    min-height: 85px;
    resize: vertical;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #FF8C42;
    box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.15);
}

.file-upload {
    border: 1.5px dashed #cbd5e1;
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    background: #f8fafc;
    transition: all 0.2s ease;
}

.file-upload:hover {
    border-color: #FF8C42;
    background: #FFF8F0;
    transform: translateY(-1px);
}

.file-upload p {
    color: #64748b;
    font-size: 12px;
}

.file-name {
    margin-top: 8px;
    color: #FF8C42;
    font-size: 11px;
    font-weight: 600;
}

/* ==================== BUTTONS ==================== */
.btn-submit, .btn-track {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #FF8C42, #FF6B35);
    color: white;
    border: none;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-submit:hover, .btn-track:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
}

.btn-submit:active, .btn-track:active {
    transform: translateY(1px);
}

/* ==================== ANIMASI KIRIM DATA ==================== */
.btn-submit.loading, .btn-track.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-submit.loading::after, .btn-track.loading::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    top: 50%;
    right: 20px;
    margin-top: -9px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== RESULT MESSAGES ==================== */
.result-message {
    margin-top: 18px;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 13px;
    text-align: center;
    font-weight: 600;
    animation: messagePop 0.3s ease;
}

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

.result-message.success {
    background: #ecfdf5;
    color: #059669;
    border-left: 4px solid #059669;
}

.result-message.error {
    background: #fef2f2;
    color: #dc2626;
    border-left: 4px solid #dc2626;
}

.result-message.loading {
    background: #eff6ff;
    color: #2563eb;
    border-left: 4px solid #2563eb;
}

.result-message.warning {
    background: #fef3c7;
    color: #d97706;
    border-left: 4px solid #d97706;
}

/* ==================== DATA LIST ==================== */
.data-list {
    max-height: 420px;
    overflow-y: auto;
    margin-top: 18px;
    padding-right: 4px;
}

.data-list::-webkit-scrollbar {
    width: 5px;
}

.data-list::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 10px;
}

.data-list::-webkit-scrollbar-thumb {
    background: #FF8C42;
    border-radius: 10px;
}

/* ==================== DATA ITEM ==================== */
.data-item {
    background: #ffffff;
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    animation: itemFadeIn 0.3s ease;
}

@keyframes itemFadeIn {
    from {
        opacity: 0;
        transform: translateX(-5px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.data-item:hover {
    border-color: #FF8C42;
    box-shadow: 0 6px 16px rgba(255, 140, 66, 0.1);
    transform: translateX(4px);
}

.data-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}

.data-id {
    font-weight: 800;
    font-size: 12px;
    color: #1e293b;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 30px;
}

.data-status {
    padding: 3px 10px;
    border-radius: 30px;
    font-size: 10px;
    font-weight: 700;
}

.status-pending { background: #fef3c7; color: #d97706; }
.status-approved { background: #d1fae5; color: #059669; }
.status-rejected { background: #fee2e2; color: #dc2626; }
.status-waiting { background: #fef3c7; color: #d97706; }
.status-lunas { background: #d1fae5; color: #059669; }

.data-detail {
    font-size: 12px;
    color: #475569;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 6px;
}

.data-detail span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.data-nominal {
    font-weight: 800;
    color: #FF6B35;
    font-size: 14px;
    margin-top: 6px;
}

/* ==================== BAYAR ITEM ==================== */
.bayar-item {
    background: #ffffff;
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 14px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    animation: itemFadeIn 0.3s ease;
}

.bayar-item:hover {
    border-color: #FF8C42;
    box-shadow: 0 6px 16px rgba(255, 140, 66, 0.1);
}

.bayar-info {
    margin-bottom: 8px;
    font-size: 12px;
    color: #334155;
}

.bayar-info strong {
    color: #1e293b;
}

.bayar-nominal {
    font-size: 20px;
    font-weight: 800;
    color: #FF6B35;
    margin: 12px 0;
    text-align: center;
}

.btn-bayar {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 6px;
}

.btn-bayar:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-bayar:active {
    transform: translateY(1px);
}

.bayar-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 10px;
    font-weight: 700;
    margin-bottom: 12px;
}

.bayar-status.waiting { background: #fef3c7; color: #d97706; }
.bayar-status.lunas { background: #d1fae5; color: #059669; }

/* ==================== TOTAL AMOUNT ==================== */
.total-amount {
    background: linear-gradient(135deg, #FF8C42, #FF6B35);
    border-radius: 20px;
    padding: 20px 16px;
    text-align: center;
    margin-bottom: 20px;
    margin-top: 4px;
    box-shadow: 0 10px 25px -5px rgba(255, 107, 53, 0.35);
    animation: amountPop 0.5s ease;
}

@keyframes amountPop {
    0% {
        transform: scale(0.95);
        opacity: 0;
    }
    80% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.total-amount .label {
    color: rgba(255,255,255,0.95);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.total-amount .amount {
    color: white;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.total-amount .count {
    color: rgba(255,255,255,0.85);
    font-size: 11px;
    margin-top: 6px;
}

/* ==================== EMPTY DATA ==================== */
.empty-data {
    text-align: center;
    padding: 36px 20px;
    color: #94a3b8;
}

.empty-data i {
    font-size: 44px;
    margin-bottom: 12px;
    opacity: 0.4;
}

.empty-data p {
    font-size: 12px;
    margin-bottom: 4px;
}

/* ==================== MODAL ==================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 28px;
    width: 90%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalFade 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}

@keyframes modalFade {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #FFF8F0, #FFF3E6);
    border-radius: 28px 28px 0 0;
}

.modal-header h3 {
    font-size: 17px;
    font-weight: 800;
    color: #1e293b;
}

.modal-close {
    font-size: 28px;
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.2s ease;
    line-height: 1;
}

.modal-close:hover {
    color: #FF6B35;
}

.modal-body {
    padding: 22px;
}

.rekening-mini {
    background: rgba(255, 107, 53, 0.1);
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 12px;
    color: #FF6B35;
    text-align: center;
    font-weight: 600;
}

/* ==================== FOOTER ==================== */
.footer {
    text-align: center;
    margin-top: 20px;
    padding: 14px;
    color: rgba(255,255,255,0.6);
    font-size: 11px;
}

.footer a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color 0.2s;
}

.footer a:hover {
    color: white;
    text-decoration: underline;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 480px) {
    body {
        padding: 14px;
    }
    
    .card {
        padding: 18px;
        border-radius: 28px;
    }
    
    .tab-btn {
        font-size: 10px;
        padding: 9px 2px;
    }
    
    .header h1 {
        font-size: 22px;
    }
    
    .account-number {
        font-size: 22px;
        letter-spacing: 2px;
    }
    
    .total-amount .amount {
        font-size: 28px;
    }
    
    .rekening-card {
        padding: 18px;
    }
    
    .modal-body {
        padding: 18px;
    }
    
    .rekening-mini {
        font-size: 11px;
    }
}

/* ==================== UTILITY ==================== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
