:root {
  --bg: #0a0a0a;
  --panel-bg: #111111;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --font-main: "Geist", "Inter", sans-serif;
  --text: #ededed;
  --muted: #888;
  --faint: #3a3a3a;
  --accent: #ededed;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.app-container {
  min-height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.panel {
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px 32px;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Header */
.header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.logo-mark {
  width: 26px;
  height: 26px;
  background: var(--text);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

h1 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.2;
}

.subtitle {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* Footer */
.footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Progress bar */
.progress-wrap {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 99px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 200ms;
}

.progress-wrap.visible {
  opacity: 1;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--text);
  border-radius: 99px;
  transition: width 300ms var(--ease);
}

/* Button */
.button-row {
  width: 100%;
}

.btn-main {
  width: 100%;
  height: 42px;
  background: var(--text);
  color: #0a0a0a;
  border: none;
  border-radius: 10px;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.01em;
  transition:
    opacity 180ms var(--ease),
    transform 120ms var(--ease);
}

.btn-main:hover:not(:disabled) {
  opacity: 0.88;
}
.btn-main:active:not(:disabled) {
  transform: scale(0.98);
  opacity: 0.8;
}
.btn-main:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Spinner */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(10, 10, 10, 0.2);
  border-top-color: #0a0a0a;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* Status */
.status-row {
  min-height: 18px;
}
.status-row p {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  text-align: center;
}
.status-ok {
  color: #22c55e !important;
}
.status-err {
  color: #ef4444 !important;
}
.status-inf {
  color: var(--muted) !important;
}

@media (max-width: 480px) {
  .panel {
    padding: 24px 18px 20px;
  }
}
