/* ======================================================================
   CYMART LOGIN OTP V17.2
   - Removes the purple/orange decorative login waves that reappeared.
   - Styles the Profile > OTP panel for desktop and mobile.
   - Does not alter the approved page backgrounds or service cards.
   ====================================================================== */

/* The neon arcs shown behind the login card are generated by the old
   .cymart-login-background wave elements and by the old "futuristic floor".
   They are not part of the selected light/dark background, so disable them. */
.page-login .cymart-wave-left-1,
.page-login .cymart-wave-left-2,
.page-login .cymart-wave-left-3,
.page-login .cymart-wave-left-4,
.page-login .cymart-wave-right-1,
.page-login .cymart-wave-right-2,
.page-login .cymart-wave-right-3,
.page-login .cymart-wave-right-4 {
  display: none !important;
  opacity: 0 !important;
  box-shadow: none !important;
}

.page-login::before,
.page-login::after {
  content: none !important;
  display: none !important;
  background: none !important;
  box-shadow: none !important;
  filter: none !important;
}

/* Profile OTP tab/panel */
#cymart-otp-tab-v172 { white-space: nowrap; }
#cymart-login-otp-v172 { width: 100%; }

.cymart-otp-v172-wrap {
  padding: 16px;
  width: 100%;
  box-sizing: border-box;
}

.cymart-otp-v172-card {
  width: min(100%, 780px);
  box-sizing: border-box;
  border-radius: 14px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(91, 116, 255, .28);
  background: rgba(8, 24, 54, .62);
  backdrop-filter: blur(10px) saturate(115%);
  -webkit-backdrop-filter: blur(10px) saturate(115%);
  color: #f5f8ff;
}

body.cymart-theme-light .cymart-otp-v172-card,
body:not(.cymart-theme-dark) .cymart-otp-v172-card {
  background: rgba(255,255,255,.94);
  color: #17233f;
  border-color: rgba(70, 105, 190, .22);
  box-shadow: 0 12px 34px rgba(64, 98, 155, .10);
}

.cymart-otp-v172-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  margin-bottom: 18px;
}

.cymart-otp-v172-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 21px;
  background: linear-gradient(135deg,#238fff,#7c50ff);
  box-shadow: 0 8px 24px rgba(64, 83, 255, .25);
}

.cymart-otp-v172-head > div:last-child { min-width: 0; }
.cymart-otp-v172-head h5 {
  margin: 0 0 5px;
  font-size: 18px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.cymart-otp-v172-head p {
  margin: 0;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

#cymart-otp-v172-alert {
  display: none;
  margin: 0 0 14px;
  padding: 11px 13px;
  border-radius: 9px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
#cymart-otp-v172-alert.is-ok {
  display: block;
  color: #0b5e36;
  background: #dff6e9;
  border: 1px solid #a9dfc1;
}
#cymart-otp-v172-alert.is-error {
  display: block;
  color: #8c1c2a;
  background: #fde8eb;
  border: 1px solid #f3b9c2;
}

.cymart-otp-v172-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 15px;
  margin-bottom: 16px;
  border-radius: 10px;
  border: 1px solid rgba(130,150,195,.28);
}
.cymart-otp-v172-status > div { min-width: 0; }
.cymart-otp-v172-status strong,
.cymart-otp-v172-status span { display: block; }
.cymart-otp-v172-status small {
  display: block;
  margin-top: 3px;
  opacity: .76;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.cymart-otp-v172-badge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  background: #777f91;
  color: #fff;
}
.cymart-otp-v172-badge.is-linked { background: #17a867; }
.cymart-otp-v172-badge.is-unlinked { background: #d69b19; color:#111; }

.cymart-otp-v172-toggle {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0;
  padding: 15px;
  border-radius: 10px;
  border: 1px solid rgba(130,150,195,.28);
  cursor: pointer;
  box-sizing: border-box;
}
.cymart-otp-v172-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.cymart-otp-v172-switch {
  position: relative;
  width: 50px;
  height: 28px;
  min-width: 50px;
  border-radius: 999px;
  background: #939baa;
  transition: .2s ease;
}
.cymart-otp-v172-switch::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 7px rgba(0,0,0,.25);
  transition: .2s ease;
}
#cymart-otp-enabled-v172:checked + .cymart-otp-v172-switch {
  background: linear-gradient(90deg,#248eff,#7657ff);
}
#cymart-otp-enabled-v172:checked + .cymart-otp-v172-switch::before {
  transform: translateX(22px);
}
#cymart-otp-enabled-v172:disabled + .cymart-otp-v172-switch { opacity: .48; }

.cymart-otp-v172-copy { min-width: 0; line-height: 1.35; }
.cymart-otp-v172-copy b,
.cymart-otp-v172-copy small { display: block; }
.cymart-otp-v172-copy small {
  margin-top: 4px;
  opacity: .74;
  overflow-wrap: anywhere;
}

.cymart-otp-v172-actions { margin-top: 16px; }
#cymart-otp-save-v172 {
  min-width: 160px;
  max-width: 100%;
  white-space: normal;
}
.cymart-otp-v172-note {
  margin-top: 15px;
  font-size: 13px;
  line-height: 1.45;
  opacity: .8;
  overflow-wrap: anywhere;
}

@media (max-width: 767.98px) {
  /* Keep the settings tabs usable without overflowing their container. */
  .nav.nav-pills.flex-nowrap {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .cymart-otp-v172-wrap { padding: 10px 0; }
  .cymart-otp-v172-card { padding: 17px 14px; border-radius: 12px; }
  .cymart-otp-v172-head { gap: 10px; }
  .cymart-otp-v172-head h5 { font-size: 16px; }
  .cymart-otp-v172-icon { width: 39px; height: 39px; min-width: 39px; font-size: 18px; }
  .cymart-otp-v172-status { align-items: flex-start; }
  .cymart-otp-v172-toggle { align-items: flex-start; }
  #cymart-otp-save-v172 { width: 100%; min-width: 0; }
}
