:root {
  --bg-1: #0b0c0e;
  --bg-2: #0f1113;
  --card: rgba(255, 255, 255, 0.02);
  --muted: #9aa7c7;
  --accent: #2b6ef6;
  --accent-2: #00d0ff;
  --white: #e6eefb;
  --kbd-bg: rgba(255, 255, 255, 0.03);
  --kbd-border: rgba(255, 255, 255, 0.06);
  --radius: 12px;
  --shadow: 0 12px 40px rgba(2, 6, 23, 0.6);
  --max-width: 980px;
  --transition: 230ms cubic-bezier(0.2, 0.9, 0.3, 1);
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  scale: 1.1;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, var(--bg-1), var(--bg-2));
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color: var(--white);
  overflow: hidden;
}

.logo-bg {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 0;
  opacity: 0.06;
}
.logo-svg {
  width: 680px;
  height: 680px;
  max-width: 86vmin;
  max-height: 86vmin;
}

.panel {
  position: relative;
  z-index: 2;
  width: min(860px, 92%);
  padding: 42px;
  border-radius: 18px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.007),
    rgba(255, 255, 255, 0.01)
  );
  border: 1px solid rgba(255, 255, 255, 0.02);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.title {
  font-size: 1.15rem;
  font-weight: 700;
}
.subtitle {
  color: var(--muted);
  font-size: 0.95rem;
}

.commands {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 6px;
}
.row {
  display: flex;
  align-items: center;
  gap: 18px;
}
.label {
  min-width: 220px;
  text-align: right;
  color: var(--muted);
}
kbd {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-radius: 8px;
  background: var(--kbd-bg);
  border: 1px solid var(--kbd-border);
  font-weight: 600;
  font-size: 13px;
  color: var(--white);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}
kbd .plus {
  opacity: 0.6;
  font-weight: 700;
  font-size: 12px;
  padding: 0 6px;
}

.sources {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-direction: column;
}
.btn {
  height: 48px;
  padding: 0 18px;
  border-radius: 10px;
  background: linear-gradient(
    180deg,
    rgba(43, 110, 246, 0.14),
    rgba(43, 110, 246, 0.06)
  );
  border: 1px solid rgba(43, 110, 246, 0.16);
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn.secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.04);
  font-weight: 600;
}
.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(43, 110, 246, 0.08);
}

.redirect-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    180deg,
    rgba(2, 6, 23, 0.6),
    rgba(2, 6, 23, 0.75)
  );
}
.redirect-card {
  padding: 18px 22px;
  border-radius: 12px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01)
  );
  border: 1px solid rgba(255, 255, 255, 0.03);
  display: flex;
  gap: 12px;
  align-items: center;
}
.spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--accent);
  animation: spin 900ms linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.redirect-text {
  font-weight: 600;
}

.hint {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 16px;
}

@media (max-width: 560px) {
  .label {
    display: none;
  }
  .panel {
    padding: 22px;
  }
}
