@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap");

:root {
  --bg: #edf4f3;
  --panel: #ffffff;
  --panel-alt: #f6fbfb;
  --border: #d8e7e6;
  --text: #12201f;
  --muted: #4f6d6b;
  --brand: #1fa4b4;
  --brand-dark: #12737f;
  --accent: #f4b740;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --shadow: 0 12px 32px rgba(14, 38, 38, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 18%, rgba(31, 164, 180, 0.18), transparent 45%),
    radial-gradient(circle at 90% 12%, rgba(244, 183, 64, 0.16), transparent 40%),
    linear-gradient(180deg, #f4f9f8 0%, #eaf2f1 100%);
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 28px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 100vh;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 18px rgba(18, 115, 127, 0.25);
}

.brand-title {
  font-size: 18px;
  font-weight: 700;
}

.brand-subtitle {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
}

.stepper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stepper-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.stepper-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #dfeceb;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.stepper-item.active {
  background: var(--brand);
  color: #fff;
  border-color: transparent;
}

.stepper-item.active .stepper-dot {
  background: #fff;
  color: var(--brand-dark);
}

.stepper-item.done {
  background: #e7f7f4;
  color: var(--brand-dark);
  border-color: #cfe9e5;
}

.stepper-item.done .stepper-dot {
  background: var(--brand);
  color: #fff;
}

.layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
  align-items: stretch;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
}

.panel-title {
  font-size: 20px;
  font-weight: 700;
}

.panel-subtitle {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.subpanel {
  background: var(--panel-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e7f7f4;
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.info-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  margin-top: 6px;
  flex-shrink: 0;
}

.note {
  background: #eaf7f6;
  border-left: 3px solid var(--brand);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-dark);
  box-shadow: 0 12px 22px rgba(18, 115, 127, 0.25);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #e3eff0;
  color: var(--text);
}

.btn-secondary:hover {
  background: #d5e6e7;
}

.btn-outline {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
}

.btn-large {
  padding: 14px 18px;
  font-size: 15px;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.status-message {
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  display: none;
}

.status-message.info {
  background: #e7f0ff;
  color: #1f4f8f;
  display: block;
}

.status-message.error {
  background: #fee2e2;
  color: #991b1b;
  display: block;
}

.status-message.success {
  background: #dcfce7;
  color: #166534;
  display: block;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
}

.form-input {
  width: 100%;
  padding: 12px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31, 164, 180, 0.15);
}

.scroll-area {
  overflow: auto;
  padding-right: 6px;
}

.scroll-area::-webkit-scrollbar {
  width: 6px;
}

.scroll-area::-webkit-scrollbar-thumb {
  background: rgba(18, 115, 127, 0.3);
  border-radius: 999px;
}

.panel-footer {
  margin-top: auto;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.loader {
  border: 3px solid rgba(31, 164, 180, 0.2);
  border-top: 3px solid var(--brand);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  animation: spin 1s linear infinite;
  display: inline-block;
}

code,
.code-pill {
  font-family: "JetBrains Mono", "SFMono-Regular", monospace;
  font-size: 12px;
  background: #eef5f4;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 8px;
  color: var(--brand-dark);
}

.animate {
  animation: rise 0.5s ease both;
}

.delay-1 {
  animation-delay: 0.12s;
}

.delay-2 {
  animation-delay: 0.24s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 980px) {
  .page {
    padding: 22px 20px 32px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .stepper-item {
    font-size: 11px;
    padding: 6px 10px;
  }

  .panel {
    padding: 18px;
  }
}
