/* ==========================================================================
   account.css — profile / add bank / history / change password / setting /
   news popup / cashback modals (JS: assets/scripts/modals/profile.js)
   ========================================================================== */

/* === profile: user card === */
.profile-card { position: relative; margin-top: 44px; padding: 0 20px 14px; border: 1px solid #fff; border-radius: 14px; background: #1a1b1a; }
.profile-avatar { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); padding: 1px; border-radius: 9999px; background: #fff; }
.profile-avatar .ring { position: relative; box-sizing: border-box; width: 84px; height: 84px; border-radius: 9999px; background: #1a1b1a; padding: 7px; display: flex; align-items: center; justify-content: center; }
.profile-avatar .ring::before { content: ""; position: absolute; left: -18px; right: -18px; top: 41px; bottom: -2px; background: #1a1b1a; z-index: 0; border-radius: 0 0 40px 40px; }
.profile-avatar .ring img { position: relative; z-index: 1; width: 70px; height: 70px; border-radius: 50%; object-fit: cover; }
.profile-rows { margin-top: 56px; }
.profile-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 16px; color: #fff; }
.profile-row .val { color: var(--theme-font-color-1, #9a6d6d); font-weight: 500; }
.profile-progress { height: 10px; margin-top: 10px; }
.profile-turn { text-align: center; color: var(--theme-font-color-1, #9a6d6d); font-size: 12px; margin-top: 10px; }

/* === profile: bank box === */
.profile-bank-box { margin-top: 14px; padding: 12px 12px 4px; border: 1px solid #fff; border-radius: 14px; background: rgba(0,0,0,.4); }
.profile-bank-list { margin-top: 10px; padding-bottom: 4px; }
.profile-bank-swiper { width: 100%; overflow: hidden; padding-bottom: 22px; }
.profile-bank-swiper .swiper-slide { height: auto; }
.profile-bank-dots { bottom: 0 !important; display: flex; justify-content: center; align-items: center; gap: 6px; }
.profile-bank-dots .swiper-pagination-bullet { width: 10px; height: 10px; background: #fff; opacity: 1; margin: 0 !important; transition: .2s; }
.profile-bank-dots .swiper-pagination-bullet-active { background: var(--accent-1, #e9b033); }
.profile-bank-list .bank-card { background: #fff url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASgAAABsCAAAAAD80nALAAAAIG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QNlNTa7t+HC2efLkYVR8JY4qaqswntQnW4xtIVwVPFJ3r0aWTaSFa7WfgL9fDaDXqB9h83or4nay1Ujz3LKFSbr73fAwO5oBefTvTwMFoZFVOCasF4whoxjetfLIToi1BLdTKNVFdSfQDVI9sdglMUxbOjFceR8Dn6Y0LPOoSmlepic6Bk8YnPy/ePImNheOIVRU2v9EjqiiLxgpC/9HiY1umVH66hA9NqLtSDCqPW0IHJfCjehGhUK4jVEihMKuOxWgYlt6dYsQpMxmopFOqw4ougMSsNUKix8o6GrLRA4U4rM1a6oHBb0OM7XnuhcFvQ8ynqrl0rFLaVd8QLlm6oGmuPGyyUiQUB9U9ezULFAk8WEBR6sDwfuA0BoYQVLpZ3gIsWLJTU2rmghQBVY21xsbhWoHfII0E9ooWKJbk0pQsTqsbC1+JzXngtzBc2lNTCbsQmX0vAjEA9tAxgNWKCLDx9gmYOSmrhN+JL+QfBRgNeYSjvknRK/CgMAkqpYagay7yWQq0Ayg6ttUA1XGamvH1QK9ZaIZTUWlsrrhWq4VpPuNYNJbWwP1XbCtVwbc32ojVQprksg2q4DDSjlVAmuMje9Pku9tpieAUkMn2imrhqLziwmDDTp6gbDCZfV3J3JFKvXnobMrmTe+WbPitQMC0RC27iW2UrJzM1LDaPLLk1X79bBi6nasBsuxNoe08F7ij/H+Y/HzX9gqPcIbgAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjMtMDgtMTZUMDk6MjI6NTQrMDA6MDCP0T3zAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIzLTA4LTE2VDA5OjIyOjU0KzAwOjAw/oyFTwAAACh0RVh0ZGF0ZTp0aW1lc3RhbXAAMjAyMy0wOC0xNlQwOToyMzowOSswMDowMG9soAoAAAAASUVORK5CYII=) no-repeat center center / cover; padding: 16px 16px 18px; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; }
.profile-bank-list .bank-card .bank-head { display: flex; align-items: center; gap: 14px; }
.profile-bank-list .bank-card .bank-logo { width: 54px; height: 54px; border-radius: 12px; object-fit: cover; }
.profile-bank-list .bank-card .bank-name { font-size: 18px; font-weight: 800; line-height: 1.2; }
.profile-bank-list .bank-card .bank-owner { font-size: 14px; font-weight: 600; margin-top: 8px; }
.profile-bank-list .bank-card .bank-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; gap: 8px; }
.profile-bank-list .bank-card .bank-number { font-size: 24px; font-weight: 800; letter-spacing: .5px; }
.profile-bank-list .bank-card .copy-btn { top: 14px; right: 14px; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; }
.profile-bank-list .bank-card .copy-btn svg { width: 24px; height: 24px; }
.profile-bank-list .bank-card .tag { position: static; font-size: 16px; padding: 8px 18px; border-radius: 8px; white-space: nowrap; }
.profile-bank-list .bank-card .tag.btn-set-user-bank-defalt { background: #fff; border: 2px solid var(--primary-color-2, #e6a91c); color: #000; cursor: pointer; }
.profile-bank-list .bank-card .tag.btn-set-user-bank-defalt:hover { background: #fff5d6; }
.profile-bank-empty { text-align: center; color: #c2c2c2; padding: 20px 0 14px; font-size: 14px; }
.n-button.btn-add-bank { --n-height: 44px; margin-top: 12px; background: transparent; border: 1px solid var(--primary-color-1, #ffb711); border-radius: 8px; color: var(--theme-font-color-1, #9a6d6d); font-size: 16px; font-weight: 500; }
.n-button.btn-add-bank .plus, .n-button .plus { font-size: 20px; font-weight: 400; margin-right: 4px; line-height: 1; }

/* === add bank modal === */
#add-bank .user-bank-grid { grid-template-columns: repeat(6, 1fr); gap: 12px; padding: 20px; max-height: 320px; box-shadow: 0 -2px 2px rgba(0,0,0,.25) inset, 0 2px 2px rgba(0,0,0,.25) inset; }
#add-bank .user-bank-grid .bank-item { border: 0; filter: brightness(.5); opacity: 1; border-radius: 12px; }
#add-bank .user-bank-grid .bank-item.active { filter: brightness(1); transform: scale(1.08); box-shadow: 0 0 0 2px var(--primary-color-1, #ffb711); }
#add-bank .user-bank-grid.has-active .bank-item:not(.active) { filter: brightness(.4); }
#add-bank .user-bank-form .n-form-item { margin-bottom: 10px; }
@media (max-width: 480px) { #add-bank .user-bank-grid { grid-template-columns: repeat(6, 1fr); gap: 10px; padding: 14px; } }

/* === history modal === */
.history-tabs { justify-content: space-around; gap: 8px; }
.history-tabs .theme1-tab { font-size: 18px; padding: 6px 4px 8px; }
.history-body { min-height: 60vh; max-height: 70vh; padding: 4px 6px 8px 2px; }
.history-item { position: relative; border: 2px solid #fff; border-radius: 10px; padding: 10px 12px; margin: 0 0 10px; background: rgba(0,0,0,.4); display: flex; align-items: center; gap: 12px; font-size: 12px; }
.history-item .hi-img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: rgba(255,255,255,.08); }
.history-item .hi-body { flex: 1; min-width: 0; }
.history-item .hi-title { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-item .hi-sub { font-size: 12px; color: #d5d5d5; margin-top: 2px; }
.history-item .hi-note { font-size: 12px; color: #ffb711; margin-top: 2px; }
.history-item .hi-right { text-align: right; flex-shrink: 0; }
.history-item .amt { font-size: 18px; font-weight: 800; font-family: "Noto Sans Thai", sans-serif; }
.history-item .amt-sub { font-size: 12px; font-weight: 600; }
.history-item .st { font-size: 13px; font-weight: 700; }
.history-item .st-0 { color: #ffb711; } .history-item .st-1 { color: #22c55e; } .history-item .st-2 { color: #ff4d4d; }
.history-empty { min-height: 58vh; border: 1px solid #fff; border-radius: 10px; background: rgba(0,0,0,.4); }
.history-empty img { width: 64px; height: 64px; }
.history-empty p { font-size: 14px; margin-top: 8px; }
.history-loading { text-align: center; padding: 30px 0; color: #c2c2c2; }
.load-more .n-button { --n-height: 38px; }

/* === change password === */
.change-password-form .n-form-item { margin-bottom: 14px; }
.change-password-form .n-input { --n-height: 48px; }

/* === setting === */
.setting-body { padding-bottom: 0; }
.setting-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; color: #fff; font-size: 16px; }
.setting-row .lb { display: flex; align-items: center; gap: 10px; }
.setting-row .lb .xicon { font-size: 28px; display: inline-flex; }
.setting-row .lb .xicon svg { width: 1em; height: 1em; }
.theme1-switch.sm { width: 44px; height: 22px; background: #1f2b22; border-color: #2f4536; }
.theme1-switch.sm::after { top: 2px; left: 2px; width: 16px; height: 16px; }
.theme1-switch.sm.on { background: linear-gradient(180deg, #c99a1a, #8c6a0a); }
.theme1-switch.sm.on::after { left: 24px; }
.setting-row .lb { white-space: nowrap; }
.setting-theme-select { width: 120px; --n-height: 36px; }
.setting-theme-select select { color: #fff; background: #000; appearance: auto; }

/* === news popup === */
.news-image { width: 100%; border-radius: 6px; display: block; }
.news-detail { font-size: 14px; line-height: 1.7; }
.news-detail img { max-width: 100%; height: auto; }
.n-button.news-btn-close { min-width: 96px; --n-height: 38px; border-radius: 8px; }
.n-button.news-btn-never { min-width: 144px; --n-height: 38px; border-radius: 8px; }

/* === cashback === */
.cashback-tabs { gap: 36px; }
.cashback-tabs .theme1-tab { font-size: 18px; padding: 6px 4px 8px; }
.cashback-body { max-height: 70vh; padding: 4px 6px 4px 2px; }
.cashback-list .cashback-card { padding: 12px 12px 12px 8px; border-radius: 8px; border: 1px solid #fff; margin-bottom: 12px; min-height: 66px; }
.cashback-list .cashback-card .ic { width: 52px; height: 52px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.cashback-list .cashback-card .ic img { width: 52px; height: 52px; object-fit: contain; }
.cashback-list .cashback-card .ic.photo img { border-radius: 10px; object-fit: cover; }
.cashback-list .cashback-card .info .name { font-size: 16px; font-weight: 500; gap: 8px; }
.cashback-list .cashback-card .info .name .btn-cashback-info { display: inline-flex; width: 18px; height: 18px; border-radius: 50%; background: #fff; color: #000; font-size: 12px; font-weight: 800; align-items: center; justify-content: center; cursor: pointer; font-family: serif; }
.cashback-list .cashback-card .info .val { font-size: 18px; font-weight: 700; color: var(--primary-color-1, #ffb711); font-family: "Noto Sans Thai", sans-serif; }
.cashback-list .cashback-card .n-button { --n-height: 40px; width: 100px; padding: 0; border-radius: 8px; font-size: 16px; }
.cashback-list .cashback-card .n-button[disabled] { opacity: .6; }
.cashback-empty { text-align: center; color: #c2c2c2; padding: 40px 0; }
/* setting rows: label takes remaining width, switch stays on the right */
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.setting-row .lb { flex: 1 1 auto; min-width: 0; }
.setting-row .lb small { display: block; font-size: 12px; line-height: 1.3; margin-left: 42px; }
.setting-row .theme1-switch { flex: 0 0 auto; }
.setting-row .lb { white-space: normal; flex-wrap: wrap; }
.setting-row .lb br { display: none; }
.setting-row .lb small { flex-basis: 100%; }
