/**
 * Perfil de usuario 2026 — scoped a .frd-profile-page
 */

.frd-profile-page {
  --frd-profile-accent: var(--frd-theme-btn-from, #3b82f6);
  --frd-profile-accent-hover: var(--frd-theme-btn-to, #2563eb);
  --frd-profile-accent-soft: rgba(59, 130, 246, 0.1);
  --frd-profile-border: #dbe3ef;
  --frd-profile-surface: #ffffff;
  --frd-profile-muted: #64748b;
  --frd-profile-text: #0f172a;
  --frd-profile-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 14px 34px rgba(15, 23, 42, 0.08);
  background: transparent !important;
}

body.skin-purple .frd-profile-page {
  --frd-profile-accent-soft: rgba(147, 51, 234, 0.1);
}

body.skin-green .frd-profile-page {
  --frd-profile-accent-soft: rgba(22, 163, 74, 0.1);
}

body.skin-red .frd-profile-page {
  --frd-profile-accent-soft: rgba(220, 38, 38, 0.1);
}

body.skin-yellow .frd-profile-page {
  --frd-profile-accent-soft: rgba(202, 138, 4, 0.12);
}

body.skin-orange .frd-profile-page {
  --frd-profile-accent-soft: rgba(234, 88, 12, 0.11);
}

body.skin-sky .frd-profile-page {
  --frd-profile-accent-soft: rgba(2, 132, 199, 0.1);
}

.frd-profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}

.frd-profile-main {
  display: grid;
  gap: 1.25rem;
  min-width: 0;
}

.frd-profile-card {
  overflow: hidden;
  background: var(--frd-profile-surface);
  border: 1px solid var(--frd-profile-border);
  border-radius: 16px;
  box-shadow: var(--frd-profile-shadow);
}

.frd-profile-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: linear-gradient(135deg, #ffffff, #f6f8fb);
  border-bottom: 1px solid var(--frd-profile-border);
}

.frd-profile-card__header h3 {
  margin: 0.2rem 0 0;
  color: var(--frd-profile-text);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.frd-profile-card__eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 0.2rem 0.5rem;
  color: var(--frd-profile-accent);
  background: var(--frd-profile-accent-soft);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.frd-profile-card__body {
  padding: 1.15rem;
}

.frd-profile-card__body .row {
  margin-left: -8px;
  margin-right: -8px;
}

.frd-profile-card__body [class*='col-'] {
  padding-left: 8px;
  padding-right: 8px;
}

.frd-profile-card__body hr {
  margin: 1rem 0;
  border-color: var(--frd-profile-border);
}

.frd-profile-card__body h4 {
  margin-top: 0;
}

.frd-profile-account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
}

@media (min-width: 768px) {
  .frd-profile-account-grid {
    grid-template-columns: 16rem minmax(0, 1fr);
  }
}

.frd-profile-account-fields {
  min-width: 0;
}

.frd-profile-photo {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  padding: 1.15rem;
}

.frd-profile-photo__preview {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 8.5rem;
  height: 8.5rem;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, var(--frd-profile-accent), var(--frd-profile-accent-hover));
  border: 4px solid #fff;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
}

.frd-profile-photo__preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frd-profile-photo__fallback {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.frd-profile-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.frd-profile-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0.5rem 0.9rem;
  margin: 0;
  color: #fff !important;
  background: var(--frd-profile-accent);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
  cursor: pointer;
  font-weight: 700;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.frd-profile-upload:hover,
.frd-profile-upload:focus {
  background: var(--frd-profile-accent-hover);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.16);
}

.frd-profile-help {
  margin: 0;
  color: var(--frd-profile-muted);
  font-size: 0.78rem;
}

.frd-profile-remove {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.1rem 0 0;
}

.frd-profile-remove-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.4rem !important;
  background: #fff1f2 !important;
  border: 1px solid #fecdd3 !important;
  color: #e11d48 !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  padding: 0.35rem 0.85rem !important;
  border-radius: 999px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  text-decoration: none !important;
}

.frd-profile-remove-btn:hover {
  background: #ffe4e6 !important;
  border-color: #fda4af !important;
  color: #be123c !important;
  box-shadow: 0 1px 3px rgba(225, 29, 72, 0.15) !important;
}

.frd-profile-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.frd-profile-actions--footer {
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.frd-profile-card__footer {
  padding: 0.95rem 1.15rem;
  border-top: 1px solid var(--frd-profile-border);
  background: #f8fafc;
}

.frd-profile-actions__copy {
  display: grid;
  min-width: 0;
  max-width: 32rem;
  text-align: left;
  gap: 0.15rem;
}

.frd-profile-actions__copy strong {
  color: var(--frd-profile-text);
  font-size: 0.92rem;
  font-weight: 700;
}

.frd-profile-actions__copy span {
  color: var(--frd-profile-muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.frd-profile-hint {
  margin: 0 0 0.85rem;
  color: var(--frd-profile-muted);
  font-size: 0.8rem;
}

.frd-profile-more-toggle {
  display: flex;
  justify-content: flex-start;
  margin: 0.25rem 0 0.5rem;
}

.frd-profile-more-toggle .more_btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.frd-profile-security {
  margin-top: 1.25rem;
}

.frd-profile-security-block {
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--frd-profile-border);
}

.frd-profile-security-block__head {
  display: grid;
  gap: 0.2rem;
  margin-bottom: 0.85rem;
  text-align: left;
}

.frd-profile-security-block__head strong {
  color: var(--frd-profile-text);
  font-size: 0.95rem;
  font-weight: 700;
}

.frd-profile-security-block__head span {
  color: var(--frd-profile-muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.frd-profile-security-block__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem 1rem;
  align-items: end;
}

@media (min-width: 768px) {
  .frd-profile-security-block__row {
    grid-template-columns: minmax(0, 20rem) auto;
  }
}

.frd-profile-security-block__field {
  margin-bottom: 0 !important;
}

.frd-profile-security-block__action {
  display: flex;
  align-items: flex-end;
}

.frd-profile-security-block__action .tw-dw-btn {
  min-height: 38px;
}

@media (max-width: 767px) {
  .frd-profile-card__header,
  .frd-profile-card__body,
  .frd-profile-card__footer,
  .frd-profile-photo {
    padding: 1rem;
  }

  .frd-profile-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .frd-profile-actions__copy {
    max-width: none;
  }

  .frd-profile-actions .tw-dw-btn,
  .frd-profile-security-block__action .tw-dw-btn {
    width: 100%;
  }
}

/* Acordeones y tarjetas colapsables en perfil */
.frd-profile-card--collapsible .frd-profile-card__header {
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease;
}

.frd-profile-card--collapsible .frd-profile-card__header:hover {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

.frd-profile-card--collapsible:not(.is-expanded) .frd-profile-card__header {
  border-bottom-color: transparent;
}

.frd-profile-card--collapsible.is-expanded .frd-profile-card__header {
  border-bottom: 1px solid var(--frd-profile-border);
}

.frd-profile-card__header-action {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.frd-accordion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px !important;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s ease;
  pointer-events: none;
}

/* -------------------------------------------------------------
 * Tabs de navegación en perfil (Píldoras de Alto Contraste)
 * ----------------------------------------------------------- */
.frd-profile-tabs-wrapper {
  margin-bottom: 1.75rem;
  border-bottom: 2px solid #e2e8f0;
}

.frd-profile-nav-tabs {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-bottom: -2px;
}

.frd-profile-nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 0.25rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #64748b;
  border: none;
  border-bottom: 3px solid transparent;
  background: transparent;
  cursor: pointer;
  user-select: none;
  transition: color 0.15s ease, border-color 0.15s ease !important;
}

.frd-profile-nav-tab:hover {
  color: #0f172a;
  border-bottom-color: #cbd5e1;
}

.frd-profile-nav-tab.active {
  color: var(--frd-theme-btn-from, #3b82f6) !important;
  border-bottom-color: var(--frd-theme-btn-from, #3b82f6) !important;
  font-weight: 700 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.frd-profile-nav-tab.active svg {
  color: var(--frd-theme-btn-from, #3b82f6) !important;
  stroke: var(--frd-theme-btn-from, #3b82f6) !important;
}

.frd-profile-nav-tab svg {
  width: 1.15rem;
  height: 1.15rem;
  stroke: currentColor;
  transition: stroke 0.15s ease;
}

/* -------------------------------------------------------------
 * Centro de Seguridad (Alegra Style)
 * ----------------------------------------------------------- */
.frd-security-header {
  margin-bottom: 1.25rem;
}

.frd-security-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.25rem 0;
  letter-spacing: -0.02em;
}

.frd-security-header p {
  color: #64748b;
  font-size: 0.88rem;
  margin: 0;
}

/* Banner de recomendaciones */
.frd-security-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #e6f7f3 0%, #f0fdf4 100%);
  border: 1px solid #bbf7d0;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.05);
}

.frd-security-banner--has-recs {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border-color: #bfdbfe;
}

.frd-security-banner__left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.frd-security-banner__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(16, 185, 129, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}

.frd-security-banner__icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: #059669;
}

.frd-security-banner__content h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.2rem 0;
}

.frd-security-banner__content p {
  font-size: 0.82rem;
  color: #475569;
  margin: 0;
}

.frd-security-banner__btn {
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.15rem;
  background: #059669;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.84rem;
  border-radius: 8px;
  text-decoration: none !important;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
  border: none;
  transform: none !important;
  animation: none !important;
}

.frd-security-banner__btn:hover,
.frd-security-banner__btn:focus {
  background: #047857;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
  transform: none !important;
}

/* Métodos de verificación: Filas */
.frd-security-methods-list {
  display: flex;
  flex-direction: column;
}

.frd-security-method-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.frd-security-method-row:first-child {
  padding-top: 0.25rem;
}

.frd-security-method-row:last-child {
  border-bottom: none;
  padding-bottom: 0.25rem;
}

.frd-security-method-row__left {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  min-width: 0;
}

.frd-security-method-row__icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.frd-security-method-row__icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.frd-security-method-row__info {
  min-width: 0;
}

.frd-security-method-row__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.2rem 0;
  flex-wrap: wrap;
}

.frd-security-method-row__desc {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

.frd-security-method-row__note {
  font-size: 0.78rem;
  color: #d97706;
  margin-top: 0.25rem;
  font-weight: 500;
}

.frd-security-method-row__current {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #1e293b;
}

.frd-security-method-row__current-label {
  color: #94a3b8;
  font-weight: 400;
  margin-right: 0.35rem;
}

/* Badges de estado unificados para métodos de seguridad */
.frd-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2.5px 8.5px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  vertical-align: middle;
  flex-shrink: 0;
  letter-spacing: 0.01em;
}

.frd-status-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Verde / Éxito: Conectado, Activo, Configurada, Registrado, Activado */
.frd-status-badge--success {
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.frd-status-badge--success .frd-status-badge__dot {
  background-color: #10b981;
}

/* Neutro / Inactivo: No conectado, Sin registrar, Desactivado */
.frd-status-badge--neutral {
  background-color: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
}
.frd-status-badge--neutral .frd-status-badge__dot {
  background-color: #cbd5e1;
}

/* Advertencia / Atención: Sin configurar */
.frd-status-badge--warning {
  background-color: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}
.frd-status-badge--warning .frd-status-badge__dot {
  background-color: #f59e0b;
}

.frd-security-method-row__right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Pill de Google estilo Alegra */
.frd-google-connected-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.35rem 0.85rem 0.35rem 0.45rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  max-width: 100%;
}

.frd-google-connected-pill__avatar {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: #7c3aed;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.frd-google-connected-pill__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frd-google-connected-pill__details {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
  overflow: hidden;
}

.frd-google-connected-pill__name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.frd-google-connected-pill__email {
  font-size: 0.72rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.frd-google-connected-pill__logo {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  margin-left: 0.25rem;
}

/* Botón Administrar */
.frd-admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1rem;
  min-height: 36px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.frd-admin-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

/* Tabla de dispositivos */
.frd-devices-table {
  width: 100%;
  border-collapse: collapse;
}

.frd-devices-table th {
  padding: 0.65rem 0.75rem;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}

.frd-devices-table td {
  padding: 0.95rem 0.75rem;
  font-size: 0.85rem;
  color: #0f172a;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.frd-devices-table tr:last-child td {
  border-bottom: none;
}

@media (max-width: 768px) {
  .frd-security-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem;
  }
  .frd-security-banner__btn {
    width: 100%;
    justify-content: center;
  }
  .frd-security-method-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1.15rem 0;
  }
  .frd-security-method-row__title {
    gap: 0.35rem 0.5rem;
  }
  .frd-status-badge {
    font-size: 0.69rem;
    padding: 2px 7.5px;
  }
  .frd-security-method-row__left {
    width: 100%;
  }
  .frd-security-method-row__right {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
  }
  .frd-security-method-row__right .frd-admin-btn {
    width: auto;
    min-width: 100px;
  }
  .frd-security-method-row__right .frd-google-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Botón principal alineado al Theme Color del sistema */
.frd-btn-theme-primary {
  background: var(--frd-theme-btn-from, #3b82f6) !important;
  background-image: linear-gradient(135deg, var(--frd-theme-btn-from, #3b82f6), var(--frd-theme-btn-to, #2563eb)) !important;
  color: #ffffff !important;
  border: 1px solid transparent !important;
  box-shadow: 0 1px 2px var(--frd-theme-btn-glow, rgba(59, 130, 246, 0.28)) !important;
  transition: background-color 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  transform: none !important;
  animation: none !important;
  backface-visibility: hidden !important;
}

.frd-btn-theme-primary:hover,
.frd-btn-theme-primary:focus {
  background: var(--frd-theme-btn-to, #2563eb) !important;
  background-image: none !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px var(--frd-theme-btn-glow, rgba(59, 130, 246, 0.35)) !important;
  transform: none !important;
  animation: none !important;
}

/* Botón oficial de Google (Brand Guidelines Oficiales de Google) */
.frd-google-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.65rem !important;
  background-color: #ffffff !important;
  color: #3c4043 !important;
  border: 1px solid #dadce0 !important;
  border-radius: 8px !important;
  padding: 0.5rem 1.15rem !important;
  font-family: inherit !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.08) !important;
  cursor: pointer !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transform: none !important;
  animation: none !important;
  backface-visibility: hidden !important;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease !important;
}

.frd-google-btn:hover,
.frd-google-btn:focus {
  background-color: #f8fafd !important;
  border-color: #c2c7d0 !important;
  color: #1f1f1f !important;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.2) !important;
  transform: none !important;
  animation: none !important;
  text-decoration: none !important;
}

.frd-google-btn:active {
  background-color: #f1f3f4 !important;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.2) !important;
  transform: none !important;
}

.frd-google-btn svg {
  width: 1.15rem !important;
  height: 1.15rem !important;
  flex-shrink: 0 !important;
}

/* Eliminación definitiva de parpadeo, saltos o vibraciones en botones de la vista */
.frd-profile-page button,
.frd-profile-page a,
.frd-profile-page .tw-dw-btn,
.frd-profile-page .frd-btn-theme-primary,
.frd-profile-page .frd-google-btn,
.frd-profile-page .frd-admin-btn,
.frd-profile-page .frd-security-banner__btn,
.frd-profile-page .frd-accordion-toggle {
  transform: none !important;
  animation: none !important;
  backface-visibility: hidden !important;
  -webkit-font-smoothing: antialiased !important;
}

.frd-profile-page button:hover,
.frd-profile-page button:focus,
.frd-profile-page button:active,
.frd-profile-page a:hover,
.frd-profile-page a:focus,
.frd-profile-page a:active,
.frd-profile-page .tw-dw-btn:hover,
.frd-profile-page .tw-dw-btn:focus,
.frd-profile-page .tw-dw-btn:active,
.frd-profile-page .frd-btn-theme-primary:hover,
.frd-profile-page .frd-btn-theme-primary:focus,
.frd-profile-page .frd-btn-theme-primary:active,
.frd-profile-page .frd-google-btn:hover,
.frd-profile-page .frd-google-btn:focus,
.frd-profile-page .frd-google-btn:active,
.frd-profile-page .frd-admin-btn:hover,
.frd-profile-page .frd-admin-btn:focus,
.frd-profile-page .frd-admin-btn:active,
.frd-profile-page .frd-security-banner__btn:hover,
.frd-profile-page .frd-security-banner__btn:focus,
.frd-profile-page .frd-security-banner__btn:active,
.frd-profile-page .frd-accordion-toggle:hover,
.frd-profile-page .frd-accordion-toggle:focus,
.frd-profile-page .frd-accordion-toggle:active {
  transform: none !important;
  animation: none !important;
}

/* Modales estilo FacturandoRD - Ajuste y Proporciones */
.modal-dialog.frd-modal-dialog,
.modal.fade .modal-dialog.frd-modal-dialog {
  max-width: 540px !important;
  width: 95% !important;
  margin: 50px auto !important;
}

@media (max-width: 767px) {
  .modal-dialog.frd-modal-dialog,
  .modal.fade .modal-dialog.frd-modal-dialog {
    margin: 16px auto !important;
    width: calc(100% - 32px) !important;
  }
}

.frd-modal-content {
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
  background-color: #ffffff !important;
}

.frd-modal-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 1.25rem 1.5rem !important;
  border-bottom: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
}

.frd-modal-header__icon {
  width: 2.6rem !important;
  height: 2.6rem !important;
  border-radius: 12px !important;
  background: #eff6ff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--frd-theme-btn-from, #3b82f6) !important;
  flex-shrink: 0 !important;
  margin-right: 0.85rem !important;
}

.frd-modal-header__title {
  margin: 0 !important;
  font-size: 1.08rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  line-height: 1.3 !important;
}

.frd-modal-header__subtitle {
  margin: 0.2rem 0 0 !important;
  font-size: 0.82rem !important;
  color: #64748b !important;
}

.frd-modal-body {
  padding: 1.5rem !important;
}

.frd-modal-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 0.75rem !important;
  padding: 1.15rem 1.5rem !important;
  border-top: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
}




