:root {
  --primary: #2A65B8;
  --primary-light: #7AA2E3;
  --primary-dark: #1a4a8a;
  --primary-glow: rgba(42, 101, 184, 0.35);
  --accent: #7AA2E3;
  --bg-dark: #000000;
  --bg-card: rgba(0, 0, 0, 0.82);
  --bg-elevated: rgba(4, 4, 8, 0.9);
  --text: #e8edf5;
  --text-muted: #7a8aa8;
  --text-dim: #4a5568;
  --border: rgba(42, 101, 184, 0.18);
  --border-light: rgba(255, 255, 255, 0.05);
  --success: #22c55e;
  --error: #ef4444;
  --warning: #f59e0b;
  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 8px 40px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 50px var(--primary-glow);
  --nav-height: 52px;
  --transition: 0.25s ease;
}

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

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

/* ── Starfield ── */
.stars-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 45% at 50% -8%, rgba(42, 101, 184, 0.035) 0%, transparent 55%),
    radial-gradient(ellipse 40% 30% at 92% 72%, rgba(42, 101, 184, 0.02) 0%, transparent 50%),
    #000;
  pointer-events: none;
}

.stars-bg::before {
  content: '';
  position: absolute;
  inset: -8%;
  background: radial-gradient(ellipse 45% 35% at 28% 38%, rgba(42, 101, 184, 0.03) 0%, transparent 72%);
  animation: nebula-drift 32s ease-in-out infinite alternate;
}

.stars-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(0.5px 0.5px at 8% 12%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 48% 18%, rgba(122,162,227,0.35) 0%, transparent 100%),
    radial-gradient(0.5px 0.5px at 88% 68%, rgba(255,255,255,0.2) 0%, transparent 100%);
  animation: twinkle 14s ease-in-out infinite alternate;
  opacity: 0.7;
}

@keyframes twinkle { 0% { opacity: 0.55; } 100% { opacity: 0.78; } }
@keyframes nebula-drift { 0% { transform: translate(0,0); } 100% { transform: translate(-1%,1.2%); } }

@media (prefers-reduced-motion: reduce) {
  .stars-bg::before, .stars-bg::after, .wizard-step { animation: none !important; transition: none !important; }
}

.surge { color: #fff; }
.studio { color: var(--primary-light); }

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 20px;
  background: linear-gradient(180deg, rgba(0,0,0,0.65) 0%, transparent 100%);
}

.nav-pill {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--nav-height);
  padding: 6px 16px 6px 12px;
  background: rgba(6, 6, 8, 0.9);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 100px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
}

.nav-logo { display: flex; width: 36px; height: 36px; align-items: center; justify-content: center; }
.nav-logo img { width: 22px; height: 22px; }
.nav-brand { font-size: 0.85rem; font-weight: 700; }
.nav-spacer { flex: 1; }

.badge {
  padding: 5px 12px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-light);
  background: rgba(42, 101, 184, 0.12);
  border: 1px solid rgba(42, 101, 184, 0.25);
  border-radius: 100px;
}

.badge--success {
  color: var(--success);
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.25);
}

/* ── Layout ── */
.main {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 20px 64px;
}

.main--landing {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 100px);
  max-width: 640px;
}

.main--gate {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
  padding: 16px 20px 48px;
}

.panel-gate {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.nav--gate {
  background: transparent;
}

.gate-page {
  width: 100%;
  animation: page-in 0.4s ease;
}

.gate-header {
  text-align: center;
  margin-bottom: 24px;
}

.gate-header .eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 14px;
}

.gate-header h1 {
  font-size: clamp(1.6rem, 4.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 10px;
}

.gate-lead {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 360px;
  margin: 0 auto;
}

.gate-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.22);
  color: #fca5a5;
  font-size: 0.84rem;
  line-height: 1.5;
  text-align: left;
}

.gate-alert[hidden] { display: none !important; }

.gate-alert svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.gate-alert p { margin: 0; }

.gate-card {
  padding: 24px;
  text-align: center;
}

.gate-card .btn-discord {
  width: 100%;
}

.panel-gate[hidden] { display: none !important; }

.landing {
  text-align: center;
}

.landing .eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 14px;
}

.landing h1 {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  line-height: 1.15;
}

.landing p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.page-header {
  text-align: center;
  margin-bottom: 28px;
}

.page-header h1 {
  font-size: clamp(1.4rem, 4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.page-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ── Stepper ── */
.stepper {
  margin-bottom: 28px;
}

.stepper-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  margin-bottom: 16px;
  overflow: hidden;
}

.stepper-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary-light));
  border-radius: 100px;
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.stepper-steps {
  display: flex;
  justify-content: space-between;
  list-style: none;
  gap: 4px;
}

.stepper-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.stepper-dot {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  transition: all 0.35s ease;
}

.stepper-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color 0.35s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.stepper-step.active .stepper-dot {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 16px var(--primary-glow);
}

.stepper-step.active .stepper-label { color: var(--primary-light); }

.stepper-step.done .stepper-dot {
  color: var(--primary-light);
  background: rgba(42, 101, 184, 0.15);
  border-color: rgba(42, 101, 184, 0.35);
}

.stepper-step.done .stepper-label { color: var(--text-muted); }

@media (max-width: 480px) {
  .stepper-label { display: none; }
  .stepper-dot { width: 24px; height: 24px; font-size: 0.65rem; }
}

/* ── Page card ── */
.page-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: page-in 0.35s ease;
}

.page-card--success {
  text-align: center;
  align-items: center;
}

/* ── Success page ── */
.main--success {
  max-width: 520px;
  padding-top: 16px;
  padding-bottom: 64px;
}

.success-page {
  animation: page-in 0.45s ease;
}

.success-hero {
  text-align: center;
  margin-bottom: 32px;
}

.success-ring {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
}

.success-ring::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.2) 0%, transparent 70%);
  animation: success-pulse 3s ease-in-out infinite;
}

.success-icon {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(34, 197, 94, 0.18), rgba(34, 197, 94, 0.06));
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 50%;
  color: var(--success);
  box-shadow: 0 0 40px rgba(34, 197, 94, 0.12);
}

.success-icon svg { width: 36px; height: 36px; stroke-width: 2.5px; }

@keyframes success-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.success-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--success);
  margin-bottom: 10px;
}

.success-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.success-subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-light);
}

.success-credentials {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.success-recovery {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid rgba(234, 179, 8, 0.35);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.success-recovery svg {
  width: 22px;
  height: 22px;
  color: #eab308;
}

.success-recovery p { margin: 0; }

.cred-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  text-align: left;
}

.cred-row:hover {
  border-color: rgba(42, 101, 184, 0.35);
  background: rgba(6, 6, 10, 0.95);
  box-shadow: 0 4px 24px rgba(42, 101, 184, 0.08);
}

.cred-row-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(42, 101, 184, 0.1);
  border-radius: 10px;
  color: var(--primary-light);
}

.cred-row-icon svg { width: 18px; height: 18px; }

.cred-row-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cred-row-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.cred-row-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  font-family: ui-monospace, 'Cascadia Code', monospace;
  word-break: break-all;
}

.cred-row-value--key {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--primary-light);
}

.cred-row-hint {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.cred-row-copy {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}

.cred-row-copy:hover {
  color: var(--primary-light);
  border-color: var(--border);
  background: rgba(42, 101, 184, 0.1);
}

.cred-row-copy svg { width: 15px; height: 15px; }

.success-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 28px;
  background: rgba(42, 101, 184, 0.06);
  border: 1px solid rgba(42, 101, 184, 0.15);
  border-radius: var(--radius);
  text-align: left;
}

.success-notice svg {
  width: 18px;
  height: 18px;
  color: var(--primary-light);
  flex-shrink: 0;
  margin-top: 1px;
}

.success-notice p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.success-script {
  margin-bottom: 20px;
  padding: 18px 20px;
  background: rgba(6, 6, 10, 0.95);
  border: 1px solid rgba(42, 101, 184, 0.28);
  border-radius: var(--radius);
  text-align: left;
}

.success-script-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.success-script-head h2 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.success-script-head p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.success-script pre {
  margin: 0;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--border-light);
  font-family: ui-monospace, 'Cascadia Code', monospace;
  font-size: 0.72rem;
  line-height: 1.55;
  color: #c8d6f0;
  overflow-x: auto;
  white-space: pre;
}

.success-actions {
  display: flex;
  gap: 12px;
}

.success-actions .btn-outline {
  flex-shrink: 0;
}

.success-actions .btn-primary {
  flex: 1;
  justify-content: center;
}

@media (max-width: 480px) {
  .success-actions {
    flex-direction: column-reverse;
  }
  .success-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .success-ring::before { animation: none; }
}

.page-card--success h1 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.success-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.success-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 197, 94, 0.12);
  border-radius: 50%;
  color: var(--success);
  margin-bottom: 16px;
}

.success-icon svg { width: 28px; height: 28px; }

.page-card--success .recap {
  width: 100%;
  text-align: left;
  margin: 8px 0 4px;
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
  .page-card { padding: 22px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .page-card { animation: none; }
}

/* ── Fields ── */
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field label {
  font-size: 0.82rem;
  font-weight: 600;
}

.field label .required { color: var(--primary-light); }

.optional-tag {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: 6px;
}

.field-hint {
  font-size: 0.74rem;
  color: var(--text-dim);
  line-height: 1.4;
}

.field-hint code {
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.field input,
.field select {
  width: 100%;
  padding: 13px 16px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

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

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(42, 101, 184, 0.12);
}

.field input.is-invalid { border-color: var(--error); }
.field input.is-valid { border-color: rgba(34, 197, 94, 0.45); }

.field-error {
  font-size: 0.74rem;
  color: var(--error);
  min-height: 1em;
}

.field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5L6 8L9.5 4.5' fill='none' stroke='%237a8aa8' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 480px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* ── Slug preview ── */
.slug-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(42, 101, 184, 0.07);
  border: 1px solid rgba(42, 101, 184, 0.2);
  border-radius: var(--radius);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: ui-monospace, monospace;
}

.slug-preview svg { width: 14px; height: 14px; color: var(--primary-light); flex-shrink: 0; }
.slug-preview strong { color: var(--primary-light); font-weight: 600; }

/* ── Key card ── */
.key-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: rgba(42, 101, 184, 0.06);
  border: 1px solid rgba(42, 101, 184, 0.2);
  border-radius: var(--radius);
}

.key-card-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(42, 101, 184, 0.15);
  border-radius: 12px;
  color: var(--primary-light);
}

.key-card-icon svg { width: 20px; height: 20px; }

.key-card-body { flex: 1; min-width: 0; }

.key-card-body label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.key-card-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.4;
}

.key-card-body .btn { width: 100%; }

.key-card-body input {
  width: 100%;
  padding: 13px 16px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.key-card-body input.mono {
  font-family: ui-monospace, 'Cascadia Code', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.key-card-body input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(42, 101, 184, 0.12);
}

.info-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(42, 101, 184, 0.06);
  border: 1px solid rgba(42, 101, 184, 0.18);
  border-radius: var(--radius);
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.info-box svg {
  width: 16px;
  height: 16px;
  color: var(--primary-light);
  flex-shrink: 0;
  margin-top: 2px;
}

.info-box a {
  color: var(--primary-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.info-box a:hover { color: #fff; }

/* ── Input group ── */
.input-group {
  display: flex;
  gap: 8px;
}

.input-group input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: ui-monospace, monospace;
  font-size: 0.78rem;
}

.input-group input:focus {
  outline: none;
  border-color: var(--primary);
}

.input-group .btn svg { width: 14px; height: 14px; }

/* ── Chips ── */
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.chip input { position: absolute; opacity: 0; pointer-events: none; }

.chip span {
  display: inline-block;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-light);
  border-radius: 100px;
  transition: all var(--transition);
}

.chip:hover span {
  border-color: var(--border);
  color: var(--text);
}

.chip input:checked + span {
  color: #fff;
  background: rgba(42, 101, 184, 0.25);
  border-color: rgba(42, 101, 184, 0.5);
}

/* ── Recap ── */
.recap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.recap-block {
  padding: 16px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
}

.recap-block h3 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 12px;
}

.recap-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 7px 0;
  font-size: 0.84rem;
}

.recap-row:not(:last-child) {
  border-bottom: 1px solid var(--border-light);
}

.recap-label { color: var(--text-dim); flex-shrink: 0; }

.recap-value {
  color: var(--text);
  text-align: right;
  word-break: break-word;
}

.recap-value--mono {
  font-family: ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--primary-light);
}

/* ── Page nav ── */
.page-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.page-nav--center {
  justify-content: center;
  flex-wrap: wrap;
}

.page-nav-spacer { flex: 1; }

.page-nav .btn svg { width: 16px; height: 16px; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 100px;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

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

.btn-primary:hover:not(:disabled) {
  background: var(--primary-dark);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

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

.btn-outline:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--text);
  background: rgba(42, 101, 184, 0.08);
}

.btn-discord {
  background: #5865f2;
  color: #fff;
  border-color: #5865f2;
  text-decoration: none;
}

.btn-discord:hover:not(:disabled) {
  background: #4752c4;
  border-color: #4752c4;
  color: #fff;
  box-shadow: 0 4px 20px rgba(88, 101, 242, 0.35);
  transform: translateY(-1px);
}

.btn-sm { padding: 9px 14px; font-size: 0.78rem; }

.btn-lg {
  padding: 14px 32px;
  font-size: 0.95rem;
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: translateY(80px);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.toast.visible { transform: translateY(0); opacity: 1; }
.toast--success { border-color: rgba(34, 197, 94, 0.35); }
.toast--error { border-color: rgba(239, 68, 68, 0.35); }
.toast-icon { width: 18px; height: 18px; flex-shrink: 0; }
.toast--success .toast-icon { color: var(--success); }
.toast--error .toast-icon { color: var(--error); }
.toast-message { font-size: 0.85rem; font-weight: 500; }

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.visible { opacity: 1; visibility: visible; }

.modal {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-glow);
  transform: scale(0.96) translateY(8px);
  transition: transform 0.3s ease;
}

.modal-overlay.visible .modal { transform: scale(1) translateY(0); }

.modal-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 197, 94, 0.12);
  border-radius: 50%;
  color: var(--success);
  margin-bottom: 16px;
}

.modal-icon svg { width: 22px; height: 22px; }

.modal h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; }
.modal > p { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 18px; }

.modal-details {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 20px;
}

.modal-detail {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  font-size: 0.82rem;
}

.modal-detail:not(:last-child) { border-bottom: 1px solid var(--border-light); }
.modal-detail span:first-child { color: var(--text-dim); }
.modal-detail code {
  font-family: ui-monospace, monospace;
  color: var(--primary-light);
  font-size: 0.78rem;
  word-break: break-all;
  text-align: right;
}

.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }
