:root {
  --bg-0: #060912;
  --bg-1: #11182a;
  --ink: #edf3ff;
  --ink-soft: #afbdd7;
  --panel: rgba(13, 20, 34, 0.84);
  --line: rgba(226, 236, 255, 0.2);
  --line-strong: rgba(226, 236, 255, 0.32);
  --cool: #59d2ff;
  --cool-soft: rgba(89, 210, 255, 0.2);
  --warm: #ff7a32;
  --warm-soft: rgba(255, 122, 50, 0.22);
  --ok: #4af0a8;
  --bad: #ff637c;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", sans-serif;
  background:
    radial-gradient(1400px 900px at 10% -8%, rgba(89, 210, 255, 0.22), transparent 52%),
    radial-gradient(1200px 700px at 92% 4%, rgba(255, 122, 50, 0.2), transparent 48%),
    linear-gradient(150deg, var(--bg-0), var(--bg-1));
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 38px 38px;
}

.bg-sweep {
  position: fixed;
  pointer-events: none;
  filter: blur(10px);
}

.bg-sweep-warm {
  width: 84vw;
  height: 38vh;
  left: -12vw;
  top: -13vh;
  transform: rotate(-8deg);
  background: linear-gradient(90deg, rgba(255, 122, 50, 0.3), rgba(255, 122, 50, 0));
}

.bg-sweep-cool {
  width: 74vw;
  height: 38vh;
  right: -18vw;
  top: 22vh;
  transform: rotate(11deg);
  background: linear-gradient(90deg, rgba(89, 210, 255, 0), rgba(89, 210, 255, 0.24));
}

.shell {
  position: relative;
  width: min(960px, 93vw);
  margin: 1.8rem auto;
  padding: 1.5rem;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(5px);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.34);
  animation: rise 0.45s ease both;
}

.hero {
  padding: 0.45rem 0.35rem 0.2rem;
}

.eyebrow {
  margin: 0;
  font-family: "Chakra Petch", "Trebuchet MS", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero h1 {
  margin: 0.58rem 0 0;
  font-family: "Chakra Petch", "Trebuchet MS", sans-serif;
  font-size: clamp(1.9rem, 5.2vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: 0.02em;
}

.lead {
  margin: 0.8rem 0 0;
  color: var(--ink-soft);
  max-width: 74ch;
}

.dropcard {
  position: relative;
  margin-top: 1.05rem;
  border: 2px dashed rgba(173, 191, 223, 0.3);
  border-radius: 20px;
  padding: 1.2rem;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.12s ease, border-color 0.12s ease, background-color 0.12s ease;
  background: linear-gradient(145deg, rgba(16, 23, 37, 0.95), rgba(12, 19, 31, 0.95));
}

.dropcard::after {
  content: "";
  position: absolute;
  right: -48px;
  top: -40px;
  width: 140px;
  height: 120px;
  transform: rotate(18deg);
  background: linear-gradient(90deg, rgba(255, 122, 77, 0.15), rgba(66, 184, 231, 0.14));
}

.dropcard:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 90, 42, 0.65);
}

.dropcard:focus-visible {
  outline: 2px solid rgba(89, 210, 255, 0.7);
  outline-offset: 2px;
}

.dropcard.dragover {
  border-color: rgba(66, 184, 231, 0.9);
  background: linear-gradient(145deg, rgba(16, 33, 45, 0.95), rgba(14, 29, 40, 0.95));
}

.dropcard.ready {
  border-color: rgba(74, 240, 168, 0.72);
}

.dropcard input[type="file"] {
  display: none;
}

.card-title,
.card-copy,
.card-meta {
  position: relative;
  z-index: 1;
}

.card-title {
  margin: 0;
  font-family: "Chakra Petch", "Trebuchet MS", sans-serif;
  font-size: 1.1rem;
}

.card-copy {
  margin: 0.45rem 0 0;
  color: var(--ink-soft);
}

.card-meta {
  margin: 0.75rem 0 0;
  font-weight: 700;
}

.panel {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(11, 17, 29, 0.88);
}

.returns h2 {
  margin: 0;
  font-family: "Chakra Petch", "Trebuchet MS", sans-serif;
  font-size: 1.2rem;
}

.option-intro {
  margin: 0.35rem 0 0.85rem;
}

.returnOpt {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 0.52rem;
  padding: 0.62rem 0.7rem;
  border-radius: 12px;
  border: 1px solid rgba(226, 236, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: border-color 0.12s ease, background-color 0.12s ease;
}

.returnOpt:first-of-type {
  margin-top: 0;
}

.returnOpt:hover {
  border-color: rgba(226, 236, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

.returnOpt input {
  margin-top: 0.1rem;
  accent-color: var(--cool);
}

.returnOpt span {
  line-height: 1.4;
}

.returnOpt small {
  color: var(--ink-soft);
}

.returnOpt.disabled {
  opacity: 0.85;
}

.behavior-details {
  margin-top: 0.7rem;
  border: 1px solid rgba(226, 236, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.behavior-details[open] {
  background: rgba(255, 255, 255, 0.045);
}

.behavior-details summary {
  cursor: pointer;
  padding: 0.62rem 0.75rem;
  color: var(--ink-soft);
  font-weight: 700;
}

.behavior-details summary:hover {
  color: var(--ink);
}

.behavior-details-body {
  padding: 0 0.75rem 0.75rem;
}

.behavior-details-body p {
  margin: 0.55rem 0 0;
  max-width: 78ch;
}

.action-row {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
}

.go {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1.45rem;
  font-family: "Chakra Petch", "Trebuchet MS", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  color: #ffffff;
  background: linear-gradient(90deg, var(--warm), #d4653d);
  box-shadow: 0 8px 18px rgba(91, 34, 19, 0.44);
  cursor: pointer;
  transition: filter 0.12s ease, transform 0.12s ease;
}

.go:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.go:disabled {
  cursor: not-allowed;
  background: linear-gradient(90deg, #4c5566, #5c6678);
  box-shadow: none;
}

.status,
.error {
  min-height: 1.4rem;
  margin-top: 0.8rem;
  font-weight: 600;
}

.status {
  color: var(--ok);
}

.error {
  color: var(--bad);
}

.foot {
  margin-top: 1.4rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(226, 236, 255, 0.16);
}

code {
  border: 1px solid rgba(226, 236, 255, 0.22);
  border-radius: 7px;
  padding: 0.1rem 0.32rem;
  background: rgba(255, 255, 255, 0.08);
}

.small {
  font-size: 0.92rem;
}

.muted {
  color: var(--ink-soft);
}

.overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 1rem;
  background: rgba(6, 9, 16, 0.74);
  z-index: 100;
}

.overlay.hidden {
  display: none;
}

.overlay-title {
  margin: 0.7rem 0 0;
  color: #fff;
  font-family: "Chakra Petch", "Trebuchet MS", sans-serif;
  font-size: 1.15rem;
}

.overlay-copy {
  margin: 0.3rem 0 0;
}

.loader {
  width: 54px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 5px solid rgba(255, 255, 255, 0.36);
  border-top-color: #ffffff;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

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

@media (max-width: 820px) {
  .shell {
    margin-top: 1.1rem;
    padding: 1rem;
    border-radius: 22px;
  }

  .dropcard,
  .panel {
    padding: 0.95rem;
  }

  .action-row {
    justify-content: stretch;
  }

  .go {
    width: 100%;
  }
}
