:root {
  color: #f1f1f1;
  background: #0b0b16;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 18% 15%, #2a2153 0, transparent 28%),
    radial-gradient(circle at 84% 80%, #123a42 0, transparent 26%), #0b0b16;
}
.card {
  position: relative;
  overflow: hidden;
  width: min(100%, 640px);
  padding: clamp(26px, 6vw, 44px);
  border: 1px solid #3d3961;
  border-radius: 18px;
  background: linear-gradient(
    145deg,
    rgba(31, 29, 50, 0.97),
    rgba(17, 17, 28, 0.98)
  );
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.card::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -70px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(151, 140, 255, 0.22);
  border-radius: 50%;
  box-shadow:
    0 0 0 22px rgba(151, 140, 255, 0.035),
    0 0 0 44px rgba(151, 140, 255, 0.025);
  pointer-events: none;
}
.eyebrow,
.result-label {
  color: #aaa6ce;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
h1 {
  margin: 12px 0 10px;
  font-size: clamp(1.8rem, 4vw, 2.45rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.12;
}
.intro {
  margin: 0 0 32px;
  color: #b7b4c9;
  font-size: 0.92rem;
  line-height: 1.55;
}
.select-row {
  display: grid;
  grid-template-columns: 1fr 26px 1fr;
  gap: 12px;
  align-items: end;
}
label {
  display: grid;
  gap: 8px;
  color: #b7b4c9;
  font-size: 0.76rem;
  font-weight: 600;
}
.swap-button {
  width: 26px;
  height: 38px;
  margin: 0 0 1px;
  padding: 0;
  align-self: end;
  border: 1px solid #464164;
  border-radius: 8px;
  background: rgba(12, 12, 23, 0.7);
  box-shadow: none;
  color: #bcb7f9;
  font-size: 1.05rem;
  line-height: 1;
}
.swap-button:hover {
  border-color: #978cff;
  background: #292442;
  filter: none;
  transform: none;
}
select,
input {
  width: 100%;
  border: 1px solid #464164;
  border-radius: 9px;
  background: rgba(12, 12, 23, 0.7);
  color: #f4f3ff;
  font: inherit;
  font-size: 0.9rem;
  outline: none;
  padding: 11px 12px;
}
select:hover,
input:hover {
  border-color: #6c6396;
}
select:focus,
input:focus {
  border-color: #978cff;
  box-shadow: 0 0 0 3px rgba(151, 140, 255, 0.2);
}
option {
  background: #1d1a30;
}
.number-field {
  margin-top: 22px;
}
input[aria-invalid="true"] {
  border-color: #e06c75;
}
.error {
  min-height: 1.2em;
  margin: 8px 0 0;
  color: #ed747c;
  font-size: 0.79rem;
}
button {
  width: 100%;
  margin-top: 18px;
  border: 1px solid #a399ff;
  border-radius: 9px;
  background: linear-gradient(135deg, #8175ee, #a35ee5);
  color: white;
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 11px 16px;
  box-shadow: 0 7px 20px rgba(119, 94, 222, 0.24);
  transition:
    transform 0.15s ease,
    filter 0.15s ease;
}
button:hover {
  filter: brightness(1.09);
  transform: translateY(-1px);
}
.result {
  margin-top: 28px;
  border: 1px solid #3e3960;
  border-radius: 11px;
  background: rgba(15, 15, 27, 0.65);
  padding: 17px 18px;
}
.result p {
  margin: 7px 0 0;
  color: #c2bfd2;
  font-size: 0.87rem;
  line-height: 1.5;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
  color: #bcb7f9;
  font-size: 0.72rem;
  font-weight: 700;
}
.badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #75e8bd;
  box-shadow: 0 0 12px #75e8bd;
}
.instagram-link {
  position: absolute;
  z-index: 1;
  top: 22px;
  right: 24px;
  color: #bcb7f9;
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
}
.instagram-link:hover {
  color: #f1efff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 520px) {
  .select-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .swap-button {
    width: 100%;
    height: 34px;
    margin: -7px 0;
  }
}
