/* SMSOTP PREMIUM UI V451 */

:root {
    --sms-bg: #1b1e26;
    --sms-sidebar: #141820;
    --sms-card: #272c37;
    --sms-card-soft: #212734;
    --sms-border: #3b4558;
    --sms-text: #eef3ff;
    --sms-muted: #acb9cf;
    --sms-primary: #667dff;
    --sms-success: #43daa3;
    --sms-radius: 13px;
}

body {
    background: var(--sms-bg);
    color: var(--sms-text);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

.content-wrapper,
.content,
.main-footer {
    background: var(--sms-bg);
    color: var(--sms-text);
}

.content-header h1,
.content-header h2,
.content-header h3 {
    color: #f4f7ff;
    font-weight: 700;
}

.main-sidebar,
.main-sidebar::before {
    background: var(--sms-sidebar) !important;
}

.brand-link {
    border-bottom: 1px solid var(--sms-border) !important;
}

.sidebar .nav-link {
    border-radius: 9px;
    margin: 3px 7px;
    transition: background .2s, color .2s;
}

.sidebar .nav-link:hover {
    background: #29364c !important;
    color: white !important;
}

.sidebar .nav-link.active {
    background: #394967 !important;
    color: white !important;
}

.card,
.small-box,
.info-box {
    background: var(--sms-card);
    color: var(--sms-text);
    border: 1px solid var(--sms-border);
    border-radius: var(--sms-radius);
    box-shadow: 0 7px 24px rgba(0,0,0,.13);
}

.card-header {
    background: rgba(255,255,255,.018);
    border-bottom: 1px solid var(--sms-border);
    padding: 17px 20px;
}

.card-body {
    padding: 20px;
}

.form-control,
.custom-select,
select,
input[type="text"],
input[type="number"],
input[type="search"],
input[type="email"],
input[type="password"],
textarea {
    background: #1d2430;
    border: 1px solid #465169;
    border-radius: 9px;
    color: #edf3ff;
    min-height: 40px;
}

.form-control:focus,
.custom-select:focus,
input:focus,
select:focus,
textarea:focus {
    background: #212b3b;
    color: white;
    border-color: #8295ff;
    box-shadow: 0 0 0 3px rgba(102,125,255,.14);
    outline: none;
}

.form-control::placeholder,
input::placeholder {
    color: #91a0b7;
}

.btn {
    border-radius: 9px;
    font-weight: 600;
    transition: filter .18s, transform .18s;
}

.btn:hover {
    filter: brightness(1.08);
}

.btn-primary {
    background: #586ff1;
    border-color: #586ff1;
}

.btn-primary:hover {
    background: #7085ff;
    border-color: #7085ff;
}

.table {
    color: #e5edff;
}

.table thead th {
    background: #303b4c;
    color: #eaf1ff;
    border-color: #465168;
    font-weight: 700;
}

.table td,
.table th {
    border-color: #404a5c;
    vertical-align: middle;
}

.table tbody tr:hover {
    background: rgba(105,130,255,.075);
    color: #fff;
}

/* DataTables */
.dataTables_wrapper {
    color: var(--sms-text);
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    background: #1d2430;
    border: 1px solid #465169;
    color: #fff;
    border-radius: 8px;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    color: var(--sms-muted) !important;
}

.page-link {
    background: #242e3d;
    color: #dbe5ff;
    border-color: #40506a;
}

.page-item.active .page-link {
    background: #586ff1;
    border-color: #586ff1;
}

.page-item.disabled .page-link {
    background: #202735;
    border-color: #394457;
}

/* Bang lich su va khung trang cu */
.table-responsive {
    border-radius: 10px;
}

.card.bg-white,
.bg-white {
    background-color: var(--sms-card) !important;
    color: var(--sms-text) !important;
}

.text-dark {
    color: #e8efff !important;
}

/* SMS order table */
.sms-pending-panel,
.sms-order-table {
    border-radius: 12px;
}

.sms-order-table td,
.sms-order-table th {
    padding: 12px;
}

.sms-order-table tbody tr:hover {
    background: rgba(105,130,255,.075);
}

/* Footer */
.main-footer {
    border-top: 1px solid var(--sms-border);
    color: var(--sms-muted);
}

/* Responsive */
@media(max-width:768px) {
    .card-body {
        padding: 14px;
    }

    .card-header {
        padding: 13px 15px;
    }

    .sms-order-table {
        font-size: 12px;
    }
}


/* ===== SMSOTP_ACCOUNT_UI_V463 ===== */

/* Khoang cach cac khu vuc */
.content-wrapper .content,
.content-wrapper > .content {
    padding-bottom: 24px;
}

.content-wrapper .row {
    row-gap: 14px;
}

/* The tai khoan */
.content-wrapper .card {
    background-color: #272e3b;
    color: #edf3ff;
    border: 1px solid #39465b;
    border-radius: 14px;
}

.content-wrapper .card-header {
    background: #2d3646;
    color: #f1f5ff;
    border-bottom: 1px solid #435067;
}

.content-wrapper .card-footer {
    background: #252d3b;
    border-top: 1px solid #435067;
}

/* Menu tai khoan ben trai */
.content-wrapper .list-group-item {
    background: #293345;
    border: 1px solid #40516c;
    color: #dce7fa;
    margin-bottom: 5px;
    border-radius: 9px;
}

.content-wrapper .list-group-item:hover,
.content-wrapper .list-group-item.active {
    background: #4359a4;
    border-color: #6075d2;
    color: #fff;
}

/* Tabs */
.content-wrapper .nav-tabs {
    border-bottom: 1px solid #46536b;
}

.content-wrapper .nav-tabs .nav-link {
    color: #b9c8df;
    border-radius: 9px 9px 0 0;
}

.content-wrapper .nav-tabs .nav-link.active {
    background: #344563;
    border-color: #506282;
    color: #fff;
}

/* Bang giao dich */
.content-wrapper .table {
    background: #272f3e;
    color: #edf3ff;
}

.content-wrapper .table thead th {
    background: #344258;
    color: #fff;
}

.content-wrapper .table tbody td {
    background: transparent;
    color: #dce7f7;
}

.content-wrapper .table-striped tbody tr:nth-of-type(odd) {
    background: rgba(255,255,255,.035);
}

.content-wrapper .table-hover tbody tr:hover {
    background: #35435a;
}

/* DataTables */
.content-wrapper .dataTables_wrapper {
    color: #c7d4e7;
}

.content-wrapper .dataTables_wrapper input,
.content-wrapper .dataTables_wrapper select {
    background: #222d3c;
    color: #fff;
    border: 1px solid #52617a;
    border-radius: 8px;
}

.content-wrapper .dataTables_wrapper label {
    color: #cad6e8;
}

/* Thanh dieu huong */
.content-wrapper .breadcrumb {
    background: transparent;
    color: #b8c6da;
}

.content-wrapper .breadcrumb-item,
.content-wrapper .breadcrumb-item a {
    color: #aebfff;
}

/* Van ban */
.content-wrapper .text-muted,
.content-wrapper small {
    color: #aab9d0 !important;
}

/* Thong bao va lich su nap */
.content-wrapper .alert {
    border-radius: 11px;
}

.content-wrapper .alert-info {
    background: #233c51;
    border-color: #396580;
    color: #d3efff;
}

.content-wrapper .alert-success {
    background: #1d443a;
    border-color: #326e5b;
    color: #d2fff0;
}

/* Giu ma QR de quet */
.content-wrapper img {
    max-width: 100%;
}

/* Mobile */
@media(max-width:768px) {
    .content-wrapper .card {
        margin-bottom: 12px;
    }

    .content-wrapper .table {
        font-size: 12px;
    }
}


/* SMSOTP REGISTER PREMIUM V503 START */

/* Form đăng ký */
body:has(#register-username) .user-form-card,
body:has(#register-username) .user-form-group {
    background: #252b37 !important;
    color: #e8eef8 !important;
    border: 1px solid #394558 !important;
    border-radius: 16px !important;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .24) !important;
}

/* Tiêu đề */
body:has(#register-username) .user-form-title,
body:has(#register-username) .user-form-title h1,
body:has(#register-username) .user-form-title h2,
body:has(#register-username) .user-form-title h3,
body:has(#register-username) .user-form-title p {
    color: #e8eef8 !important;
}

/* Ô nhập thông tin */
body:has(#register-username) input:not([type="hidden"]) {
    background: #171e2a !important;
    color: #f3f7ff !important;
    border: 1px solid #43516a !important;
    border-radius: 10px !important;
    min-height: 46px;
}

body:has(#register-username) input::placeholder {
    color: #aebbd0 !important;
    opacity: 1;
}

body:has(#register-username) input:focus {
    border-color: #16b8ed !important;
    box-shadow: 0 0 0 3px rgba(22,184,237,.12) !important;
    outline: none;
}

/* Nút đăng ký */
body:has(#register-username) #btnRegister {
    background: linear-gradient(135deg, #0799cb, #0879ac) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    min-height: 46px;
    font-weight: 700;
    transition: filter .2s ease;
}

body:has(#register-username) #btnRegister:hover {
    filter: brightness(1.12);
}

/* Link đăng nhập */
body:has(#register-username) .user-form-card a {
    color: #42caff !important;
}

/* Ẩn khung nhắc đăng ký trùng lặp */
body:has(#register-username) .user-form-remind {
    display: none !important;
}

/* Responsive */
@media (max-width: 767px) {
    body:has(#register-username) .user-form-card {
        padding: 20px !important;
        border-radius: 12px !important;
    }
}

/* SMSOTP REGISTER PREMIUM V503 END */


/* SMSOTP REGISTER PREMIUM V505 START */

/* Khung đăng ký */
body:has(#register-username) .user-form-card,
body:has(#register-username) .user-form-group {
    background: #252b37 !important;
    background-color: #252b37 !important;
    color: #f1f5fb !important;
    border: 1px solid #3c485c !important;
    border-radius: 14px !important;
    box-shadow: 0 15px 40px rgba(0,0,0,.22) !important;
}

/* Tiêu đề, mô tả */
body:has(#register-username) .user-form-title,
body:has(#register-username) .user-form-title *,
body:has(#register-username) .user-form-card p,
body:has(#register-username) .user-form-card label {
    color: #e1eaf7 !important;
}

/* Các ô nhập */
body:has(#register-username) .user-form input.form-control {
    background: #171e2a !important;
    color: #ffffff !important;
    border: 1px solid #46536b !important;
    border-radius: 9px !important;
    min-height: 46px;
}

body:has(#register-username) .user-form input::placeholder {
    color: #b6c4d8 !important;
    opacity: 1 !important;
}

/* Nút đăng ký */
body:has(#register-username) #btnRegister {
    background: #078fbd !important;
    border: none !important;
    border-radius: 9px !important;
    color: white !important;
    min-height: 46px;
    font-weight: 700;
}

/* Link */
body:has(#register-username) .user-form-card a {
    color: #48c8ff !important;
}

/* Ẩn khung đăng ký trùng */
body:has(#register-username) .user-form-remind {
    display: none !important;
}

/* Điện thoại */
@media (max-width: 767px) {
    body:has(#register-username) .user-form-card {
        padding: 20px !important;
        border-radius: 12px !important;
    }
}

/* SMSOTP REGISTER PREMIUM V505 END */


/* SMSOTP LOGIN PREMIUM V506 START */

/* Khung đăng nhập */
body:has(a[href*="reset-password"]) .user-form-card,
body:has(a[href*="reset-password"]) .user-form-group,
body:has(a[href*="reset-password"]) .user-form-remind {
    background: #252b37 !important;
    background-color: #252b37 !important;
    color: #edf3ff !important;
    border: 1px solid #3b485d !important;
    border-radius: 14px !important;
    box-shadow: 0 14px 40px rgba(0,0,0,.22) !important;
}

/* Tiêu đề và mô tả */
body:has(a[href*="reset-password"]) .user-form-title,
body:has(a[href*="reset-password"]) .user-form-title *,
body:has(a[href*="reset-password"]) .user-form-card p,
body:has(a[href*="reset-password"]) .user-form-remind p {
    color: #e1eaf7 !important;
}

/* Ô tài khoản và mật khẩu */
body:has(a[href*="reset-password"]) .user-form input.form-control {
    background: #171e2a !important;
    color: #ffffff !important;
    border: 1px solid #46536b !important;
    border-radius: 9px !important;
    min-height: 46px;
}

body:has(a[href*="reset-password"]) .user-form input::placeholder {
    color: #b6c4d8 !important;
    opacity: 1 !important;
}

body:has(a[href*="reset-password"]) .user-form input:focus {
    border-color: #18b9ec !important;
    box-shadow: 0 0 0 3px rgba(24,185,236,.12) !important;
}

/* Nút đăng nhập */
body:has(a[href*="reset-password"]) .user-form button {
    background: linear-gradient(135deg,#0799cb,#0879ac) !important;
    border: none !important;
    color: #ffffff !important;
    border-radius: 9px !important;
    min-height: 46px;
    font-weight: 700;
}

body:has(a[href*="reset-password"]) .user-form button:hover {
    filter: brightness(1.12);
}

/* Quên mật khẩu và đăng ký */
body:has(a[href*="reset-password"]) .user-form-card a,
body:has(a[href*="reset-password"]) .user-form-remind a {
    color: #46caff !important;
}

/* Điện thoại */
@media (max-width:767px) {
    body:has(a[href*="reset-password"]) .user-form-card,
    body:has(a[href*="reset-password"]) .user-form-remind {
        border-radius: 12px !important;
    }
}

/* SMSOTP LOGIN PREMIUM V506 END */


/* SMSOTP AUTH PREMIUM V507 START */

/* Áp dụng cho các form xác thực */
body:has(.user-form-card) .user-form-card,
body:has(.user-form-card) .user-form-group,
body:has(.user-form-card) .user-form-remind {
    background: #252b37 !important;
    background-color: #252b37 !important;
    background-image: none !important;
    color: #edf3ff !important;
    border: 1px solid #3c485e !important;
    border-radius: 14px !important;
    box-shadow: 0 16px 45px rgba(0,0,0,.25) !important;
}

/* Tiêu đề và mô tả */
body:has(.user-form-card) .user-form-title,
body:has(.user-form-card) .user-form-title h2,
body:has(.user-form-card) .user-form-title p,
body:has(.user-form-card) .user-form-card p,
body:has(.user-form-card) .user-form-remind p {
    color: #e5edf9 !important;
}

/* Ô nhập thông tin */
body:has(.user-form-card) .user-form input.form-control {
    background: #171e2a !important;
    background-color: #171e2a !important;
    color: #f8fbff !important;
    border: 1px solid #43536c !important;
    border-radius: 9px !important;
    min-height: 46px;
}

body:has(.user-form-card) .user-form input::placeholder {
    color: #b4c1d5 !important;
    opacity: 1 !important;
}

body:has(.user-form-card) .user-form input:focus {
    border-color: #22b9ec !important;
    box-shadow: 0 0 0 3px rgba(34,185,236,.15) !important;
}

/* Nút đăng nhập / đăng ký */
body:has(.user-form-card) .user-form button {
    background: linear-gradient(135deg,#089dcc,#087eaf) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 9px !important;
    min-height: 46px;
    font-weight: 700;
    cursor: pointer;
}

body:has(.user-form-card) .user-form button:hover {
    filter: brightness(1.12);
}

/* Liên kết */
body:has(.user-form-card) .user-form-card a,
body:has(.user-form-card) .user-form-remind a {
    color: #4acbff !important;
}

/* Khung nhắc đăng ký */
body:has(.user-form-card) .user-form-remind {
    padding: 18px !important;
    margin-top: 14px;
    text-align: center;
}

/* Ẩn khung nhắc đăng ký trên trang đăng ký */
body:has(#register-username) .user-form-remind {
    display: none !important;
}

/* Điện thoại */
@media (max-width:767px) {
    body:has(.user-form-card) .user-form-card {
        padding: 20px !important;
        border-radius: 12px !important;
    }
}

/* SMSOTP AUTH PREMIUM V507 END */


/* SMSOTP PROFILE PREMIUM V510 */

/* Menu hồ sơ */
.sms-profile-menu {
    background: #272c37 !important;
    border: 1px solid #3b4659 !important;
    border-radius: 12px !important;
    padding: 10px !important;
}

/* Các nút menu */
.sms-profile-menu a,
.sms-profile-menu .list-group-item,
.sms-profile-menu .nav-link,
.sms-profile-menu button {
    background: #202631 !important;
    color: #e8efff !important;
    border: 1px solid #38465a !important;
    border-radius: 9px !important;
    margin-bottom: 7px !important;
    padding: 12px 14px !important;
    text-decoration: none !important;
    transition: background .2s ease, border-color .2s ease;
}

/* Hover */
.sms-profile-menu a:hover,
.sms-profile-menu button:hover {
    background: #303e54 !important;
    color: #ffffff !important;
    border-color: #348fc2 !important;
}

/* Mục đang chọn */
.sms-profile-menu .active,
.sms-profile-menu a.active,
.sms-profile-menu .list-group-item.active {
    background: #123e61 !important;
    color: #ffffff !important;
    border-color: #1399dc !important;
}

/* Biểu tượng */
.sms-profile-menu i {
    color: #61c9ff !important;
    margin-right: 7px;
}

/* Card hồ sơ */
.sms-profile-content .sms-profile-card {
    background: #272c37 !important;
    color: #edf3ff !important;
    border: 1px solid #3a465a !important;
    border-radius: 12px !important;
}

/* Tiêu đề */
.sms-profile-content .sms-profile-title h2 {
    color: #f4f7ff !important;
}

/* Ô thông tin */
.sms-profile-content .sms-profile-field input {
    background: #1c222d !important;
    color: #eaf3ff !important;
    border: 1px solid #465267 !important;
    border-radius: 8px !important;
    min-height: 40px;
    font-size: 13px !important;
}

/* Nhãn thông tin */
.sms-profile-content .sms-profile-field label {
    color: #c4d4ee !important;
    font-size: 12px !important;
}

/* Thống kê ví */
.sms-profile-content .sms-profile-stat {
    background: #202631 !important;
    border: 1px solid #3c485c !important;
    border-radius: 9px !important;
}

/* Chú thích */
.sms-profile-content .sms-profile-warning {
    color: #b7c7df !important;
}

/* Điện thoại */
@media (max-width: 767px) {
    .sms-profile-layout {
        display: block !important;
    }

    .sms-profile-menu {
        width: 100% !important;
        margin-bottom: 18px !important;
    }

    .sms-profile-content {
        width: 100% !important;
        min-width: 0 !important;
    }

    .sms-profile-fields {
        grid-template-columns: 1fr !important;
    }
}


/* SMSOTP PROFILE MENU TEXT V511 */

/* Chữ menu sáng rõ */
.sms-profile-menu a,
.sms-profile-menu a span,
.sms-profile-menu button,
.sms-profile-menu button span,
.sms-profile-menu .list-group-item,
.sms-profile-menu .list-group-item span {
    color: #eaf2ff !important;
    opacity: 1 !important;
    -webkit-text-fill-color: #eaf2ff !important;
}

/* Biểu tượng */
.sms-profile-menu i,
.sms-profile-menu svg {
    color: #55c6ff !important;
    opacity: 1 !important;
}

/* Mục đang chọn */
.sms-profile-menu a.active,
.sms-profile-menu .active {
    background: #155580 !important;
    color: #ffffff !important;
    border-color: #24b8ff !important;
}

/* Hover */
.sms-profile-menu a:hover,
.sms-profile-menu button:hover {
    background: #32435a !important;
    color: #ffffff !important;
}

/* Tăng độ rõ khi rê chuột */
.sms-profile-menu a:hover *,
.sms-profile-menu .active * {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* SMSOTP PROFILE MENU TEXT V511 END */


/* SMSOTP RECHARGE DARK V515 */

/* Phạm vi trang nạp tiền ngân hàng */
body:has(.top-filter) .account-card,
body:has(.top-filter) .card:not(.sms-qr-card) {
    background: #272c37 !important;
    color: #eef4ff !important;
    border: 1px solid #3a4659 !important;
    border-radius: 11px !important;
}

/* Nội dung chữ */
body:has(.top-filter) .account-card p,
body:has(.top-filter) .account-card label,
body:has(.top-filter) .account-card span,
body:has(.top-filter) .account-card small {
    color: #d6e3f5 !important;
}

/* Bộ lọc lịch sử */
body:has(.top-filter) .top-filter {
    background: #252c38 !important;
    padding: 12px !important;
    border-radius: 10px !important;
}

body:has(.top-filter) .account-card .form-control,
body:has(.top-filter) .account-card .form-select,
body:has(.top-filter) .filter-select {
    background: #1b2230 !important;
    color: #f3f7ff !important;
    border: 1px solid #49576f !important;
    border-radius: 8px !important;
}

body:has(.top-filter) .account-card input::placeholder {
    color: #aebed4 !important;
    opacity: 1 !important;
}

/* Nút tìm kiếm và bỏ lọc */
body:has(.top-filter) .shop-widget-btn {
    background: #253b52 !important;
    color: #eff7ff !important;
    border: 1px solid #406083 !important;
    border-radius: 8px !important;
}

/* Bảng lịch sử nạp tiền */
body:has(.top-filter) .account-card table {
    background: #202733 !important;
    color: #e9f2ff !important;
    border-collapse: collapse;
}

body:has(.top-filter) .account-card table thead th {
    background: #303b4e !important;
    color: #ffffff !important;
}

body:has(.top-filter) .account-card table tbody td,
body:has(.top-filter) .account-card table tfoot td {
    background: #242c39 !important;
    color: #e7f0ff !important;
    border-color: #435069 !important;
}

body:has(.top-filter) .account-card table tbody tr:hover td {
    background: #344158 !important;
}

/* Giữ màu xanh/đỏ cho số tiền và trạng thái */
body:has(.top-filter) .account-card table .text-success {
    color: #67e8a5 !important;
}

body:has(.top-filter) .account-card table .text-danger {
    color: #ff8585 !important;
}

/* Khu vực thông báo nạp tiền */
body:has(.top-filter) .alert,
body:has(.top-filter) .alert-light {
    background: #263648 !important;
    color: #eaf4ff !important;
    border-color: #42627e !important;
}

/* Không thay đổi nền bên trong ảnh VietQR */
body:has(.top-filter) img[src*="vietqr"],
body:has(.top-filter) img[src*="VietQR"] {
    background: #ffffff !important;
    padding: 8px !important;
    border-radius: 8px !important;
    max-width: 100%;
    height: auto;
}

/* Responsive */
@media (max-width: 767px) {
    body:has(.top-filter) .account-card {
        padding: 14px !important;
    }

    body:has(.top-filter) .table-responsive {
        overflow-x: auto !important;
    }

    body:has(.top-filter) .top-filter {
        display: block !important;
    }
}

/* SMSOTP RECHARGE DARK V515 END */

