html, body {
    touch-action: manipulation; 
    -ms-touch-action: manipulation;
}
* {
    margin: 0;
}
body {
    font-family: sans-serif;
}
#username::placeholder,
#password::placeholder,
#reg-phone::placeholder,
#reg-username::placeholder,
#reg-password::placeholder,
#reg-password-confirm::placeholder {
    color: #b7bcc4;
    opacity: 1;
}
:focus-visible {
    outline: none;
  }
.container {
    max-width: 500px;
    margin: 0 auto;
    height: 100vh;
}
.text-center {
    text-align: center;
}
.item-center {
    align-items: center;
}
.justify-center {
    justify-content: center;
}
.pointer {
    cursor: pointer;
}
.text-white {
    color: white;
}
.bg-white {
    background-color: #fff;
}
.flex {
    display: flex;
}
.ml-2 {
    margin-left: 45px;
}
.between {
    justify-content: space-between;
}
.app-main {
 background-image: linear-gradient(rgb(0 0 0 / 40%), rgb(0 0 0 / 40%)), url(../../image/background.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    min-height: 100vh; /* Đảm bảo background luôn phủ ít nhất chiều cao màn hình */
    height: auto; /* Cho phép mở rộng theo chiều cao nội dung */
    width: 100%; /* Đảm bảo chiếm đủ chiều rộng */
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Bảo toàn kích thước chính xác */
}
.logo {
    text-align: center;
    padding-top: 80px;
}
.logo p {
    font-size: 18px;
    padding-top: 20px;
}
.form {
    width: 80%;
    margin: 0 auto;
}
.form form {
    margin-top: 80px;
}
.info-form {
    border-bottom: solid 1px #6c7076;
    padding-bottom: 17px;
    padding-left: 25px;
}
.info-form i {
    color: #6c7076;
}
.info-form input{
    width: 85%;
    background: unset;
    border: none;
    outline: none;
    color: #fff;
    font-size: 16px;
    margin-left: 10px;
}
.mt-2 {
    margin-top: 40px;
}
.forgot {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}
.forgot p a {
    color: #eeea39;
    text-decoration: none;
}
.forgot p a:hover {
    text-decoration: underline;
}
.mt-1 {
    margin-top: 20px;
}
.btn-login {
    background-color: #950200;
    color: #fff;
    border: none;
    width: 100%;
    padding: 15px;
    border-radius: 50px;
    font-size: 17px;
    cursor: pointer;
}
.btn-login:hover {
    background-color: #861715;
}
.btn-image {
    border-radius: 5px;
    padding: 10px 20px;
    align-items: center;
}
.register a {
    color:#eeea39;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
}
.register a:hover {
    text-decoration: underline;
}


/* HEADER HOME */
.header-home {
    background: #9a0001;
    display: flex;
    justify-content: space-between;
    padding: 15px 25px;
}
.menu i {
    font-size: 25px;
}
.qr i {
    font-size: 25px; 
}
.qr i:last-child {
    margin-left: 20px;
}
.info-user {
    position: relative;
    background-image: 
    linear-gradient(rgba(255, 255, 255, 51%), rgba(255, 255, 255, 51%)), 
    url('../../image/trongdong.png'); 
  background-position: center;
  margin: 20px 15px 0 15px;
  padding: 12px;
  border-radius: 8px;
}
.name-user {
    margin-left: 20px;
    margin-top: 12px;
}
.name-user h3 {
    color: #9a0001;
}
.img-user {
    margin-top: 10px;
}
.img-user i {
    font-size: 40px;
    border: solid 2px #9a0001;
    border-radius: 50%;
    padding: 10px 12px;
}
.feature, .service, .list-bank {
    margin: 20px 15px 0;
    border-radius: 8px;
    padding: 10px 15px;
}
.title-feature i {
    color: #9a0001;
}
.sub-feature {
    display:  grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 10px;
}
.list-feature {
    cursor: pointer;
     padding: 5px;
}
.list-feature:hover {
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    border-radius: 10px;
    padding: 5px;
}
.list-feature i {
    background: linear-gradient(to bottom right, #cd1300, #a30a0e);
    padding: 10px 15px;
    width: 18px;
    border-radius: 10px;
    color: #fff;
}
.list-feature p {
    margin-top: 10px;
    font-size: 15px;
}
.list-service {
    display:  grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}
.sub-service {
    margin-top: 10px;
    cursor: pointer;
}
.sub-service p {
    margin-top: 7px;
    font-size: 15px;
}
.sub-service i {
    color: #790205;
    background-color: #fff;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    padding: 10px 14px;
    border-radius: 10px;
}
.img-bank,
.border-bank {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}
.img-bank img,
.border-bank img{
    width: 85px;
    padding: 10px;
    cursor: pointer;
}
.border-bank .tech {
    width: 130px;
}
.input-info p {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 6px;
    text-align: start;
}
.input-info input {
    width: 94%;
    border: solid 1px #dee2e6;
    padding: 10px;
    border-radius: 0.375rem;
}
.input-info input:focus {
    border-color: #86b7fe;
}
#change-password-form .input-info {
    margin-top: 22px;
}
#change-password-form .password-field {
    position: relative;
}
#change-password-form .password-field input {
    width: 100%;
    box-sizing: border-box;
    padding-right: 42px;
}
#change-password-form .password-eye {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    font-size: 16px;
}
#change-password-form .btn-submit {
    display: block;
    width: 100%;
    margin-top: 28px;
}
.field-hint {
    display: none;
    margin-top: 6px;
    color: #c41212;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    text-align: start;
}
.input-info.is-focused .field-hint:not(.date-error),
.date-error.is-visible {
    display: block;
}
.btn-info {
    margin-top: 14px;
    width: 100%;
    background-color: #9a0001;
    border: none;
    color: #fff;
    padding: 10px;
    border-radius: 7px;
    font-size: 15px;
    cursor: pointer;
}
.btn-info:hover {
    background-color: #6b1111;
}
.btn-info:disabled,
.btn-info:disabled:hover {
    background-color: #c4c4c4;
    cursor: not-allowed;
}






/* Overlay lớp phủ */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Màu nền đen trong suốt */
    z-index: 999; /* Đảm bảo nằm trên các phần tử khác */
    display: none; /* Mặc định ẩn */
}

/* Popup container */
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff; /* Nền trắng */
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.25); /* Đổ bóng */
    z-index: 1000; /* Nằm trên overlay */
    text-align: center;
    width: 90%; /* Đáp ứng trên màn hình nhỏ */
    max-width: 300px; /* Giới hạn kích thước trên màn hình lớn */
}

/* Header của popup */
.popup h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
}

/* Input trong popup */
.popup input[type="number"] {
    width: 92%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.popup input:focus {
    border-color: #86b7fe;
}
/* Nút trong popup */
.popup button {
    background: #9a0001; /* Màu xanh dương */
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

.popup button:hover {
    background: #6b1111; /* Màu xanh đậm hơn khi hover */
}



/* Phong cách cơ bản cho thông báo */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #52c41a; /* Màu xanh lá */
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    font-size: 16px;
    transition: all 0.3s ease-in-out;
    opacity: 0;
    transform: translateY(-20px);
}

/* Biến thể thông báo */
.notification.success {
    background-color: #52c41a; /* Màu xanh lá */
}

.notification.error {
    background-color: #ff4d4f; /* Màu đỏ */
}

/* Icon trong thông báo */
.notification i {
    margin-right: 10px;
    font-size: 20px;
}

/* Hiệu ứng hiển thị */
.notification.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}
.link-resgiter {
    text-decoration: none;
    color: #000;
}
.title-logo {
    color: #fff;
    font-size: 14px;
    margin-top: 7px;
}
.mb-1 {
    margin-bottom: 10px;
}




.bank-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
}
.bank-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    width: 300px;
    z-index: 10000;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.25);
}

.btn-main {
    background: #9a0001;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    margin-top: 14px;
}
.main-menu-bank {
    gap: 100px;
    margin: 0 15px;
}
.main-menu-bank button a {
    text-decoration: none;
    color: #fff; 
}
.bg-mau {
    background: #3d3d3d;
    padding-bottom: 1px;
}


.sub-service p:hover {
    color: #9a0001;
}
.sub-service {
    padding: 5px;
}
.sub-service:hover {
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    border-radius: 10px;
    padding: 5px;
}
.btn-logout {
    border: solid 2px #9a0001;
    width: 90%;
    padding: 15px;
    font-size: 18px;
    border-radius: 50px;
    background: #fff;
    cursor: pointer;
}
.btn-logout:hover {
    background-color: #a30a0e;
}
.btn-logout:hover a {
    color: #fff;
}
.btn-logout a {
    color: #9a0001;
    text-decoration: none;
}
.uppercase {
    text-transform: uppercase;
    margin-top: 5px;
}
.list-feature p a {
    text-decoration: none;
    color: #000;
}
.company {
    text-decoration: none;
    color: #000;
}
.btn-main a {
    text-decoration: none;
    color: #fff;
}
.sub-sp {
    padding: 10px;
    /*border-radius: 10px;*/
    /*box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;*/
}
.sp-img {
    text-align: center;
}
.sp-img img {
    width: 100px;
    height: 100px;
}
.sp-info {
    margin-left: 20px;
    padding-top: 15px;

}
.sp-info h3 {
    font-size: 16px;
}
.sp-info span {
    font-weight: 500;
}
.sp a {
    text-decoration: none;
    color: #000;
}

.app-loading h2 {
    margin-bottom: 80px;
}
.app-loading h3 {
    margin-top: 30px;
}
.app-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100vh; /* Chiều cao toàn màn hình */
    text-align: center;
    color: white;
    background-color: #f8341e;
    padding: 0 15px;
}

.progress-container {
    width: 80%;
    max-width: 600px; /* Đặt chiều rộng tối đa cho thanh tiến trình */
    margin-top: 50px;
    position: relative; /* Để có thể căn giữa phần trăm trong thanh */
}

progress {
    width: 100%; /* Chiều rộng thanh tiến trình */
    height: 30px; /* Chiều cao thanh tiến trình */
    position: relative; /* Để phần trăm có thể được căn giữa */
}

#loadingPercent {
    position: absolute;
    font-size: 18px;
    top: 120%;
    left: 50%;
    transform: translate(-50%, -50%); /* Căn giữa theo chiều ngang và dọc */
    color: #fff;
    font-weight: bold;
}

progress::-webkit-progress-value {
    background-color: #f2ee3d; /* Đổi màu thanh đã hoàn thành */
}




.upload-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.upload-wrapper input[type="file"] {
    display: none;
}

.upload-wrapper button {
    background-color: #007bff;
    color: #fff;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 10px;
    margin-top: 5px;
}

.upload-wrapper button:hover {
    background-color: #0056b3;
}

.preview-image {
    max-width: 100%;
    max-height: 150px;
    border: 1px solid #ddd;
    margin-top: 10px;
    display: none;
}
.name-user p {
    font-weight: bold;
}
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.sp-img h3 {
    font-size: 15px;
    margin: 10px 0;
}
.company-warning {
font-size: 10px;
    position: absolute;
    right: 0;
    top: 0;
    font-weight: bold;
    padding: 3px;
    width: 20%;
    color: #fff;
    text-align: center;
}
/* Container chính */
#alert-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
}

/* Overlay */
#alert-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1049;
}

/* Popup */
#alert-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 300px;
    z-index: 1050;
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 16px;
}

/* Nội dung popup */
.alert-popup-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.company-notice {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.45;
}

/* Nút trong popup */
.alert-popup-button {
    margin-top: 15px;
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background-color: #950200;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.alert-popup-button:hover {
    background-color: #950200;
}





.info-form {
    position: relative;
    display: flex;
    align-items: center;
}

.info-form input {
    flex: 1;
    padding-right: 30px; /* Dành không gian cho icon */
}

.info-form .toggle-password {
    position: absolute;
    right: 10px;
    cursor: pointer;
    color: #6c757d;
    transition: color 0.2s;
}

.info-form .toggle-password:hover {
    color: #495057;
}
.selected-bank-image {
    display: block;
    max-width: 150px;
    margin: 0 auto;
    border-radius: 5px;
}

.input-info a {
    text-decoration: none;
}
.btn-return{
    padding-bottom: 25px;
}


/* Định dạng popup */
.custom-popup {
    display: none; /* Ẩn popup mặc định */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Nền mờ */
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

/* Nội dung của popup */
.custom-popup-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 300px;
    z-index: 1050;
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 16px;
}

/* Nút đóng */
.custom-close-btn {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
}

/* Nút đóng khi di chuột */
.custom-close-btn:hover,
.custom-close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Nút liền với popup */
.custom-popup-btn {
    background-color: #008CBA;
    color: white;
    padding: 10px 15px;
    text-align: center;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.custom-popup-btn:hover {
    background-color: #005f73;
}
#popup-name {
    font-weight: bold;
}
.details-sp p {
    height: 15px;
    line-height: 15px;
    display: flex;
    text-align: center;
    justify-content: center;
    margin-top: 10px;
}
.very {
    border: solid 1px #dee2e6;
    padding: 8px;
    border-radius: 5px;
}

.font-bold{
    font-weight: bold;
}
#verification-code {
      border: none;
    width: 23%;
    font-weight: bold;
    font-size: 15px;
    color: #000;
    background-color: #fff;
}
.border-bank {
border: solid 3px #9a0001;
    border-radius: 8px;
}
.dadangky {
    background-color: #db0d0f;
}

.custom-confirm {
    display: none; /* Mặc định ẩn */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Nền mờ */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Khung thông báo */
.confirm-box {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 300px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Nội dung thông báo */
.confirm-message {
    font-size: 16px;
    margin-bottom: 20px;
}

/* Nút "OK" */
.confirm-ok-btn {
    background-color: #9a0001;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
}

.confirm-ok-btn:hover {
    background-color: #9a0001;
}












/* Mặc định, sidebar sẽ bị ẩn */
.sidebar {
    position: fixed;
    top: 0;
    left: -80%; /* Đặt sidebar ra ngoài màn hình */
    width: 80%;
    height: 100%;
    background-color: #fff;
    color: #fff;
    transition: left 0.3s ease-in-out;
    z-index: 999; /* Đảm bảo sidebar trên cùng */
}

.sidebar .sidebar-content {
    padding-left: 20px;
}

/* Styles cho nút mở sidebar */
.menu i {
    font-size: 30px;
    cursor: pointer;
}

/* Khi sidebar được mở, vị trí của nó sẽ thay đổi */
.sidebar.open {
    left: 0;
}

/* Nút đóng sidebar */
.sidebar-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 30px;
    cursor: pointer;
}
.sidebar-close i {
    color: #fff;
}
/* Styles cho backdrop khi nhấn ra ngoài */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none; /* Ẩn mặc định */
    z-index: 998; /* Đảm bảo background phủ trên toàn màn hình */
}

.sidebar-service i {
    background: linear-gradient(to bottom right, #cd1300, #a30a0e);
    padding: 10px 15px;
    width: 18px;
    border-radius: 10px;
    color: #fff;
}
.sidebar-service p {
    color: #000;
        margin: 10px 0px 10px 15px;
        padding-right: 10px;
}
.sidebar-service {
    display: flex;
    padding: 10px 0;
}

.header-sidebar h3 {
    color: #fff;
}
.header-sidebar {
        background: #cd1300;
    margin: -4px 0 25px 0;
    text-align: center;
    justify-content: center;
}
.header-sidebar span {
 font-size: 21px;
    margin-top: 3px;
    margin-right: 3px;
}

.logo-sidebar {
    /*    background: #9a0001;*/
    /*text-align: center;*/
    /*padding: 30px;*/
}
.scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
.app-loading a {
    text-decoration: none;
}
.sidebar-service p {
    font-weight: bold;
}
.vl #verify-btn {
    margin-top: 0!important;
}
/*.form-info-two input {*/
/*    width: 94%;*/
/*    border: none;*/
/*    padding: 10px;*/
/*    border-radius: 0.375rem;*/
/*}*/

.bg-trong {
    background-image: linear-gradient(rgba(255, 255, 255, 51%), rgba(255, 255, 255, 51%)), url(../../image/trong.png);
    background-position: center;
}
/*.bg-trong .info form .input-info input {*/
/*    font-weight: bold;*/
/*    background: unset !important;*/
/*    border: unset !important;*/
/*    font-size: 18px;*/
/*    margin-left: -9px;*/
/*}*/
.uppercase {
    text-transform: uppercase;
}
#updateForm input::placeholder {
    font-weight: bold!important; /* Làm cho font chữ đậm */
}









.custom-popup-cuoi {
    display: none; /* Mặc định popup ẩn */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Màu nền mờ */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.custom-popup-content-cuoi {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    width: 80%;
    max-width: 400px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.custom-close-btn-cuoi {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 24px;
}

.btn-main-cuoi {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.btn-main-cuoi:hover {
    background-color: #0056b3;
}
.loading-popup {
            display: none;
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 9998;
            font-size: 40px;
            color: #007bff;
        }
        .loading-popup i {
            animation: rotate 2s linear infinite;
        }
        @keyframes rotate {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        header {
    max-width: 500px; /* Giới hạn chiều rộng */
    margin: 0 auto; /* Canh giữa trang */
    height: auto;
    position: relative; /* Để định vị các phần tử bên trong */
}
        
        
        /* Định dạng nút */
.header-button {
    position: absolute; /* Định vị so với header */
    background-color: #9a000100; /* Màu nền xanh */
    color: white; /* Màu chữ trắng */
    border: none; /* Không viền */
    cursor: pointer; /* Con trỏ chỉ tay */
    font-size: 16px; /* Kích thước chữ */
}
.input-info input {
    font-weight: bold;
}

/* ── Màn hình đăng nhập / đăng ký ── */
body:has(.auth-screen) {
    background: #111;
}
.container.auth-wrap {
    max-width: 430px;
    height: auto;
    min-height: 100vh;
}
.app-main.auth-screen {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-image: url("../../image/background.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center 62%;
}
.auth-top {
    position: relative;
    text-align: center;
    padding: 28px 20px 0;
}
.auth-logo {
    width: 168px;
    height: auto;
    display: block;
    margin: 0 auto;
}
.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 22px 48px 0;
}
.auth-tab {
    background: none;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
    color: rgba(255, 255, 255, 0.72);
    font-size: 16px;
    padding: 8px 0 12px;
    cursor: pointer;
}
.auth-tab.is-active {
    color: #fff;
    border-bottom: 2px solid #fff;
}
.auth-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 34px 16px;
}
.auth-panel {
    display: none;
}
.auth-panel.is-active {
    display: block;
}
.auth-field {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.38);
    padding: 16px 0 12px;
    margin-top: 14px;
}
.auth-field > i {
    color: #c5c8ce;
    width: 18px;
    text-align: center;
    font-size: 16px;
    flex-shrink: 0;
}
.auth-field input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 16px;
}
.auth-eye {
    background: none;
    border: none;
    color: #c5c8ce;
    cursor: pointer;
    font-size: 16px;
    padding: 0 2px;
    flex-shrink: 0;
}
.auth-submit {
    margin-top: 36px;
    background-color: #c41212;
    font-weight: 600;
    letter-spacing: 0.2px;
}
.auth-submit:hover {
    background-color: #a80f0f;
}
.auth-admin-link {
    display: block;
    margin-top: 18px;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    text-decoration: underline;
}
.auth-footer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 8px 6px 26px;
}
.auth-footer button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    padding: 8px 0;
}
.auth-footer button i {
    font-size: 22px;
}

.app-main.identity-page {
    background: #f4f5f7;
    min-height: 100vh;
}
.identity-body {
    padding: 18px 16px 32px;
}
.identity-body h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}
.identity-guide {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    background: #fff6f6;
    border: 1px solid #f3c6c6;
    color: #c41212;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.45;
    margin-bottom: 16px;
}
.identity-guide i {
    margin-top: 2px;
}
.identity-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px 16px 16px;
    margin-bottom: 14px;
    text-align: center;
}
.identity-card p {
    text-align: left;
    font-size: 15px;
    margin-bottom: 18px;
}
.identity-card input[type="file"] {
    display: none;
}
.identity-pick {
    background: #c41212;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 11px 22px;
    font-size: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.identity-pick:hover {
    background: #a80f0f;
}
.identity-preview {
    display: none;
    max-width: 100%;
    max-height: 180px;
    margin: 16px auto 0;
    border-radius: 8px;
}
.identity-preview.is-visible {
    display: block;
}
.identity-clear {
    display: block;
    margin: 16px auto 0;
    background: none;
    border: none;
    color: #c41212;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
}
.identity-save {
    width: 100%;
    margin-top: 8px;
}
.identity-page.is-locked .identity-pick,
.identity-page.is-locked .identity-clear,
.identity-page.is-locked .identity-save {
    display: none;
}

.app-main.link-bank-page {
    background: #f5f6f8;
    min-height: 100vh;
}
.link-bank-title {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin: 4px 0 0;
}
.link-bank-body {
    padding: 14px 14px 28px;
}
.link-bank-linked {
    background: #fff;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.link-bank-linked h3 {
    font-size: 16px;
    margin-bottom: 4px;
}
#linkedEmpty {
    color: #e10600;
    font-size: 14px;
}
.link-bank-body h4 {
    margin: 18px 2px 12px;
    font-size: 16px;
}
.link-bank-search {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 0 12px;
    margin-bottom: 14px;
}
.link-bank-search input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 0;
    font-size: 15px;
    background: transparent;
}
.link-bank-search i {
    color: #9aa0a6;
}
.link-bank-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.link-bank-card {
    background: #fff;
    border-radius: 12px;
    min-height: 68px;
    padding: 6px 4px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.link-bank-card img {
    width: 72%;
    height: 26px;
    object-fit: contain;
}
.link-bank-card span {
    margin-top: 4px;
    font-size: 11px;
    text-align: center;
    color: #222;
}
.link-bank-card.is-hidden {
    display: none;
}
.link-bank-card {
    cursor: pointer;
}
.linked-bank-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-top: 1px solid #f0f0f0;
    font-size: 14px;
}
.linked-bank-name {
    display: flex;
    align-items: center;
    gap: 10px;
}
.linked-bank-name img {
    width: 42px;
    height: 24px;
    object-fit: contain;
}
.linked-bank-account {
    color: #000;
    font-size: 14px;
    font-weight: 600;
}
.linked-bank-status {
    color: #c41212;
    font-size: 13px;
}
.linked-bank-status-on {
    color: #128a3e;
    font-weight: 700;
}
.bank-form-note {
    color: #e10600;
    font-size: 14px;
    line-height: 1.45;
    margin-bottom: 16px;
}
.bank-form-body h3 {
    font-size: 16px;
    margin-bottom: 14px;
}
.bank-name-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.4;
}
.bank-name-row span {
    width: 88px;
    flex-shrink: 0;
    font-weight: 400;
    line-height: 1.4;
}
.bank-name-row strong {
    font-weight: 700;
    line-height: 1.4;
}
.bank-form-field {
    margin-bottom: 14px;
}
.bank-form-field label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
}
.bank-form-field label i {
    color: #e10600;
    font-style: normal;
}
.bank-form-field input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #e4e4e4;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
    outline: none;
}
.bank-continue {
    width: 100%;
    margin-top: 18px;
    background: #c41212;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}
.bank-continue:disabled,
.bank-continue:disabled:hover {
    background: #c4c4c4;
    cursor: not-allowed;
}
.bank-verify-popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1100;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.bank-verify-popup.is-open {
    display: flex;
}
.bank-verify-box {
    background: #fff;
    border-radius: 12px;
    padding: 22px 18px 16px;
    width: min(360px, 100%);
    text-align: center;
}
.bank-verify-box p {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 16px;
}
.bank-verify-box button {
    background: #c41212;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 28px;
    font-size: 15px;
    cursor: pointer;
}
body:has(.admin-login) {
    background: #e8edf3;
}
.admin-login {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.admin-login-side {
    background: #1b2838;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px;
}
.admin-login-side img {
    width: 92px;
    height: auto;
    margin-bottom: 20px;
}
.admin-login-side h1 {
    font-size: 32px;
    margin-bottom: 10px;
}
.admin-login-side p {
    max-width: 320px;
    color: #c5d0dc;
    font-size: 16px;
    line-height: 1.5;
}
.admin-login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
}
.admin-login-panel form {
    width: min(380px, 100%);
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px 22px;
    box-shadow: 0 10px 30px rgba(27, 40, 56, 0.08);
}
.admin-login-panel h2 {
    font-size: 22px;
    margin-bottom: 18px;
    color: #1b2838;
}
.admin-login-panel label {
    display: block;
    margin: 14px 0 6px;
    font-size: 14px;
    color: #334155;
}
.admin-login-panel input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d5dde6;
    border-radius: 8px;
    padding: 12px;
    font-size: 15px;
    color: #111;
    background: #f8fafc;
}
.admin-login-password {
    position: relative;
}
.admin-login-password input {
    padding-right: 42px;
}
.admin-login-password button {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
}
.admin-login-panel form > button {
    width: 100%;
    margin-top: 22px;
    background: #1b2838;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 15px;
    cursor: pointer;
}
.admin-login-panel a {
    display: block;
    margin-top: 16px;
    text-align: center;
    color: #1b2838;
    font-size: 14px;
}
@media (max-width: 760px) {
    .admin-login {
        grid-template-columns: 1fr;
    }
    .admin-login-side {
        padding: 28px 20px;
    }
    .admin-login-side h1 {
        font-size: 26px;
    }
}
body:has(.admin-shell) {
    background: #f4f5f7;
}
.admin-shell {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
}
.admin-nav {
    width: 240px;
    flex-shrink: 0;
    background: #1b2838;
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 22px 16px;
}
.admin-nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}
.admin-nav-brand img {
    width: 42px;
    height: auto;
}
.admin-nav-brand strong {
    font-size: 18px;
}
.admin-nav nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.admin-nav a,
.admin-nav button {
    position: relative;
    color: #d5dde6;
    text-decoration: none;
    background: none;
    border: none;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 15px;
    text-align: left;
    cursor: pointer;
}
.admin-nav a.is-active,
.admin-nav button.is-active {
    background: #2c3e50;
    color: #fff;
}
.admin-badge {
    position: absolute;
    top: 6px;
    right: 8px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #e10600;
    color: #fff;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
    font-weight: 700;
}
.admin-badge[hidden] {
    display: none;
}
.admin-config-form {
    max-width: 420px;
    background: #fff;
    border-radius: 12px;
    padding: 18px 16px 16px;
}
.admin-config-form label {
    display: block;
    margin: 14px 0 6px;
    font-size: 14px;
}
.admin-config-form input[type="text"],
.admin-config-form select {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d5dde6;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 15px;
    background: #fff;
}
.admin-config-form img {
    display: block;
    width: 180px;
    height: 180px;
    object-fit: contain;
    margin-top: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f8fafc;
}
.admin-config-form img[hidden] {
    display: none;
}
.admin-config-form button {
    margin-top: 16px;
    background: #1b2838;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    cursor: pointer;
    font-size: 15px;
}
.admin-config-form .admin-config-remove {
    margin-top: 10px;
    background: #fff;
    color: #c41212;
    border: 1px solid #c41212;
}
.admin-config-form .admin-config-remove[hidden] {
    display: none;
}
.admin-config-form p {
    min-height: 18px;
    margin-top: 10px;
    font-size: 14px;
}
.admin-config-form p.is-error {
    color: #c41212;
}
.admin-config-form p.is-ok {
    color: #128a3e;
}
.admin-notice-form {
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    border-radius: 12px;
    padding: 18px 16px 16px;
}
.admin-notice-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
}
.admin-notice-form textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 96px;
    border: 1px solid #d5dde6;
    border-radius: 8px;
    padding: 10px 12px;
    font: inherit;
    font-size: 15px;
    resize: vertical;
}
.admin-notice-form button {
    margin-top: 12px;
    background: #1b2838;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    cursor: pointer;
}
.admin-notice-form p {
    min-height: 18px;
    margin-top: 10px;
    font-size: 13px;
}
.admin-notice-form p.is-error {
    color: #c41212;
}
.admin-notice-form p.is-ok {
    color: #128a3e;
}
.admin-notice-hint {
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
    margin-bottom: 12px;
}
.admin-notice-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #e8f6ee;
    color: #128a3e;
    font-size: 12px;
    font-weight: 700;
    vertical-align: middle;
    white-space: nowrap;
}
.admin-notice-list {
    width: 100%;
    box-sizing: border-box;
    margin-top: 16px;
    padding: 0;
    list-style: none;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}
.admin-notice-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-top: 1px solid #eef2f6;
}
.admin-notice-item:first-child {
    border-top: none;
}
.admin-notice-item p {
    flex: 1;
    min-width: 0;
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.45;
}
.admin-notice-tick,
.admin-notice-delete {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}
.admin-notice-tick {
    color: #94a3b8;
}
.admin-notice-item.is-on .admin-notice-tick {
    color: #128a3e;
}
.admin-notice-delete {
    color: #c41212;
}
.admin-notice-list .admin-empty {
    padding: 16px;
}
.identity-code {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: #b10e16;
    overflow: auto;
}
.identity-code-back {
    position: absolute;
    top: 18px;
    left: 16px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #222;
    cursor: pointer;
}
.identity-code-body {
    max-width: 430px;
    margin: 0 auto;
    padding: 28px 22px 40px;
    text-align: center;
    color: #fff;
}
.identity-code-body > img {
    width: 132px;
    height: auto;
    margin: 18px auto 8px;
}
.identity-code-body h1 {
    margin-top: 8px;
    color: #ffd000;
    font-size: 22px;
    letter-spacing: 0.4px;
}
.identity-code-body > p {
    margin-top: 8px;
    font-size: 13px;
    letter-spacing: 0.3px;
}
.identity-code-card {
    position: relative;
    margin-top: 22px;
    background: #fff;
    color: #9aa0a6;
    border-radius: 22px;
    min-height: 280px;
    padding: 36px 22px 28px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.identity-code-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 28px;
    width: 72px;
    height: 8px;
    background: #ffd000;
    border-radius: 0 0 6px 6px;
}
.identity-code-card > i {
    color: #ffd000;
    font-size: 42px;
    margin-bottom: 16px;
}
.identity-code-card > p {
    max-width: 240px;
    margin: 0 auto 22px;
    line-height: 1.45;
    font-size: 15px;
}
.identity-code-card > button {
    background: #ffd000;
    color: #111;
    border: none;
    border-radius: 999px;
    padding: 10px 22px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}
.identity-code-card > img {
    width: min(240px, 100%);
    height: auto;
    object-fit: contain;
}
.identity-code-info {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    text-align: left;
    font-size: 14px;
}
.identity-code-info span {
    color: #64748b;
}
.identity-code-info strong {
    color: #111;
    font-weight: 700;
}
.identity-code-wait {
    color: #64748b;
}
.admin-nav-foot {
    margin-top: auto;
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.admin-nav-foot button,
.admin-table button {
    background: #c41212;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 14px;
}
.admin-nav-foot .admin-nav-password {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.45);
}
.admin-password-popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1100;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.admin-password-popup.is-open {
    display: flex;
}
.admin-password-box {
    width: min(380px, 100%);
    background: #fff;
    border-radius: 12px;
    padding: 22px 18px 16px;
}
.admin-password-box h2 {
    font-size: 18px;
    margin-bottom: 8px;
}
.admin-password-box label {
    display: block;
    margin: 12px 0 6px;
    font-size: 14px;
}
.admin-password-field {
    position: relative;
}
.admin-password-box input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d5dde6;
    border-radius: 8px;
    padding: 10px 40px 10px 12px;
    font-size: 15px;
}
.admin-password-field button {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
}
.admin-password-box p {
    min-height: 18px;
    margin-top: 10px;
    color: #c41212;
    font-size: 13px;
}
.admin-password-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
}
.admin-password-actions button {
    background: #1b2838;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    cursor: pointer;
}
.admin-password-actions .is-cancel {
    background: #e8edf3;
    color: #1b2838;
}
.admin-main {
    flex: 1;
    min-width: 0;
    padding: 28px 24px 40px;
}
.admin-main h1 {
    font-size: 22px;
    margin-bottom: 16px;
}
.admin-toolbar input {
    width: min(420px, 100%);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    margin-bottom: 14px;
    background: #fff;
}
.admin-table-wrap {
    background: #fff;
    border-radius: 12px;
    overflow-x: auto;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.admin-table th,
.admin-table td {
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid #eef1f4;
    white-space: nowrap;
}
.admin-table th {
    color: #475569;
    font-weight: 600;
    background: #f8fafc;
}
.admin-table .is-on,
.admin-detail-row strong.is-on {
    color: #128a3e;
    font-weight: 700;
}
.admin-table .is-off {
    color: #c41212;
}
.admin-empty {
    color: #666;
    text-align: center;
    padding: 24px 14px;
}
.admin-pager {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 12px;
    font-size: 14px;
    color: #334155;
}
.admin-pager button {
    background: #fff;
    color: #1b2838;
    border: 1px solid #d5dde6;
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
}
.admin-pager button:disabled {
    color: #94a3b8;
    cursor: default;
}
.admin-table .admin-option-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 124px;
    background: #fff;
    color: #1b2838;
    border: 1px solid #d5dde6;
}
.admin-table .admin-option-btn i {
    font-size: 11px;
    color: #64748b;
}
.admin-option-menu {
    display: none;
    position: fixed;
    z-index: 1200;
    min-width: 220px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    padding: 6px;
}
.admin-option-menu.is-open {
    display: flex;
    flex-direction: column;
}
.admin-option-menu button[hidden] {
    display: none;
}
.admin-option-menu button {
    background: none;
    border: none;
    text-align: left;
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #1b2838;
}
.admin-option-menu button:hover {
    background: #f4f5f7;
}
.admin-option-menu button.is-danger,
.admin-password-actions button.is-danger {
    color: #c41212;
}
.admin-password-actions button.is-danger {
    background: #c41212;
    color: #fff;
}
.admin-delete-text {
    margin-bottom: 8px;
    line-height: 1.45;
    color: #1b2838;
}
#deleteUserError {
    min-height: 18px;
    color: #c41212;
    font-size: 14px;
}
.admin-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1100;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.admin-modal.is-open {
    display: flex;
}
.admin-modal-box {
    width: min(560px, 100%);
    max-height: min(80vh, 720px);
    overflow: auto;
    background: #fff;
    border-radius: 12px;
    padding: 22px 18px 16px;
}
.admin-modal-box h2 {
    font-size: 18px;
    margin-bottom: 14px;
}
.admin-modal .admin-config-form {
    max-width: none;
    padding: 0;
    border-radius: 0;
}
.admin-modal .admin-config-form label:first-of-type {
    margin-top: 0;
}
.admin-bank-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid #eef1f4;
}
.admin-bank-row p {
    margin-top: 4px;
    color: #334155;
    font-size: 14px;
    white-space: normal;
}
.admin-bank-row p.is-on {
    color: #0a7a32;
}
.admin-bank-row p.is-off {
    color: #c41212;
}
.admin-bank-row button {
    background: #1b2838;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
}
.admin-detail-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid #eef1f4;
    font-size: 14px;
}
.admin-detail-row span {
    color: #64748b;
}
.admin-detail-row strong {
    font-weight: 600;
    white-space: normal;
}
.admin-detail-row strong.is-off {
    color: #c41212;
    font-weight: 700;
}
.admin-identity {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.admin-identity p {
    margin-bottom: 8px;
    font-size: 14px;
}
.admin-identity img {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}
.admin-identity span {
    display: block;
    color: #64748b;
    font-size: 14px;
}
#deleteIdentity {
    background: #c41212;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    cursor: pointer;
}
@media (max-width: 860px) {
    .admin-shell {
        flex-direction: column;
    }
    .admin-nav {
        width: 100%;
        padding: 14px 12px 12px;
    }
    .admin-nav-brand {
        margin-bottom: 12px;
    }
    .admin-nav nav {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .admin-nav nav button {
        flex: 1 1 calc(50% - 6px);
    }
    .admin-nav-foot {
        flex-direction: row;
        margin-top: 12px;
        padding-top: 12px;
    }
    .admin-nav-foot button {
        flex: 1;
    }
    .admin-main {
        width: 100%;
        padding: 16px 12px 32px;
    }
    .admin-main h1 {
        font-size: 20px;
    }
    .admin-toolbar input,
    .admin-config-form {
        width: 100%;
        max-width: none;
        box-sizing: border-box;
    }
    .admin-table-wrap {
        max-width: 100%;
    }
    .admin-pager {
        justify-content: space-between;
        flex-wrap: wrap;
    }
    .admin-password-popup,
    .admin-modal {
        padding: 12px;
        align-items: flex-end;
    }
    .admin-password-box,
    .admin-modal-box {
        width: 100%;
        max-height: 88vh;
    }
    .admin-password-actions {
        flex-wrap: wrap;
    }
    .admin-password-actions button {
        flex: 1;
    }
    .admin-bank-row {
        flex-wrap: wrap;
    }
    .admin-identity {
        grid-template-columns: 1fr;
    }
    .admin-option-menu {
        max-width: calc(100vw - 16px);
    }
}

.id-scan {
    box-sizing: border-box;
    min-height: 100vh;
    min-height: 100dvh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 36px 22px;
    background: #ff2d1f;
    color: #fff;
    font-family: "Segoe UI", Arial, sans-serif;
    text-align: center;
    overflow: hidden;
}
.id-scan-card {
    position: relative;
    width: min(100%, 420px);
    margin-top: 0;
    padding: 52px 18px 34px;
    border-radius: 18px;
    border: 1.5px solid rgba(255, 255, 255, 0.72);
    background: radial-gradient(120% 90% at 50% 0%, #7a1824 0%, #3d0b12 46%, #160407 100%);
    box-shadow: 0 10px 28px rgba(90, 0, 0, 0.28);
    overflow: hidden;
}
.id-scan-card::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 22px;
    right: 22px;
    height: 2px;
    border-radius: 4px;
    background: linear-gradient(90deg, transparent, rgba(143, 212, 255, 0.45) 24%, rgba(255, 255, 255, 0.7) 50%, rgba(143, 212, 255, 0.45) 76%, transparent);
    box-shadow: 0 0 6px 1px rgba(120, 190, 255, 0.35);
}
.id-scan-icon {
    width: 78px;
    height: 56px;
    display: block;
    margin: 0 auto 22px;
}
.id-scan-card h2 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.2px;
}
.id-scan-card p {
    margin-top: 8px;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
}
.id-scan h1 {
    margin-top: 28px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.6px;
    line-height: 1.35;
}
.id-scan h1 button {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    line-height: inherit;
    overflow: visible;
    cursor: pointer;
}
.id-scan-qr {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 0;
    padding: 12px 0;
}
.id-scan-qr img {
    width: auto;
    height: auto;
    max-width: min(240px, 68%);
    max-height: 100%;
    box-sizing: border-box;
    padding: 8px;
    border-radius: 10px;
    background: #fff;
}
.id-scan-qr img[hidden] {
    display: none;
}
.id-scan-status {
    width: min(100%, 420px);
    margin-top: 0;
    margin-bottom: 0;
}
.id-scan-status p {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.4px;
    line-height: 1.4;
}
.id-scan-track {
    height: 8px;
    margin-top: 16px;
    background: #f4f5f7;
    border-radius: 999px;
    overflow: hidden;
}
.id-scan-fill {
    width: 0;
    height: 100%;
    background: #3b82f6;
    border-radius: 999px;
}
.id-scan-status span {
    display: block;
    margin-top: 14px;
    font-size: 18px;
    font-weight: 700;
}