:root {
  --bg: #0b1220;
  --card: rgba(255, 255, 255, 0.06);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.72);
  --border: rgba(255, 255, 255, 0.14);
  --primary: #7c3aed;
  --primary-2: #a78bfa;
  --ok: #16a34a;
  --err: #ef4444;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

/* Garante que o atributo HTML `hidden` sempre esconda elementos,
   mesmo quando classes definem `display` no CSS. */
[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1200px 600px at 10% -10%, rgba(124, 58, 237, 0.35), transparent 55%),
    radial-gradient(900px 500px at 110% 0%, rgba(167, 139, 250, 0.25), transparent 55%), var(--bg);
  min-height: 100vh;
}

.container {
  width: min(780px, calc(100% - 32px));
  margin: 0 auto;
}

.header {
  padding: 56px 0 22px;
}

.header__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.title {
  margin: 0;
  font-size: 32px;
  letter-spacing: -0.02em;
}

.subtitle {
  margin: 8px 0 0;
  color: var(--muted);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  position: relative;
}

.field {
  margin-bottom: 14px;
}

.label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-size: 16px;
  outline: none;
}

.input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

select.input {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.7) 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.7) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.input:focus {
  border-color: rgba(124, 58, 237, 0.7);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.18);
}

.combo {
  position: relative;
}

.combo__inputWrap {
  position: relative;
  display: grid;
}

.combo__toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
}

.combo__toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.combo__input {
  padding-right: 52px;
}

.combo__list {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 280px;
  overflow: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 16, 28, 0.98);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  padding: 6px;
}

.combo__option {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  padding: 10px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
}

.combo__option:hover,
.combo__option.is-active {
  background: rgba(124, 58, 237, 0.18);
}

.link {
  background: transparent;
  border: 0;
  padding: 10px 12px;
  border-radius: 10px;
  color: rgba(201, 201, 255, 0.95);
  cursor: pointer;
  text-decoration: none;
  transition: 0.2s ease;
  font-weight: 600;
}

.link:hover {
  background: rgba(255, 255, 255, 0.08);
}

.link:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.18);
}

.button {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.95), rgba(124, 58, 237, 0.78));
  color: white;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}

.button:hover {
  filter: brightness(1.05);
}

.button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.error {
  margin: 8px 0 0;
  color: rgba(239, 68, 68, 0.95);
}

.result {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: grid;
  gap: 6px;
}

.result--ok {
  border-color: rgba(22, 163, 74, 0.55);
  background: rgba(22, 163, 74, 0.12);
}

.result--err {
  border-color: rgba(239, 68, 68, 0.55);
  background: rgba(239, 68, 68, 0.12);
}

.progress {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.18);
  display: grid;
  gap: 10px;
}

.progress__head {
  display: flex;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
}

.progress__muted {
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
}

.progress__log {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
  max-height: 220px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.35;
}

@media (max-width: 540px) {
  .header__row {
    flex-direction: column;
    align-items: flex-start;
  }
}
