* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 20% 15%, rgba(112, 40, 180, .20), transparent 30%),
    radial-gradient(circle at 80% 30%, rgba(60, 40, 160, .16), transparent 32%),
    linear-gradient(135deg, #100f18, #19172b 50%, #0f0e17);
  overflow-x: hidden;
}

.background {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particles {
  position: absolute;
  inset: 0;
}

.particles i {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #bd75ff;
  box-shadow: 0 0 12px rgba(189, 117, 255, .8);
  animation: float 5s infinite ease-in-out;
}

@keyframes float {
  0%, 100% {
    opacity: .25;
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateY(-15px);
  }
}

.container {
  position: relative;
  z-index: 2;
  width: min(930px, calc(100% - 30px));
  margin: auto;
  padding: 105px 0 80px;
}

.hero {
  text-align: center;
}

.mail-icon {
  font-size: 44px;
  margin-bottom: 4px;
  filter: drop-shadow(0 0 15px rgba(180, 70, 255, .4));
}

h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 800;
  letter-spacing: -2px;
  background: linear-gradient(90deg, #e9b7ff, #c766ff, #f2cfff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(180, 105, 255, .22);
  border-radius: 13px;
  background: rgba(25, 23, 39, .6);
}

.step-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #961ef0, #bc2bff);
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(157, 30, 255, .3);
}

.step strong {
  display: block;
  font-size: 15px;
}

.step p {
  margin: 4px 0 0;
  color: #a8a2b8;
  font-size: 13.5px;
  line-height: 1.45;
}

.mail-frame {
  display: block;
  width: 100%;
  min-height: 200px;
  margin-top: 6px;
  border: 0;
  border-radius: 9px;
  background: #fff;
}

.search-box {
  margin-top: 38px;
  padding: 30px;
  border: 1px solid rgba(180, 105, 255, .25);
  border-radius: 17px;
  background: rgba(25, 23, 39, .78);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .25);
  backdrop-filter: blur(15px);
}

form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

input {
  width: 100%;
  height: 61px;
  padding: 0 21px;
  border: 1px solid #eee;
  border-radius: 7px;
  outline: none;
  font-size: 18px;
  color: #29242f;
  background: #fff;
}

input:focus {
  border-color: #b82cff;
  box-shadow: 0 0 0 4px rgba(184, 44, 255, .13);
}

form button {
  height: 60px;
  border: 0;
  border-radius: 7px;
  color: white;
  background: linear-gradient(90deg, #9820ed, #bd2dff, #9820ed);
  font-size: 19px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(173, 35, 255, .25);
}

form button:disabled {
  opacity: .65;
  cursor: wait;
}

.not-found,
.error {
  margin-top: 18px;
  padding: 16px;
  border-radius: 9px;
}

.not-found {
  color: #ffd477;
  background: rgba(255, 190, 40, .08);
  border: 1px solid rgba(255, 190, 40, .25);
}

.error {
  color: #ff9cae;
  background: rgba(255, 50, 80, .09);
  border: 1px solid rgba(255, 50, 80, .25);
}

.result-card {
  margin-top: 20px;
  padding: 24px;
  border: 1px solid rgba(183, 77, 255, .3);
  border-radius: 13px;
  background: rgba(9, 8, 15, .65);
  animation: resultIn .25s ease;
}

@keyframes resultIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 12px;
}

.result-title h2 {
  margin: 0;
  font-size: 21px;
}

.result-title span {
  padding: 7px 10px;
  border-radius: 50px;
  color: #e0adff;
  border: 1px solid rgba(190, 90, 255, .35);
  background: rgba(190, 90, 255, .10);
  font-size: 11px;
  font-weight: 800;
}

.row {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  line-height: 1.5;
}

.row:last-child {
  border-bottom: 0;
}

.row small {
  display: block;
  margin-bottom: 4px;
  color: #928ca3;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}

.message-row pre {
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  color: #ddd8e7;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

@media (max-width: 600px) {
  .container {
    padding-top: 55px;
  }

  .search-box {
    padding: 18px;
  }

  .result-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .steps {
    grid-template-columns: 1fr;
  }
}
