:root {
  --bg-deep: #060913;
  --bg-card: rgba(13, 19, 34, 0.92);
  --border-card: rgba(0, 245, 212, 0.22);
  --border-input: rgba(148, 163, 184, 0.24);
  --cyan: #00f5d4;
  --sky: #38bdf8;
  --gold: #f59e0b;
  --gold-light: #fbbf24;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --danger: #f87171;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg-deep);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 15%, rgba(0, 245, 212, 0.1) 0%, transparent 45%),
    radial-gradient(circle at 80% 85%, rgba(56, 189, 248, 0.1) 0%, transparent 45%),
    radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.08) 0%, transparent 38%);
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem 2.5rem;
}

.brand-header {
  margin-bottom: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo {
  height: 58px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(0, 245, 212, 0.3));
}

.brand-fallback {
  align-items: baseline;
  gap: 0.45rem;
  font-family: 'Orbitron', sans-serif;
}

.brand-omdb {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--cyan);
  letter-spacing: 0.08em;
}

.brand-protocol {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.18em;
}

.card {
  width: 100%;
  max-width: 470px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 1.85rem 1.65rem;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.65),
    0 0 36px rgba(0, 245, 212, 0.08);
  backdrop-filter: blur(12px);
}

.card-title {
  margin: 0 0 0.65rem;
  text-align: center;
  font-size: 1.32rem;
  font-weight: 800;
  background: linear-gradient(90deg, #00f5d4 0%, #38bdf8 55%, #fbbf24 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.card-subtitle {
  margin: 0 0 1.5rem;
  text-align: center;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

.label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #cbd5e1;
  text-transform: uppercase;
}

.input {
  width: 100%;
  padding: 0.78rem 0.92rem;
  border-radius: 10px;
  border: 1px solid var(--border-input);
  background: rgba(5, 9, 20, 0.88);
  color: var(--text-main);
  font-size: 0.86rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input::placeholder {
  color: var(--text-dim);
}

.input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 245, 212, 0.14);
}

.input.invalid {
  border-color: var(--danger);
}

.helper {
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 1.35;
}

.error-msg {
  font-size: 0.75rem;
  color: var(--danger);
  min-height: 0;
}

.submit-btn {
  margin-top: 0.35rem;
  width: 100%;
  padding: 0.92rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: linear-gradient(135deg, #00f5d4 0%, #38bdf8 100%);
  color: #050816;
  font-weight: 800;
  font-size: 0.94rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 245, 212, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 245, 212, 0.45);
}

.result-box {
  margin-top: 1.25rem;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(0, 245, 212, 0.07);
  border: 1px solid rgba(0, 245, 212, 0.32);
}

.result-label {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cyan);
  margin-bottom: 0.55rem;
}

.result-url-wrap {
  margin-bottom: 0.75rem;
}

.result-url {
  width: 100%;
  padding: 0.68rem 0.8rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(2, 6, 23, 0.9);
  color: #e2e8f0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  outline: none;
}

.result-actions {
  display: flex;
  gap: 0.6rem;
}

.action-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.action-btn:hover {
  transform: translateY(-1px);
}

.action-btn-primary {
  border: none;
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  color: #090d16;
}

.action-btn-secondary {
  border: 1px solid rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
}

.divider {
  height: 1px;
  background: rgba(148, 163, 184, 0.16);
  margin: 1.5rem 0 1.25rem;
}

.steps-title {
  margin: 0 0 1rem;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-light);
}

.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
}

.steps-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.step-num {
  flex: 0 0 22px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  color: #090d16;
  font-size: 0.74rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.footer {
  margin-top: 1.4rem;
  font-size: 0.76rem;
  color: var(--text-dim);
}
