/* --- FONT DEFINITIONS --- */
@font-face {
    font-family: 'SeaBankCustomFont';
    src: url('seabank.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'NominalSeaFont';
    src: url('nominalsea.ttf') format('truetype');
    font-weight: 500; 
    font-style: normal;
}

/* --- RESET & BASE --- */
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'SeaBankCustomFont', sans-serif; }
body { background-color: #fafafa; color: #333; display: flex; justify-content: center; min-height: 100vh; overflow-x: hidden; }
img { max-width: 100%; display: block; }

/* Container Mobile */
.mobile-container { 
    width: 100%; max-width: 450px; background-color: #fafafa; 
    position: relative; padding-bottom: 160px; min-height: 100vh; overflow-x: hidden; 
}

/* SPA Pages Visibility */
#page-settings { display: block; }
#page-transfer { display: none; }
#page-confirmation { display: none; }
#page-pin { display: none; }
#page-result { display: none; }

/* --- ANIMATIONS --- */
.anim-container { width: 100%; animation-duration: 0.3s; animation-fill-mode: forwards; animation-timing-function: ease-in-out; }
.slide-in-right { animation-name: slideInRight; } @keyframes slideInRight { from { transform: translateX(100%); } to { transform: translateX(0); } }
.slide-out-left { animation-name: slideOutLeft; } @keyframes slideOutLeft { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.slide-in-left { animation-name: slideInLeft; } @keyframes slideInLeft { from { transform: translateX(-100%); } to { transform: translateX(0); } }
.slide-out-right { animation-name: slideOutRight; } @keyframes slideOutRight { from { transform: translateX(0); } to { transform: translateX(100%); } }

/* --- LOADING OVERLAYS --- */
#loading-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: #ffffff; z-index: 9999; justify-content: center; align-items: center; flex-direction: column; }
#lottie-container { width: 650px; height: 650px; } 
#loading-box-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: transparent; z-index: 9999; justify-content: center; align-items: center; }
.loading-box { width: 110px; height: 90px; background-color: rgba(255, 255, 255, 0.9); border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); display: flex; flex-direction: column; justify-content: center; align-items: center; border: 1px solid rgba(0,0,0,0.05); }
.dots-wrapper { display: flex; gap: 8px; margin-bottom: 10px; }
.dot { width: 10px; height: 10px; border-radius: 50%; animation: bounce 0.5s infinite alternate; }
.dot-blue { background-color: #4285F4; animation-delay: 0s; }
.dot-orange { background-color: #F36F21; animation-delay: 0.15s; }
@keyframes bounce { from { transform: translateY(0); } to { transform: translateY(-6px); } }
.loading-text { font-size: 14px; color: #555; font-weight: 500; }

/* --- CUSTOM NUMPAD --- */
#custom-numpad { display: block; position: fixed; bottom: 0; left: 0; width: 100%; background-color: #E5E5E5; z-index: 3000; padding: 8px; padding-bottom: 20px; transform: translateY(100%); transition: transform 0.3s ease-out; }
#custom-numpad.active { transform: translateY(0); }
@media (min-width: 450px) { #custom-numpad { left: 50%; width: 450px; margin-left: -225px; } }
.numpad-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; grid-template-rows: repeat(4, 55px); gap: 6px; }
.np-btn { background-color: #fff; border: none; border-radius: 5px; font-size: 24px; font-weight: 500; color: #000; cursor: pointer; box-shadow: 0 1px 1px rgba(0,0,0,0.3); display: flex; justify-content: center; align-items: center; }
.np-btn:active { background-color: #ddd; }
.np-backspace { background-color: #d5d5d5; font-size: 20px; box-shadow: none; }
.np-selesai { grid-column: 4; grid-row: 2 / span 3; background-color: #F36F21; color: white; font-size: 16px; font-weight: 600; }
.np-selesai:active { background-color: #d85c15; }
.np-empty { background: transparent; box-shadow: none; cursor: default; }

/* --- PIN SHEET --- */
#page-pin { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 5000; background-color: rgba(0,0,0,0.5); }
.pin-bottom-sheet { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 450px; background-color: #fff; border-top-left-radius: 16px; border-top-right-radius: 16px; padding-top: 20px; animation: slideUp 0.3s ease-out; }
@keyframes slideUp { from { transform: translate(-50%, 100%); } to { transform: translate(-50%, 0); } }
.pin-header { padding: 0 20px 10px 20px; position: relative; text-align: center; }
.pin-back-btn { position: absolute; left: 20px; top: 0; font-size: 20px; color: #666; cursor: pointer; }
.pin-title { font-size: 18px; font-weight: 600; color: #333; margin-bottom: 20px; }
.pin-desc { padding: 0 30px; text-align: center; font-size: 14px; color: #444; line-height: 1.5; margin-bottom: 8px; }
.pin-link { color: #0086a8; text-decoration: none; font-weight: 500; display: block; text-align: center; margin-bottom: 30px; font-size: 14px; }
.pin-dots-container { display: flex; justify-content: center; gap: 15px; margin-bottom: 40px; }
.pin-dot { width: 14px; height: 14px; border-radius: 50%; background-color: #E0E0E0; transition: background 0.2s; }
.pin-dot.filled { background-color: #555; }
.pin-keyboard { background-color: #E8E8E8; padding: 10px 0; padding-bottom: 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.key-btn { background-color: #fff; border: none; border-radius: 5px; font-size: 24px; font-weight: 500; color: #000; padding: 12px 0; margin: 0 6px; box-shadow: 0 1px 1px rgba(0,0,0,0.3); cursor: pointer; display: flex; justify-content: center; align-items: center; }
.key-btn:active { background-color: #ddd; }
.key-btn.empty { background: transparent; box-shadow: none; cursor: default; }
.key-btn.backspace { background: transparent; box-shadow: none; }

/* --- MODERN SETTINGS PAGE STYLES (NEW) --- */
.modern-header-bg {
    background: linear-gradient(135deg, #FF8800 0%, #FF5500 100%);
    padding: 30px 20px 60px 20px; 
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    text-align: center;
    position: relative;
    z-index: 1;
}
.modern-header-title { color: #fff; font-size: 20px; font-weight: 700; margin-bottom: 4px; letter-spacing: 0.5px; }
.modern-header-subtitle { color: rgba(255, 255, 255, 0.9); font-size: 13px; font-weight: 400; }

.modern-card {
    background: #fff;
    margin: -40px 20px 20px 20px; 
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); 
    position: relative;
    z-index: 2;
    animation: fadeInUpCard 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes fadeInUpCard { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.modern-input-group { margin-bottom: 20px; }
.modern-label { display: block; font-size: 13px; font-weight: 600; color: #888; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.input-wrapper { display: flex; align-items: center; background-color: #F7F9FC; border: 1px solid #E4E9F2; border-radius: 12px; padding: 4px 14px; transition: all 0.3s ease; }
.input-wrapper:focus-within { background-color: #fff; border-color: #FF5500; box-shadow: 0 4px 10px rgba(255, 85, 0, 0.1); }
.input-icon { font-size: 18px; color: #adb5bd; margin-right: 12px; width: 20px; text-align: center; transition: color 0.3s; }
.input-wrapper:focus-within .input-icon { color: #FF5500; }
.modern-form-input { width: 100%; border: none; background: transparent; padding: 12px 0; font-size: 15px; color: #333; font-weight: 600; outline: none; }
.modern-form-input::placeholder { color: #ccc; font-weight: 400; }

.modern-back-btn { display: flex; align-items: center; justify-content: center; width: 100%; padding: 14px; background-color: #fff; color: #555; border: 1px solid #eee; border-radius: 12px; text-decoration: none; font-weight: 600; font-size: 14px; gap: 10px; transition: all 0.2s; box-shadow: 0 2px 5px rgba(0,0,0,0.03); }
.modern-back-btn:active { background-color: #f5f5f5; transform: scale(0.98); }

/* --- MODERN POPUP ALERT STYLES --- */
.modern-alert-overlay {
    display: none; 
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6); 
    backdrop-filter: blur(4px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modern-alert-overlay.show { display: flex; opacity: 1; }
.modern-alert-card {
    background: #fff;
    width: 85%;
    max-width: 320px;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modern-alert-overlay.show .modern-alert-card { transform: scale(1); }
.modern-alert-icon { font-size: 40px; color: #FF5500; margin-bottom: 16px; }
.modern-alert-title { font-size: 18px; font-weight: 700; color: #333; margin-bottom: 8px; }
.modern-alert-message { font-size: 14px; color: #666; line-height: 1.5; margin-bottom: 24px; }
.modern-alert-btn {
    width: 100%;
    padding: 12px;
    background-color: #FF5500;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.modern-alert-btn:active { background-color: #e04a00; }


/* --- TRANSFER PAGE STYLES (ORIGINAL) --- */
.header { background-color: #fff; padding: 18px 20px; display: flex; align-items: center; position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.header i { font-size: 20px; color: #555; margin-right: 20px; cursor: pointer; }
.header h1 { font-size: 20px; font-weight: 600; }
.card { background-color: #fff; margin: 10px 16px; border-radius: 6px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.recipient-section { display: flex; align-items: center; margin-bottom: 22px; }
.avatar { width: 46px; height: 46px; background-color: #f36f21; border-radius: 50%; display: flex; justify-content: center; align-items: center; color: white; font-size: 22px; margin-right: 14px; }
.recipient-info h2 { font-size: 18px; font-weight: 600; color: #333; margin-bottom: 4px; }
.recipient-info p { font-size: 15px; color: #777; }
.nominal-table-container { border-radius: 6px; overflow: hidden; margin-bottom: 20px; }
.amount-input { font-size: 38px; color: #333; font-weight: 500; background: transparent; border: none; outline: none; width: 100%; caret-color: transparent; cursor: default; font-family: 'NominalSeaFont', sans-serif; }
.nominal-input-row { background-color: #fafafa; padding: 16px 16px 10px 16px; display: flex; align-items: center; border-bottom: 2px solid #e56880; transition: border-color 0.3s; }
.currency { font-size: 20px; color: #666; margin-right: 10px; padding-top: 8px; }
.error-msg-row { background-color: #fef4f3; color: #e56880; padding: 12px 16px; font-size: 14px; font-weight: 500; border-radius: 0 0 4px 4px; }
.balance-info { font-size: 15px; color: #9e9e9e; line-height: 1.6; margin-bottom: 18px; border-bottom: 1px solid #f0f0f0; padding-bottom: 18px; }
.link-blue { color: #0086a8; text-decoration: none; font-weight: 600; cursor: pointer; }
.fee-row { display: flex; justify-content: space-between; align-items: flex-start; font-size: 16px; color: #444; min-height: 24px; }
.fee-right-stack { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.fee-strikethrough { text-decoration: line-through; color: #aaa; margin-right: 6px; font-size: 15px; }
.fee-free-text { color: #2ECC71; font-weight: 500; font-size: 16px; }
.quota-badge { background-color: #E9F9F4; color: #00AA5B; font-size: 12px; font-weight: 500; padding: 4px 8px; border-radius: 4px; margin-top: 4px; display: inline-block; }
.info-icon { color: #888; margin-left: 6px; font-size: 16px; vertical-align: middle; }
.row-center { display: flex; justify-content: space-between; align-items: center; font-size: 16px; color: #444; }
.list-item { padding: 16px 0; border-bottom: 1px solid #f5f5f5; font-size: 16px; color: #555; display: flex; justify-content: space-between; align-items: center; }
.list-item:last-child { border-bottom: none; }
.list-value { color: #333; display: flex; align-items: center; font-weight: 500; }
.list-value i { margin-left: 10px; color: #ccc; font-size: 14px; }
.fav-section { display: flex !important; flex-direction: row; justify-content: space-between; align-items: center; }
.fav-label { font-size: 16px; color: #555; display: flex; align-items: center; }
.star-icon { color: #ffc107; font-size: 22px; cursor: pointer; }
.notes-header { font-size: 15px; color: #666; margin-bottom: 10px; display: flex; justify-content: space-between; }
.notes-area { width: 100%; height: 70px; background-color: #f9f9f9; border: none; border-radius: 4px; resize: none; outline: none; padding: 12px; font-size: 16px; }
.switch { position: relative; display: inline-block; width: 50px; height: 28px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 24px; width: 24px; left: 2px; bottom: 2px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: #0086a8; }
input:checked + .slider:before { transform: translatex(22px); }
.bottom-bar { position: fixed; bottom: 0; left: 0; width: 100%; background-color: #fff; padding: 20px; display: flex; justify-content: center; box-shadow: 0 -2px 5px rgba(0,0,0,0.05); border-top-left-radius: 6px; border-top-right-radius: 6px; z-index: 200; }
@media (min-width: 450px) { .bottom-bar { left: 50%; transform: translatex(-50%); width: 450px; } }
.btn-orange { width: 100%; background-color: #FF5500; color: #fff; border: none; padding: 16px; border-radius: 6px; font-size: 18px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.btn-disabled { background-color: #e0e0e0; color: #a0a0a0; cursor: not-allowed; pointer-events: none; }

/* --- CONFIRMATION PAGE --- */
#page-confirmation .header { padding: 20px 22px; }
#page-confirmation .header h1 { font-size: 22px; }
#page-confirmation .header i { font-size: 22px; margin-right: 22px; }
#page-confirmation .card { padding: 22px; margin: 12px 18px; border-radius: 8px; }
#page-confirmation .flow-item { display: flex; align-items: flex-start; margin-bottom: 10px; cursor: pointer; }
#page-confirmation .flow-avatar { width: 44px !important; height: 44px !important; min-width: 44px; margin-right: 14px; border-radius: 50%; overflow: hidden; display: flex; justify-content: center; align-items: center; flex-shrink: 0; }
#page-confirmation .flow-avatar img { width: 100%; height: 100%; object-fit: cover; }
#page-confirmation .flow-avatar.orange-bg { font-size: 22px; color: white; background-color: #f36f21; }
#page-confirmation .flow-details { flex-grow: 1; } 
#page-confirmation .flow-details h3 { font-size: 17px; font-weight: 500; color: #333; margin-bottom: 4px; }
#page-confirmation .flow-details p { font-size: 15px; color: #777; display: flex; align-items: center; }
#page-confirmation .bank-logo-mini { height: 16px !important; width: auto; margin-right: 6px; vertical-align: middle; }
#page-confirmation .flow-arrow { width: 44px; text-align: center; font-size: 16px; margin-top: -6px; margin-bottom: 6px; color: #ccc; }
#page-confirmation .detail-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; font-size: 16px; color: #666; }
#page-confirmation .amount-big { font-size: 26px; font-weight: 400; color: #333; font-family: 'SeaBankCustomFont', sans-serif; }
#page-confirmation .amount-big #confNominal { font-size: 26px; font-weight: 700; }
#page-confirmation .amount-big .currency-small-conf { font-size: 16px; font-weight: 400; margin-right: 5px; }
#page-confirmation .strikethrough { font-size: 15px; text-decoration: line-through; color: #aaa; margin-right: 8px; }
#page-confirmation .text-green { font-size: 15px; color: #2ECC71; font-weight: 600; }
#page-confirmation hr { border: 0; border-top: 1px solid #f0f0f0; margin: 18px 0; }
#page-confirmation .detail-row.last span:last-child { font-size: 18px; font-weight: 400; color: #333; font-family: 'SeaBankCustomFont', sans-serif; }
#page-confirmation .detail-row.last span:last-child .currency-small-conf { font-size: 16px; margin-right: 5px; }
#page-confirmation h4 { font-size: 15px; font-weight: 400; color: #666; margin-bottom: 10px; }
#page-confirmation .conf-note { font-size: 15px; color: #999; font-style: italic; }
#page-confirmation .bottom-bar { padding: 22px; }
#page-confirmation .btn-orange { padding: 18px; font-size: 20px; border-radius: 8px; }

/* --- RESULT PAGE --- */
#page-result { background-color: #F7F8FA; min-height: 100vh; }
#page-result .res-header-title { background-color: #fff; font-size: 20px; font-weight: 600; padding: 22px 22px 10px 22px; }
.res-status-area { background-color: #F7F8FA; text-align: center; padding: 30px 0 25px 0; }
.res-check-icon { display: block; margin: 0 auto 15px auto; width: 54px; height: 54px; }
.res-status-text { font-size: 18px; color: #666; margin-bottom: 7px; }
.res-amount-big { font-size: 36px; font-weight: 700; color: #000; margin-top: 5px; font-family: 'NominalSeaFont', sans-serif; }
.res-amount-big .currency-small { font-size: 20px; font-weight: 700; margin-right: 5px; font-family: 'SeaBankCustomFont', sans-serif; }
.res-name { font-size: 17px; font-weight: 400; color: #000; display: inline; margin-bottom: 2px; }
.res-card-white { background-color: #fff; margin: 0 5px 20px 5px; border-radius: 8px; padding: 0; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.res-flow-row { display: flex; justify-content: space-between; align-items: flex-start; padding: 20px 20px; border-bottom: 1px solid #f0f0f0; margin: 0; }
.res-label-grey { font-size: 17px; color: #777; width: 60px; padding-top: 5px; }
.sender-wrapper { display: block; text-align: right; }
.sender-img-small { width: 20px !important; height: 20px !important; border-radius: 50%; margin-right: 6px; object-fit: cover; display: inline-block; vertical-align: middle; }
.sender-text { text-align: right; display: inline-block; } 
.receiver-wrapper { display: block; text-align: right; }
.res-avatar-orange { width: 20px !important; height: 20px !important; border-radius: 50%; background-color: #f36f21; color: white; display: inline-flex; justify-content: center; align-items: center; font-size: 10px; margin-right: 6px; vertical-align: middle; }
.res-bank-info { font-size: 15px; color: #777; display: flex; align-items: center; justify-content: flex-end; }
.res-bank-logo { height: 14px !important; width: auto; margin-right: 6px; }
.res-item { display: flex; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #f0f0f0; margin: 0; font-size: 17px; }
.res-item:last-child { border-bottom: none; margin: 0; } 
.res-item-label { color: #777; }
.res-item-value { color: #000; font-weight: 500; text-align: right; white-space: nowrap; display: flex; align-items: center; justify-content: flex-end; }
.text-green-bold { color: #4CAF50; font-weight: 600; margin-left: 6px; }
.text-strikethrough { text-decoration: line-through; color: #bbb; }
.res-item-catatan { display: flex; justify-content: space-between; padding: 16px 20px; border-bottom: none; font-size: 17px; align-items: flex-start; }
.res-catatan-value { color: #333; font-style: italic; text-align: right; max-width: 70%; }
.res-bottom-container { position: fixed; bottom: 0; left: 0; width: 100%; background-color: #fff; padding: 18px 22px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 -4px 10px rgba(0,0,0,0.05); z-index: 200; }
@media (min-width: 450px) { .res-bottom-container { left: 50%; transform: translatex(-50%); width: 450px; } }
.btn-share { width: 100%; background-color: #fff; border: 1px solid #FF5500; color: #FF5500; padding: 16px; border-radius: 8px; font-size: 18px; font-weight: 600; cursor: pointer; }
.btn-done { width: 100%; background-color: #FF5500; border: 1px solid #FF5500; color: #fff; padding: 16px; border-radius: 8px; font-size: 18px; font-weight: 600; cursor: pointer; }
/* --- TAMBAHAN MODE GAGAL (SEABANK) --- */

/* Warna Merah untuk Teks Gagal */
.text-red { 
    color: #FF3B30 !important; 
}

/* Gaya Icon Silang Merah */
.res-icon-failed { 
    color: #FF3B30; 
    font-size: 54px; 
    margin-bottom: 15px; 
    display: block; 
    margin: 0 auto 15px auto;
}

/* Helper Class untuk menyembunyikan elemen */
.hidden { 
    display: none !important; 
}
/* --- GAYA PESAN ERROR (GAGAL) --- */
#resFailReason {
    /* 1. Atur Ukuran Font di sini */
    font-size: 13px !important; 
    
    /* 2. Membuat Teks Miring (Italic) */
    font-style: italic !important; 
    
    /* 3. Pengaturan Warna & Tata Letak */
    color: #FF3B30 !important;      /* Warna Merah */
    margin-top: 10px !important;    /* Jarak dari atas */
    line-height: 1.5 !important;    /* Jarak antar baris */
    padding: 0 15px !important;     /* Jarak kiri-kanan biar rapi */
    font-weight: 400 !important;    /* Ketebalan huruf (400=Normal, 600=Tebal) */
}
/* === MODERN POPUP STYLES === */
.modern-popup-overlay {
    display: none; /* Sembunyi default */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Gelap transparan */
    backdrop-filter: blur(5px); /* Efek blur kaca */
    -webkit-backdrop-filter: blur(5px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeInBg 0.3s ease;
}

.modern-popup-card {
    background: #fff;
    width: 100%;
    max-width: 340px;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    transform: scale(0.9);
    animation: popInCard 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.modern-popup-card h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    text-align: center;
}

.modern-popup-card p {
    margin: 0 0 20px 0;
    font-size: 14px;
    color: #666;
    text-align: center;
}

.popup-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    margin-bottom: 5px;
    margin-top: 10px;
}

.modern-input-wrapper {
    background-color: #F5F5F5;
    border-radius: 10px;
    padding: 2px 12px;
    border: 1px solid #E0E0E0;
    margin-bottom: 5px;
}

.modern-popup-input {
    width: 100%;
    border: none;
    background: transparent;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    outline: none;
}

.popup-btn-row {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.popup-btn-cancel, .popup-btn-save {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.popup-btn-cancel {
    background-color: #F0F0F0;
    color: #555;
}

.popup-btn-save {
    background-color: #FF5500;
    color: white;
}

@keyframes fadeInBg { from { opacity: 0; } to { opacity: 1; } }
@keyframes popInCard { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
/* === MODERN POPUP STYLES === */
.modern-popup-overlay {
    display: none; /* Sembunyi default */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeInBg 0.3s ease;
}

.modern-popup-card {
    background: #fff;
    width: 100%;
    max-width: 320px;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    transform: scale(0.9);
    animation: popInCard 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.modern-popup-card h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    text-align: center;
}

.modern-popup-card p {
    margin: 0 0 20px 0;
    font-size: 13px;
    color: #666;
    text-align: center;
}

.popup-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    margin-bottom: 5px;
    margin-top: 12px;
}

.modern-input-wrapper {
    background-color: #F5F5F5;
    border-radius: 10px;
    padding: 0 12px;
    border: 1px solid #E0E0E0;
}

.modern-popup-input {
    width: 100%;
    border: none;
    background: transparent;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    outline: none;
}

.popup-btn-row {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.popup-btn-cancel, .popup-btn-save {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.popup-btn-cancel { background-color: #F0F0F0; color: #555; }
.popup-btn-save { background-color: #FF5500; color: white; }

@keyframes fadeInBg { from { opacity: 0; } to { opacity: 1; } }
@keyframes popInCard { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
/* --- TAMBAHAN ANIMASI TRANSISI & LOGO --- */

/* 1. Keyframes untuk Logo Popup (Kecil ke Besar) */
@keyframes popInEffect {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.2); opacity: 1; }
    80% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

.pop-in-animation {
    animation: popInEffect 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
}

/* 2. Helper Class untuk Transisi Halaman yang Mulus */
/* Ini penting agar saat 2 halaman muncul bersamaan, 
   halaman lama tidak mendorong halaman baru ke bawah, tapi menimpa/sejajar */
.page-transitioning {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}
