/* Modal auth — alineado con .modal-content del sitio */

/* Overlay: blur en el .modal (tapa el backdrop). Por encima de age/cookie gates. */
.kp-auth-modal.modal,
.modal.kp-auth-modal {
  z-index: 2147483100 !important;
}
.kp-auth-modal.modal.fade.in,
.kp-auth-modal.modal.fade.show,
.kp-auth-modal.modal.in,
.kp-auth-modal.modal.show {
  background-color: rgba(8, 8, 10, 0.55) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  backdrop-filter: blur(12px) !important;
}
.modal-backdrop[data-kpaja-backdrop] {
  z-index: 2147483090 !important;
  background-color: rgba(8, 8, 10, 0.25) !important;
  filter: none !important;
  -webkit-backdrop-filter: blur(12px) !important;
  backdrop-filter: blur(12px) !important;
  opacity: 1 !important;
}

.kp-auth-modal .modal-dialog {
  max-width: 420px;
  width: auto;
  margin: 24px auto;
}
.kp-auth-modal .modal-content {
  background-color: #141414;
  border: 1px solid #282828;
  border-radius: 6px;
  color: #eee;
}
.kp-auth-modal .modal-header {
  padding: 15px;
  border-bottom: 1px solid #282828;
  position: relative;
}
.kp-auth-modal .modal-header .close {
  position: absolute;
  right: 12px;
  top: 12px;
  color: #ccc;
  opacity: 1;
  text-shadow: none;
  font-size: 20px;
  margin-top: 0;
}
.kp-auth-modal .modal-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  padding-right: 28px;
  color: #fff;
}
.kp-auth-modal .modal-body {
  padding: 15px;
  overflow: hidden;
}
/*
 * Registro alto: fondo bloqueado (body.modal-open); si hace falta scroll,
 * la barra sale en el borde derecho del viewport (mismo sitio que la página).
 * Si el modal cabe: sin barra. Centrado con margin:auto (sin justify-content:
 * center, que en flex+overflow impide llegar al inicio del scroll).
 */
#Register.kp-auth-modal:before {
  display: none !important;
  content: none !important;
  height: 0 !important;
}
#Register.kp-auth-modal.in,
#Register.kp-auth-modal.show {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 16px;
  text-align: center;
}
#Register.kp-auth-modal .modal-dialog {
  display: block;
  max-width: 420px;
  width: auto;
  margin: auto;
  text-align: left;
  flex: 0 0 auto;
  position: relative;
}
#Register.kp-auth-modal .modal-content {
  max-height: none;
  overflow: visible;
}
#Register.kp-auth-modal .modal-body {
  overflow: visible;
  max-height: none;
}
.kp-auth-modal .modal-footer {
  border-top: 1px solid #282828;
  padding: 12px 15px 15px;
}
.kp-auth-social-row {
  display: flex;
  gap: 10px;
  margin: 0 0 14px;
}
.kp-auth-social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  max-height: 52px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  text-decoration: none !important;
  transition: background 0.15s, border-color 0.15s;
}
.kp-auth-social-btn:hover,
.kp-auth-social-btn:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.kp-auth-social-btn svg,
.kp-auth-modal svg.kp-oauth-ico {
  display: block;
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  flex-shrink: 0;
}
.kp-auth-sep {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  color: #888;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.kp-auth-sep::before,
.kp-auth-sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #333;
}
.kp-auth-sep-dot {
  width: 8px;
  height: 8px;
  border: 1px solid #555;
  border-radius: 50%;
}
.kp-auth-email-btn.btn-block {
  width: 100%;
  display: block;
  white-space: normal;
  line-height: 1.35;
  padding: 10px 14px;
}
.kp-auth-foot {  margin-top: 14px;
  font-size: 13px;
  color: #999;
  text-align: center;
  line-height: 1.5;
}
.kp-auth-foot a,
.kp-auth-link-btn {
  color: #ff9800;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: inherit;
}
.kp-auth-legal {
  margin-top: 12px;
  font-size: 11px;
  color: #777;
  line-height: 1.45;
  text-align: center;
}
.kp-auth-legal a {
  color: #ff9800;
}
.kp-auth-legal a {
  color: #ff9800;
}

/* Formulario registro modal — mismo look que #Registro / crear-cuenta */
.kp-reg-form label {
  display: block;
  color: #bbb;
  font-weight: 600;
  margin: 10px 0 6px;
  font-size: 13px;
}
.kp-reg-form .form-control,
.kp-reg-form input.form-control,
.kp-reg-form select.form-control {
  background: #2b2b31 !important;
  border: 1px solid #3a3a42 !important;
  color: #eee !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  height: 42px;
  min-height: 42px;
  padding: 8px 12px;
  font-size: 16px;
}
.kp-reg-form .input-group .form-control {
  border-radius: 0 !important;
}
.kp-reg-form .input-group .form-control:first-child {
  border-top-left-radius: 4px !important;
  border-bottom-left-radius: 4px !important;
}
.kp-reg-form .input-group .form-control:last-child {
  border-top-right-radius: 4px !important;
  border-bottom-right-radius: 4px !important;
}
.kp-reg-form .form-control:hover,
.kp-reg-form .form-control:focus {
  background: #2b2b31 !important;
  border-color: #ff9800 !important;
  outline: 0;
  box-shadow: none !important;
}
.kp-reg-form .form-control::placeholder {
  color: #888;
  opacity: 1;
}
.kp-reg-form .form-control.is-oauth-locked,
#Register .form-control.is-oauth-locked,
#Register #email[readonly] {
  background: #23232a !important;
  color: #aaa !important;
  cursor: not-allowed;
  opacity: 0.95;
  border-color: #3a3a42 !important;
}
#Register.is-oauth-complete #reg-password-fields,
#Register.is-oauth-complete #register-social-row {
  display: none !important;
}
#Register #reg-oauth-encuentros[hidden] {
  display: none !important;
}
#Register.is-oauth-complete #reg-oauth-encuentros {
  display: block !important;
  margin: 4px 0 12px;
  padding-top: 4px;
  border-top: 1px solid rgba(255,255,255,.08);
}
#Register .reg-looking-for {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  padding: 10px 12px;
  margin: 0 0 14px;
  background: #141414;
  border: 1px solid #353535;
  border-radius: 6px;
}
#Register .reg-chip.kp-auth-check {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  padding: 8px 12px;
  border: 1px solid #3a3a42;
  border-radius: 8px;
  background: #2b2b31;
  color: #eee;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  cursor: pointer;
  user-select: none;
  min-height: 0 !important;
  white-space: nowrap;
}
#Register .reg-chip.kp-auth-check input[type="checkbox"] {
  flex: 0 0 18px;
  width: 18px !important;
  height: 18px !important;
}
#Register .reg-chip.kp-auth-check span {
  flex: 0 1 auto;
  font-size: 14px;
  line-height: 1.35;
  color: inherit;
}
#Register .reg-chip.kp-auth-check.is-on,
#Register .reg-chip.kp-auth-check:has(input:checked) {
  border-color: rgba(255,152,0,.55);
  background: rgba(255,152,0,.12);
  color: #ffe0a3;
}
.kp-reg-form .reg-birth-hint {
  color: #888;
  font-size: 12px;
  margin: 0 0 10px;
}
.kp-reg-form select.form-control {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 36px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23bbb' d='M1.4.6L6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 12px 8px !important;
  cursor: pointer;
}
.kp-reg-form select.form-control option {
  background: #2b2b31;
  color: #eee;
}
.kp-reg-form .input-group {
  margin-bottom: 12px;
  width: 100%;
}
.kp-reg-form .input-group-addon {
  background: #23232a !important;
  border: 1px solid #3a3a42 !important;
  color: #bbb !important;
  width: 42px;
  min-width: 42px;
  text-align: center;
  padding: 8px 10px;
}
.kp-reg-form .input-group-addon:first-child {
  border-right: 0 !important;
}
#Register .reg-birth-selects,
.kp-reg-form .reg-birth-selects {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) minmax(0,1.2fr) minmax(0,1.1fr) !important;
  gap: 8px;
  margin-bottom: 8px;
  width: 100%;
}
#Register .reg-birth-selects .form-control,
.kp-reg-form .reg-birth-selects .form-control {
  width: 100%;
  min-width: 0;
  border-radius: 4px !important;
  padding-left: 10px !important;
  padding-right: 28px !important;
  background-position: right 8px center !important;
}
.kp-reg-form .reg-birth-hint {
  color: #888;
  font-size: 12px;
  margin: 0 0 10px;
}
.kp-reg-form .reg-check {
  position: relative;
  display: block;
  margin: 12px 0;
  clear: both;
}
.kp-reg-form .reg-check label.kp-auth-check {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400 !important;
  color: #ccc;
  margin: 0 !important;
  cursor: pointer;
}
.kp-reg-form .reg-check a {
  color: #ff9800;
}
@media (max-width: 480px) {
  #Register .reg-birth-selects,
  .kp-reg-form .reg-birth-selects {
    grid-template-columns: minmax(0,1fr) minmax(0,1.15fr) minmax(0,1.05fr) !important;
    gap: 6px;
  }
  #Register .reg-birth-selects .form-control,
  .kp-reg-form .reg-birth-selects .form-control {
    font-size: 16px !important;
    padding-left: 8px !important;
    padding-right: 24px !important;
  }
}

.kp-oauth-profile-block {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.kp-oauth-profile-list {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0 0;
}
.kp-oauth-profile-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  background: #18181d;
  border: 1px solid #2f2f35;
  border-radius: 6px;
  min-width: 0;
}
.kp-oauth-profile-item.is-linked {
  border-color: rgba(255, 152, 0, 0.28);
}
.kp-oauth-profile-item__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}
.kp-oauth-profile-item__icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ddd;
  background: transparent;
  border: 0;
}
.kp-oauth-profile-item__icon svg {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px;
  max-height: 16px;
  display: block;
}
.kp-oauth-profile-item__meta {
  min-width: 0;
  overflow: hidden;
}
.kp-oauth-profile-item__meta strong {
  display: block;
  color: #eee;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 600;
}
.kp-oauth-profile-item__meta span {
  display: block;
  font-size: 11px;
  color: #888;
  margin-top: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kp-oauth-profile-item .btn {
  flex: 0 0 auto;
  margin: 0;
  padding: 4px 10px;
  font-size: 12px;
  line-height: 1.3;
  min-height: 0;
}
.kp-oauth-link-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.kp-oauth-unlink-panel {
  margin-top: 10px;
  padding: 12px;
  background: rgba(255, 152, 0, 0.06);
  border: 1px solid rgba(255, 152, 0, 0.25);
  border-radius: 8px;
}
.kp-oauth-unlink-panel[hidden] {
  display: none !important;
}
@media (max-width: 480px) {
  .kp-oauth-profile-list {
    grid-template-columns: 1fr;
  }
}
