/* FuelDash V414 — explicit, non-destructive account recovery. */
.fd-account-recovery {
  border: 1px solid color-mix(in srgb, #ff3b30 58%, transparent) !important;
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, #ff3b30 13%, transparent), transparent 45%),
    #0a0a0a !important;
  box-shadow: 0 18px 52px rgb(0 0 0 / 42%) !important;
}

.fd-account-recovery__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fd-account-recovery__head > span {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 50%;
  background: #ff3b30;
  color: #fff;
  font-size: 23px;
  font-weight: 800;
}

.fd-account-recovery__head small {
  color: #ff6b63;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
}

.fd-account-recovery__head h2 {
  margin: 3px 0 0;
  color: #fff;
  font-size: clamp(20px, 5.2vw, 25px);
  line-height: 1.08;
}

.fd-account-recovery > p {
  margin: 16px 0;
  color: #b8b8bd;
  font-size: 15px;
  line-height: 1.45;
}

.fd-account-recovery__counts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 16px;
}

.fd-account-recovery__counts span {
  min-width: 0;
  padding: 12px 8px;
  border: 1px solid #28282b;
  border-radius: 16px;
  background: #050505;
  text-align: center;
}

.fd-account-recovery__counts strong {
  display: block;
  color: #30d158;
  font-size: 22px;
  line-height: 1;
}

.fd-account-recovery__counts small {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  color: #919197;
  font-size: 10px;
  line-height: 1.2;
  text-overflow: ellipsis;
}

.fd-account-recovery__actions {
  display: grid;
  gap: 9px;
}

.fd-account-recovery__actions button {
  width: 100%;
  min-height: 48px;
}

.fd-account-recovery[data-phase="restored"] {
  border-color: color-mix(in srgb, #30d158 55%, transparent) !important;
}

.fd-account-recovery[data-phase="restored"] .fd-account-recovery__head > span {
  background: #30d158;
  color: #000;
}

@media (max-width: 370px) {
  .fd-account-recovery__counts {
    grid-template-columns: 1fr;
  }

  .fd-account-recovery__counts span {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    text-align: left;
  }
}
