:root {
  --bg: #0b1017;
  --panel: #121821;
  --panel-border: #263244;
  --muted: #8f9cb0;
  --text: #eef4ff;
  --soft: #1a2330;
  --soft-border: #31517f;
  --accent: #37c15b;
  --accent-hover: #42d76a;
  --blue: #59a6ff;
  --blue-strong: #3389ff;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(56, 96, 158, 0.14), transparent 36%),
    linear-gradient(180deg, #0b1017 0%, #0a0f15 100%);
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.panel {
  width: min(100%, 720px);
  background: linear-gradient(180deg, rgba(20, 27, 37, 0.98), rgba(18, 24, 33, 0.98));
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.panel-header {
  padding: 24px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.brand-mark {
  width: 28px;
  height: 28px;
  color: #ffffff;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-text {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.brand-name,
.brand-repo {
  font-size: 1.05rem;
  font-weight: 800;
}

.brand-slash {
  color: #7f90a8;
  font-weight: 700;
}

.brand-badge {
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #aeb8c8;
  font-size: 0.82rem;
}

.panel-body {
  padding: 30px 28px 26px;
}

.progress-wrap {
  margin-bottom: 28px;
}

.progress-track {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  width: 8%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #7cbcff 0%, #5ba6ff 100%);
  box-shadow: 0 0 18px rgba(91, 166, 255, 0.4);
  transition: width 0.3s ease;
}

.progress-text {
  margin: 18px 0 0;
  text-align: center;
  color: #9db0c8;
  font-size: 1.05rem;
}

.actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.button,
.copy-button {
  border: 0;
  border-radius: 12px;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.button {
  min-width: 186px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 22px;
  font-weight: 800;
  font-size: 1.05rem;
}

.button:hover,
.copy-button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: white;
  background: linear-gradient(180deg, var(--accent) 0%, #32b754 100%);
}

.button-primary:hover {
  background: linear-gradient(180deg, var(--accent-hover) 0%, #38c55b 100%);
}

.button-secondary {
  color: #c0cbdb;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
}

.button-icon {
  font-size: 1.05rem;
}

.password-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 18px 20px;
  margin-bottom: 28px;
  background: linear-gradient(180deg, rgba(30, 50, 82, 0.82), rgba(24, 40, 68, 0.82));
  border: 1px solid var(--soft-border);
  border-radius: 14px;
  color: var(--blue);
}

.password-label {
  font-size: 1.05rem;
  font-weight: 700;
}

.password-value {
  font-size: 1.8rem;
  line-height: 1;
}

.copy-button {
  padding: 10px 16px;
  color: #d7e9ff;
  background: rgba(74, 141, 230, 0.16);
  border: 1px solid rgba(112, 165, 236, 0.65);
  font-weight: 700;
}

.meta-list {
  margin: 0;
}

.meta-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px 20px;
  align-items: start;
  padding: 8px 0;
}

.meta-row dt {
  color: #8ca0b8;
  font-weight: 700;
}

.meta-row dd {
  margin: 0;
  color: #e8eef9;
  font-weight: 600;
}

.footer-note {
  margin: 20px 0 0;
  text-align: center;
  color: #7e8da3;
  font-size: 0.94rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 8, 14, 0.76);
  backdrop-filter: blur(6px);
}

.modal-backdrop.hidden {
  display: none;
}

.modal {
  width: min(100%, 560px);
  background: #161c24;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-header h2 {
  margin: 0;
  font-size: 1.05rem;
}

.modal-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #b6c1d1;
  font-size: 1.7rem;
  cursor: pointer;
}

.modal-content {
  padding: 24px 22px 26px;
}

.instruction-step + .instruction-step {
  margin-top: 22px;
}

.instruction-step h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.instruction-step p {
  margin: 6px 0;
  color: #aab7c9;
  line-height: 1.6;
}

.inline-password {
  padding: 2px 8px;
  border-radius: 8px;
  color: #8dc1ff;
  background: rgba(84, 146, 240, 0.12);
  border: 1px solid rgba(84, 146, 240, 0.28);
}

@media (max-width: 640px) {
  .panel-header,
  .panel-body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .meta-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .password-value {
    font-size: 1.5rem;
  }

  .button {
    width: 100%;
  }
}
