@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700&display=swap");

:root {
  color-scheme: dark;
  font-family: "DM Sans", sans-serif;
  background: #0c111b;
  color: #f4f6fb;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --muted: #8e98aa;
  --line: #273143;
  --accent: #9af4c5;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(39, 67, 75, .24), transparent 48%),
    #0c111b;
}

button, input { font: inherit; }
button { color: inherit; }

.shell {
  width: min(100% - 48px, 920px);
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #f4f6fb;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 9px;
  background: var(--accent);
  color: #10251c;
  font-size: 17px;
  letter-spacing: 0;
}

.brand-light { color: #8993a5; font-weight: 500; }
.domain, .eyebrow, .file-limit, footer, .field-help { font-family: "DM Mono", monospace; }

.domain {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #aab3c1;
  font-size: 11px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(154,244,197,.55);
}

.intro {
  margin: 92px auto 34px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 17px;
  color: var(--accent);
  font-size: 10px;
  letter-spacing: .2em;
}

h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.1;
  letter-spacing: -.055em;
}

h1 span { color: var(--accent); }
.subtitle { margin: 17px 0 0; color: var(--muted); font-size: 15px; }

.upload-card {
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 25px;
  border: 1px solid #293447;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(24,33,48,.94), rgba(17,24,36,.94));
  box-shadow: 0 24px 80px rgba(0,0,0,.24);
}

.token-label, .result label {
  display: block;
  margin-bottom: 9px;
  color: #dce2ec;
  font-size: 12px;
  font-weight: 600;
}

.token-input, .result-row input {
  width: 100%;
  border: 1px solid #344155;
  border-radius: 8px;
  outline: none;
  background: #111926;
  color: #f4f6fb;
}

.token-input { height: 43px; padding: 0 13px; font-size: 13px; }
.token-input:focus, .result-row input:focus { border-color: #75cba2; }
.token-input::placeholder { color: #647084; }

.field-help {
  margin: 8px 0 19px;
  color: #8390a3;
  font-size: 10px;
}

.drop-zone {
  display: flex;
  min-height: 208px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed #46546a;
  border-radius: 11px;
  background: rgba(11,17,27,.42);
  cursor: pointer;
  transition: border-color .18s, background .18s;
}

.drop-zone:hover, .drop-zone:focus, .drop-zone.dragging {
  border-color: var(--accent);
  background: rgba(154,244,197,.045);
  outline: none;
}

.upload-icon {
  display: grid;
  width: 43px;
  height: 43px;
  margin-bottom: 13px;
  place-items: center;
  border: 1px solid #344155;
  border-radius: 12px;
  background: #1a2535;
  color: var(--accent);
}

.upload-icon svg { width: 22px; height: 22px; }
.drop-title { font-size: 14px; font-weight: 600; }
.drop-copy { margin-top: 6px; color: #929caf; font-size: 12px; }
.browse { color: var(--accent); }
.file-limit { margin-top: 19px; color: #718096; font-size: 10px; }

.selected-file {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid #344155;
  border-radius: 8px;
  background: #111926;
}

.file-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 7px;
  background: #24352f;
  color: var(--accent);
  font: 10px "DM Mono", monospace;
}

.file-name {
  overflow: hidden;
  flex: 1;
  color: #dce2ec;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.remove-file {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #aab3c1;
  cursor: pointer;
  font-size: 21px;
}

.remove-file:hover { background: #283143; }

.upload-button {
  display: flex;
  width: 100%;
  height: 47px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #12251c;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: filter .18s, transform .18s;
}

.upload-button:not(:disabled):hover { filter: brightness(1.05); transform: translateY(-1px); }
.upload-button:disabled { background: #2c3949; color: #79869a; cursor: not-allowed; }
.upload-button svg { width: 18px; height: 18px; }

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(18,37,28,.25);
  border-top-color: #12251c;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
.message { min-height: 17px; margin: 11px 0 0; color: #aab3c1; text-align: center; font-size: 12px; }
.message.error { color: #ff9a9a; }
.message.success { color: var(--accent); }

.result {
  margin-top: 15px;
  padding: 14px;
  border: 1px solid rgba(154,244,197,.24);
  border-radius: 9px;
  background: rgba(154,244,197,.045);
}

.result label { color: var(--accent); }
.result-row { display: flex; gap: 8px; }
.result-row input { min-width: 0; height: 39px; padding: 0 10px; font: 11px "DM Mono", monospace; }

.result-row button {
  padding: 0 14px;
  border: 1px solid #3a7157;
  border-radius: 7px;
  background: #213c30;
  color: var(--accent);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.result-row button:hover { background: #294d3c; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding: 29px 0 22px;
  color: #657185;
  font-size: 9px;
  letter-spacing: .04em;
}

.footer-mark { color: #8893a5; }

@media (max-width: 600px) {
  .shell { width: min(100% - 32px, 920px); }
  .topbar { padding: 20px 0; }
  .domain { font-size: 9px; }
  .intro { margin-top: 62px; }
  .subtitle { max-width: 300px; margin-right: auto; margin-left: auto; line-height: 1.6; }
  .upload-card { padding: 18px; }
  footer { flex-direction: column; align-items: center; }
}
