
/* SMSOTP_SECURITY_PREMIUM_V1 */

body:has(#btnChangeSecurity) .account-card {
  background: linear-gradient(145deg,#253148,#1a2537) !important;
  border: 1px solid #40597a !important;
  border-radius: 18px !important;
  padding: 28px !important;
  margin-bottom: 22px !important;
  box-shadow: 0 14px 34px rgba(0,0,0,.18) !important;
}

body:has(#btnChangeSecurity) .account-content,
body:has(#btnChangeSecurity) .account-card .row {
  background: transparent !important;
  color: #edf4ff !important;
}

body:has(#btnChangeSecurity) .form-label {
  color: #e3edff !important;
  font-size: 15px !important;
  font-weight: 650 !important;
  line-height: 1.7 !important;
}

body:has(#btnChangeSecurity) .form-group.row {
  align-items: center !important;
  padding: 17px 0 !important;
  margin-bottom: 0 !important;
  border-bottom: 1px solid rgba(125,152,197,.18) !important;
}

body:has(#btnChangeSecurity) .account-card small {
  display: block !important;
  color: #b8c8e0 !important;
  font-size: 13px !important;
  line-height: 1.9 !important;
  margin-top: 18px;
}

body:has(#btnChangeSecurity) .switch {
  position: relative !important;
  display: inline-block !important;
  width: 52px !important;
  height: 29px !important;
  vertical-align: middle;
}

body:has(#btnChangeSecurity) .switch input {
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
}

body:has(#btnChangeSecurity) .switch .slider {
  position: absolute !important;
  inset: 0 !important;
  background: #52627a !important;
  border: 1px solid #7388a7 !important;
  border-radius: 30px !important;
  cursor: pointer;
  transition: background .2s !important;
}

body:has(#btnChangeSecurity) .switch .slider::before {
  position: absolute !important;
  content: "" !important;
  width: 21px !important;
  height: 21px !important;
  left: 3px !important;
  bottom: 3px !important;
  background: #ffffff !important;
  border-radius: 50% !important;
  box-shadow: 0 2px 5px rgba(0,0,0,.24);
  transition: transform .2s !important;
}

body:has(#btnChangeSecurity) .switch input:checked + .slider {
  background: #4479e9 !important;
  border-color: #83aaff !important;
}

body:has(#btnChangeSecurity) .switch input:checked + .slider::before {
  transform: translateX(23px) !important;
}

body:has(#btnChangeSecurity) .switch input:focus-visible + .slider {
  outline: 3px solid #a3c5ff !important;
  outline-offset: 3px;
}

body:has(#btnChangeSecurity) #btnChangeSecurity,
body:has(#btnChangeSecurity) #btnSave2FA {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px !important;
  background: linear-gradient(115deg,#4275e6,#5b6ee0) !important;
  color: white !important;
  border: 1px solid #7a9cf3 !important;
  border-radius: 11px !important;
  font-size: 15px !important;
  font-weight: 750 !important;
  cursor: pointer;
}

body:has(#btnChangeSecurity) #qr_2fa {
  margin-top: 20px !important;
  padding: 18px !important;
  background: #111e30 !important;
  border: 1px solid #45638a !important;
  border-radius: 14px !important;
}

body:has(#btnChangeSecurity) #qr_2fa input {
  max-width: 100%;
  padding: 12px !important;
  color: #fff !important;
  background: #19273c !important;
  border: 1px solid #567391 !important;
  border-radius: 9px !important;
}

@media(max-width:768px) {
  body:has(#btnChangeSecurity) .account-card {
    padding: 18px !important;
  }
  body:has(#btnChangeSecurity) .form-group.row {
    gap: 12px;
  }
  body:has(#btnChangeSecurity) #btnChangeSecurity {
    width: 100% !important;
  }
}

/* END SMSOTP_SECURITY_PREMIUM_V1 */


/* SMSOTP_SECURITY_PREMIUM_V3 */

/* Tong the trang bao mat */
body:has(#btnChangeSecurity) .account-card {
    background: linear-gradient(145deg,#222d40,#1b2637) !important;
    border: 1px solid #405675 !important;
    border-radius: 18px !important;
    padding: 28px !important;
}

/* Tieu de bao mat */
body:has(#btnChangeSecurity) .account-card h1,
body:has(#btnChangeSecurity) .account-card h2,
body:has(#btnChangeSecurity) .account-card h3,
body:has(#btnChangeSecurity) .account-card h4,
body:has(#btnChangeSecurity) .account-card .account-title {
    color: #f6f9ff !important;
    font-weight: 800 !important;
    line-height: 1.4 !important;
}

/* Menu tai khoan ben trai */
body:has(#btnChangeSecurity) .account-sidebar,
body:has(#btnChangeSecurity) .account-side {
    background: #1a2433 !important;
    border: 1px solid #394d69 !important;
    border-radius: 17px !important;
    padding: 12px !important;
}

/* Cac muc menu */
body:has(#btnChangeSecurity) .account-sidebar a,
body:has(#btnChangeSecurity) .account-side a,
body:has(#btnChangeSecurity) .account-menu a {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-height: 51px !important;
    padding: 12px 15px !important;
    margin-bottom: 9px !important;
    color: #edf4ff !important;
    background: #202d41 !important;
    border: 1px solid #3b506e !important;
    border-radius: 11px !important;
    text-decoration: none !important;
    font-weight: 650 !important;
    transition: background .2s,border-color .2s !important;
}

body:has(#btnChangeSecurity) .account-sidebar a:hover,
body:has(#btnChangeSecurity) .account-side a:hover,
body:has(#btnChangeSecurity) .account-menu a:hover {
    background: #2a3e5b !important;
    border-color: #7298d9 !important;
}

/* Muc dang duoc chon */
body:has(#btnChangeSecurity) .account-sidebar a.active,
body:has(#btnChangeSecurity) .account-side a.active,
body:has(#btnChangeSecurity) .account-menu a.active {
    background: #294a82 !important;
    color: #fff !important;
    border-color: #638cda !important;
}

/* Can chinh nhan va cong tac */
body:has(#btnChangeSecurity) .account-card .form-group.row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    padding: 17px 0 !important;
    gap: 10px !important;
}

body:has(#btnChangeSecurity) .form-group.row > div:first-child {
    flex: 1 1 320px !important;
    max-width: none !important;
    min-width: 0 !important;
}

body:has(#btnChangeSecurity) .form-group.row > div:nth-child(2) {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    margin-left: auto !important;
}

body:has(#btnChangeSecurity) .form-label {
    display: block !important;
    color: #e1eafb !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
    margin: 0 !important;
}

/* Cong tac bat tat */
body:has(#btnChangeSecurity) .switch {
    flex-shrink: 0 !important;
}

/* Huong dan Authenticator */
body:has(#btnChangeSecurity) .account-card small {
    color: #b8c8e0 !important;
    line-height: 2 !important;
    font-size: 13px !important;
}

/* Nut cap nhat */
body:has(#btnChangeSecurity) #btnChangeSecurity {
    width: auto !important;
    min-width: 230px !important;
    margin-top: 20px !important;
    border-radius: 11px !important;
    box-shadow: 0 9px 24px rgba(50,94,204,.22) !important;
}

@media(max-width:768px) {
    body:has(#btnChangeSecurity) .account-card {
        padding: 18px !important;
    }
    body:has(#btnChangeSecurity) .form-group.row > div:first-child {
        flex-basis: 100% !important;
    }
    body:has(#btnChangeSecurity) .form-group.row > div:nth-child(2) {
        margin-left: 0 !important;
    }
    body:has(#btnChangeSecurity) #btnChangeSecurity {
        width: 100% !important;
        min-width: 0 !important;
    }
}
/* END SMSOTP_SECURITY_PREMIUM_V3 */


/* SMSOTP_SECURITY_PREMIUM_V4 */

/* Canh deu tung dong bao mat */
body:has(#btnChangeSecurity) .form-group.row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 18px !important;
    padding: 20px 0 !important;
}

body:has(#btnChangeSecurity) .form-group.row > .col-xl-6:first-child {
    flex: 1 1 auto !important;
    max-width: none !important;
}

body:has(#btnChangeSecurity) .form-group.row > .col-xl-6:last-child {
    flex: 0 0 90px !important;
    max-width: 90px !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
}

/* Label gon, de doc */
body:has(#btnChangeSecurity) .form-label {
    margin-bottom: 0 !important;
    color: #edf4ff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.6 !important;
}

/* Nut toggle dep va canh deu */
body:has(#btnChangeSecurity) .switch {
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
}

body:has(#btnChangeSecurity) .slider {
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 8px 18px rgba(0,0,0,.20) !important;
}

/* Khu vuc nut cap nhat */
body:has(#btnChangeSecurity) center {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: 26px !important;
    padding-top: 6px !important;
}

/* Nut cap nhat dep hon, can doi, het lech */
body:has(#btnChangeSecurity) #btnChangeSecurity,
body:has(#btnChangeSecurity) .form-btn#btnChangeSecurity {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: min(360px, 100%) !important;
    min-height: 56px !important;
    padding: 0 26px !important;
    margin: 0 auto !important;
    border: 1px solid rgba(132,160,255,.35) !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #5f7cff 0%, #6e6af6 100%) !important;
    color: #ffffff !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    letter-spacing: .3px !important;
    box-shadow: 0 14px 32px rgba(79,111,255,.30) !important;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease !important;
}

body:has(#btnChangeSecurity) #btnChangeSecurity:hover,
body:has(#btnChangeSecurity) .form-btn#btnChangeSecurity:hover {
    transform: translateY(-1px) !important;
    filter: brightness(1.04) !important;
    box-shadow: 0 18px 38px rgba(79,111,255,.36) !important;
}

body:has(#btnChangeSecurity) #btnChangeSecurity:focus-visible,
body:has(#btnChangeSecurity) .form-btn#btnChangeSecurity:focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(120,160,255,.20), 0 18px 38px rgba(79,111,255,.36) !important;
}

/* Tab ben trai - muc dang chon noi bat hon */
body:has(#btnChangeSecurity) a[href*="/client/security"],
body:has(#btnChangeSecurity) a[href*="?action=security"] {
    background: linear-gradient(135deg,#243550,#1c2a3f) !important;
    color: #f6fbff !important;
    border: 1px solid #66a8ff !important;
    box-shadow: 0 0 0 1px rgba(102,168,255,.15), 0 8px 20px rgba(0,0,0,.14) !important;
}

/* Khoi Google Authenticator dep va ro hon */
body:has(#status_2fa) .account-card small {
    display: block !important;
    color: #c3d2ea !important;
    font-size: 13px !important;
    line-height: 1.9 !important;
    margin-top: 18px !important;
}

/* Responsive */
@media (max-width: 768px) {
    body:has(#btnChangeSecurity) .form-group.row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    body:has(#btnChangeSecurity) .form-group.row > .col-xl-6:first-child,
    body:has(#btnChangeSecurity) .form-group.row > .col-xl-6:last-child {
        max-width: 100% !important;
        flex: 1 1 100% !important;
    }

    body:has(#btnChangeSecurity) .form-group.row > .col-xl-6:last-child {
        justify-content: flex-start !important;
    }

    body:has(#btnChangeSecurity) #btnChangeSecurity,
    body:has(#btnChangeSecurity) .form-btn#btnChangeSecurity {
        width: 100% !important;
    }
}

/* END SMSOTP_SECURITY_PREMIUM_V4 */


/* SMSOTP_SECURITY_MENU_V5 */

/* Menu tai khoan ben trai */
body:has(#btnChangeSecurity) .account-menu li,
body:has(#btnChangeSecurity) .account-menu a,
body:has(#btnChangeSecurity) .account-sidebar a,
body:has(#btnChangeSecurity) .account-side a {
    background:#202a3b !important;
    color:#eaf2ff !important;
    border:1px solid #3b4c65 !important;
    border-radius:11px !important;
    box-shadow:none !important;
}

/* Ca chu va icon */
body:has(#btnChangeSecurity) .account-menu a *,
body:has(#btnChangeSecurity) .account-sidebar a *,
body:has(#btnChangeSecurity) .account-side a * {
    color:#eaf2ff !important;
}

/* Muc dang chon */
body:has(#btnChangeSecurity) .account-menu a.active,
body:has(#btnChangeSecurity) .account-menu .active a,
body:has(#btnChangeSecurity) .account-menu a[href*="security"],
body:has(#btnChangeSecurity) .account-sidebar a[href*="security"] {
    background:linear-gradient(135deg,#2c4674,#223551) !important;
    border-color:#729df0 !important;
    color:#ffffff !important;
    box-shadow:0 0 0 1px rgba(115,158,244,.15) !important;
}

body:has(#btnChangeSecurity) .account-menu a[href*="security"] *,
body:has(#btnChangeSecurity) .account-sidebar a[href*="security"] * {
    color:#ffffff !important;
}

body:has(#btnChangeSecurity) .account-menu a:hover,
body:has(#btnChangeSecurity) .account-sidebar a:hover {
    background:#30425d !important;
    border-color:#779cde !important;
}

/* END SMSOTP_SECURITY_MENU_V5 */


/* SMSOTP_SECURITY_MENU_V6 */
/* Target dung class that trong sidebar.php */

body:has(#btnChangeSecurity) a.sidebar_profile {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 58px !important;
    margin: 0 0 10px !important;
    padding: 12px 16px !important;
    background: linear-gradient(145deg,#273247,#202a3c) !important;
    border: 1px solid #3f526e !important;
    border-radius: 12px !important;
    color: #eaf2ff !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: background .18s, border-color .18s !important;
}

body:has(#btnChangeSecurity) a.sidebar_profile h6 {
    display: flex !important;
    align-items: center !important;
    gap: 11px !important;
    width: 100% !important;
    margin: 0 !important;
    color: #edf4ff !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    font-weight: 650 !important;
    background: transparent !important;
}

body:has(#btnChangeSecurity) a.sidebar_profile h6 span {
    color: #edf4ff !important;
    background: transparent !important;
}

body:has(#btnChangeSecurity) a.sidebar_profile h6 i {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 20px !important;
    color: #acc7ee !important;
    font-size: 17px !important;
}

body:has(#btnChangeSecurity) a.sidebar_profile:hover {
    background: #30435f !important;
    border-color: #7ca6eb !important;
}

body:has(#btnChangeSecurity) a.sidebar_profile[href*="/client/security"] {
    background: linear-gradient(120deg,#345896,#273c66) !important;
    border-color: #88b2ff !important;
    box-shadow: 0 0 0 1px rgba(121,165,243,.18) !important;
}

body:has(#btnChangeSecurity) a.sidebar_profile[href*="/client/security"] h6,
body:has(#btnChangeSecurity) a.sidebar_profile[href*="/client/security"] h6 span,
body:has(#btnChangeSecurity) a.sidebar_profile[href*="/client/security"] h6 i {
    color: #ffffff !important;
}

/* Mobile */
@media (max-width: 768px) {
    body:has(#btnChangeSecurity) a.sidebar_profile {
        min-height: 52px !important;
        padding: 11px 14px !important;
    }
}

/* END SMSOTP_SECURITY_MENU_V6 */
