/* =============================================
   BUTTONS
   ============================================= */
.btn-primary {
  background: var(--red); color: var(--white);
  padding: 14px 26px;
  font-family: var(--font-slogan);
  font-size: 14px; font-weight: 700;
  letter-spacing: 0;
  border: none; border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  transition: background var(--t-fast), transform var(--t-fast);
  text-decoration: none;
}
.btn-primary:hover { background: var(--red-deep); transform: scale(1.02); }
.btn-primary::after { content: "\2192"; font-size: 16px; transition: transform var(--t-fast); }
.btn-primary:hover::after { transform: translateX(2px); }

.btn-ghost {
  background: transparent; color: var(--ink-50);
  padding: 13px 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 500;
  border: 0.5px solid var(--ink-20); border-radius: var(--radius-pill);
  cursor: pointer;
  transition: color var(--t-fast), border-color var(--t-fast);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-ghost:hover { color: var(--ink); border-color: var(--ink-50); }

.btn-gold {
  background: var(--gold); color: var(--ink);
  padding: 14px 26px;
  font-family: var(--font-slogan);
  font-size: 14px; font-weight: 700;
  border: none; border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  transition: background var(--t-fast), transform var(--t-fast);
}
.btn-gold:hover { background: #ffd43a; transform: scale(1.02); }

.link-btn {
  background: none; border: none;
  color: var(--ink-50);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 500;
  cursor: pointer; padding: 4px 2px;
  transition: color var(--t-fast);
}
.link-btn:hover { color: var(--ink); }

.btn-full { width: 100%; }

/* =============================================
   PROGRESS BAR (3px, red fill, ink-08 track)
   ============================================= */
.progress-wrap { flex: 1; max-width: 400px; margin: 0 20px; }
.progress-bar {
  height: 3px;
  background: var(--ink-08);
  position: relative; overflow: hidden;
  border-radius: var(--radius-pill);
}
.progress-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--red);
  border-radius: var(--radius-pill);
  transition: width 0.5s var(--ease);
}
.progress-label {
  margin-bottom: 6px;
  display: flex; justify-content: space-between;
  color: var(--ink-50);
}

/* Gradient variant (used for hero mini-cards, theme bars) */
.progress-bar--gradient .progress-fill {
  background: var(--rn-gradient);
}

/* =============================================
   LEGACY MODAL (kept for compatibility, not styled for new design)
   ============================================= */
.modal {
  position: fixed; inset: 0; background: var(--cream);
  z-index: 100; display: none; flex-direction: column; overflow-y: auto;
}
.modal.open { display: flex; }
.modal-top {
  position: sticky; top: 0; background: var(--cream);
  color: var(--ink); z-index: 10;
  border-bottom: 0.5px solid var(--ink-08);
}
.modal-top-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 28px;
  font-family: 'DM Mono', monospace;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
}

/* Close buttons */
.close-btn {
  background: transparent;
  border: 0.5px solid var(--ink-20);
  color: var(--ink);
  padding: 6px 12px;
  font-family: 'DM Mono', monospace;
  font-size: 11px; letter-spacing: 0.12em;
  cursor: pointer; text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: border-color var(--t-fast);
}
.close-btn:hover { border-color: var(--ink-50); }

/* =============================================
   TOAST
   ============================================= */
.toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(30px) scale(0.96);
  background: var(--white);
  color: var(--ink);
  padding: 14px 22px;
  border: 0.5px solid var(--ink-08);
  border-left: 2px solid var(--red);
  border-radius: var(--radius-md);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; line-height: 1.45;
  max-width: min(480px, calc(100vw - 40px));
  text-align: left;
  z-index: 200;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  opacity: 0; pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0) scale(1); opacity: 1; pointer-events: auto; }

/* =============================================
   OVERLAYS (About, Login, Profile)
   ============================================= */
.overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 10, 20, 0.5);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
  transition: opacity 0.2s var(--ease);
  opacity: 0; pointer-events: none;
}
.overlay.open { display: flex; opacity: 1; pointer-events: auto; }
.overlay-card {
  background: var(--white); color: var(--ink);
  max-width: 440px; width: 100%;
  padding: 36px 32px; position: relative;
  border: 0.5px solid var(--ink-08);
  border-radius: var(--radius-lg);
  transform: translateY(12px) scale(0.97);
  transition: transform 0.25s var(--ease-out);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}
.overlay.open .overlay-card { transform: none; }
.overlay-card--wide { max-width: 640px; }
.overlay-close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: none;
  font-size: 26px; color: var(--ink-50);
  cursor: pointer; line-height: 1; padding: 4px 8px;
  transition: color var(--t-fast);
}
.overlay-close:hover { color: var(--red); }
.overlay-card h3 {
  font-family: var(--font-display);
  font-weight: 700; font-size: 26px; line-height: 1.1;
  letter-spacing: -0.02em; color: var(--ink);
  margin-bottom: 18px;
}

/* About overlay */
.about-content .about-kicker {
  font-family: var(--font-label);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red); margin-bottom: 16px;
}
.about-content h2 {
  font-family: var(--font-display);
  font-weight: 800; font-size: clamp(26px, 4vw, 38px);
  line-height: 1.05; letter-spacing: -0.025em;
  color: var(--ink); margin-bottom: 20px;
}
.about-content p {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px; line-height: 1.65;
  color: var(--ink-60); margin-bottom: 14px; max-width: 56ch;
}
.about-content p strong { color: var(--ink); font-weight: 600; }
.about-tagline {
  font-family: var(--font-display); font-weight: 700;
  font-size: 20px; letter-spacing: -0.02em;
  color: var(--red); margin: 24px 0;
  padding-left: 14px; border-left: 2px solid var(--red);
}

/* =============================================
   PROFILE
   ============================================= */
.profile-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--red); border: 0.5px solid var(--ink-12);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--t-fast), border-color var(--t-fast);
  padding: 0;
}
.profile-btn:hover { border-color: var(--ink); transform: scale(1.05); }
.profile-initials {
  font-family: 'DM Mono', monospace;
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--white); text-transform: uppercase; line-height: 1;
}
.profile-header {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 22px; padding-bottom: 18px;
  border-bottom: 0.5px solid var(--ink-08);
}
.profile-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-family: 'DM Mono', monospace;
  font-size: 17px; font-weight: 700; color: var(--white);
  text-transform: uppercase; flex-shrink: 0;
}
.profile-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 22px; color: var(--ink);
  letter-spacing: -0.015em;
}
.profile-info { margin-bottom: 24px; }
.profile-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 10px 0; border-bottom: 0.5px dashed var(--ink-08);
  gap: 18px;
}
.profile-row:last-child { border-bottom: none; }
.profile-row-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-50); flex-shrink: 0;
}
.profile-row-value {
  font-family: 'DM Sans', sans-serif; font-size: 14px;
  color: var(--ink); text-align: right; word-break: break-word;
}
.profile-actions { margin-top: 8px; }

/* =============================================
   Q-SLIDE legacy form elements (safe defaults)
   ============================================= */
.q-textarea {
  width: 100%; min-height: 180px;
  background: var(--white);
  border: 0.5px solid var(--ink-08);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic; font-weight: 400;
  font-size: 17px; line-height: 1.6;
  color: var(--ink);
  caret-color: var(--red);
  resize: vertical;
  transition: border-color var(--t-fast);
}
.q-textarea:focus { outline: none; border-color: var(--red-30); }
.q-textarea::placeholder { color: var(--ink-40); font-style: italic; }

.q-controls, .q-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 20px; gap: 12px; flex-wrap: wrap;
}
.char-count {
  font-family: 'DM Mono', monospace;
  font-size: 11px; letter-spacing: 0.08em;
  color: var(--ink-50);
}

/* Section dividers */
.section-divider { width: 100%; display: block; margin: 0; }
