:root {
  --rm-purple: #6c3ef4;
  --rm-purple-dark: #5328d1;
  --rm-purple-light: #ede9ff;
  --rm-accent: #f5a623;
  --rm-dark: #0f0f1a;
  --rm-text: #1a1a2e;
  --rm-muted: #64748b;
  --rm-border: #e2e8f0;
  --rm-surface: #f8f7ff;
  --rm-white: #ffffff;
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--rm-text);
  background: var(--rm-white);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Navbar ── */
.rm-navbar {
  background: var(--rm-dark);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0.75rem 0;
}
.rm-brand {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff !important;
}
.rm-brand-icon { color: var(--rm-accent); }
.rm-user-pill { color: rgba(255,255,255,0.75) !important; font-size: 0.875rem; }
.rm-badge-premium { background: var(--rm-accent); color: #000; font-weight: 600; }
.rm-badge-free { background: rgba(0,0,0,0.08); color: #1f1f1f; font-weight: 600; }

.rm-btn-primary {
  background: var(--rm-purple);
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  transition: all 0.2s;
}
.rm-btn-primary:hover { background: var(--rm-purple-dark); color: #fff; transform: translateY(-1px); }

.rm-btn-outline-light {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  padding: 0.4rem 1rem;
  border-radius: 8px;
  transition: all 0.2s;
}
.rm-btn-outline-light:hover { border-color: #fff; color: #fff; }

/* ── Alerts ── */
.rm-alert { border-radius: 10px; border: none; }

/* ── Hero Landing ── */
.rm-hero {
  background: linear-gradient(135deg, var(--rm-dark) 0%, #1e0a4e 50%, #0a0a1e 100%);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.rm-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(108,62,244,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.rm-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245,166,35,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.rm-hero-eyebrow {
  display: inline-block;
  background: rgba(108,62,244,0.25);
  border: 1px solid rgba(108,62,244,0.4);
  color: #c4b5fd;
  padding: 0.35rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.rm-hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 1.25rem;
}
.rm-hero-title .accent { color: var(--rm-accent); }
.rm-hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.65);
  max-width: 520px;
  line-height: 1.65;
  margin-bottom: 2.5rem;
}
.rm-hero-cta {
  background: var(--rm-purple);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.85rem 2rem;
  border-radius: 10px;
  border: none;
  text-decoration: none;
  display: inline-block;
  transition: all 0.25s;
  box-shadow: 0 4px 20px rgba(108,62,244,0.4);
}
.rm-hero-cta:hover { background: var(--rm-purple-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(108,62,244,0.5); }
.rm-hero-secondary {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  text-decoration: none;
  margin-left: 1.25rem;
  transition: color 0.2s;
}
.rm-hero-secondary:hover { color: #fff; }
.rm-hero-proof {
  margin-top: 1.5rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
}
.rm-hero-proof span { color: rgba(255,255,255,0.6); font-weight: 600; }

/* Hero resume mockup */
.rm-hero-preview {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  position: relative;
  max-width: 380px;
  margin: 0 auto;
}
.rm-preview-badge {
  position: absolute;
  top: -12px;
  right: 16px;
  background: var(--rm-accent);
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
}
.rm-preview-name { font-weight: 800; font-size: 1.1rem; color: #0f0f1a; border-bottom: 2px solid #0f0f1a; padding-bottom: 6px; margin-bottom: 8px; }
.rm-preview-contact { font-size: 0.7rem; color: #666; margin-bottom: 10px; }
.rm-preview-section { margin-bottom: 10px; }
.rm-preview-section-title { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid #ddd; padding-bottom: 3px; margin-bottom: 5px; color: #333; }
.rm-preview-line { height: 6px; background: #e8e8e8; border-radius: 3px; margin-bottom: 4px; }
.rm-preview-line.w-full { width: 100%; }
.rm-preview-line.w-3q { width: 75%; }
.rm-preview-line.w-half { width: 50%; }
.rm-preview-skill { display: inline-block; background: #f0f0f0; border: 1px solid #ddd; padding: 2px 7px; border-radius: 3px; font-size: 0.6rem; margin: 2px; }

/* ── Features section ── */
.rm-features { padding: 80px 0; }
.rm-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--rm-purple);
  margin-bottom: 0.5rem;
}
.rm-section-title { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.5px; }
.rm-feature-card {
  background: var(--rm-surface);
  border: 1px solid var(--rm-border);
  border-radius: 14px;
  padding: 2rem;
  height: 100%;
  transition: all 0.25s;
}
.rm-feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(108,62,244,0.1); border-color: rgba(108,62,244,0.3); }
.rm-feature-icon {
  width: 52px;
  height: 52px;
  background: var(--rm-purple-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--rm-purple);
  margin-bottom: 1rem;
}
.rm-feature-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.rm-feature-text { color: var(--rm-muted); font-size: 0.9rem; line-height: 1.6; }

/* ── Steps ── */
.rm-steps { background: var(--rm-surface); padding: 80px 0; }
.rm-step-num {
  width: 40px; height: 40px;
  background: var(--rm-purple);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem;
  flex-shrink: 0;
}
.rm-step-title { font-weight: 700; font-size: 1.05rem; }
.rm-step-text { color: var(--rm-muted); font-size: 0.9rem; }

/* ── CTA section ── */
.rm-cta-section {
  background: linear-gradient(135deg, var(--rm-dark) 0%, #1e0a4e 100%);
  padding: 80px 0;
  text-align: center;
  color: #fff;
}

/* ── Footer ── */
.rm-footer {
  background: var(--rm-dark);
  color: rgba(255,255,255,0.4);
  padding: 1.5rem 0;
  font-size: 0.85rem;
  margin-top: 2rem;
}
.rm-brand-sm { color: rgba(255,255,255,0.7); font-weight: 700; }

/* ── Auth pages ── */
.rm-auth-card {
  background: #fff;
  border: 1px solid var(--rm-border);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  max-width: 460px;
  margin: 3rem auto;
}
.rm-auth-title { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.5px; }
.rm-form-label { font-size: 0.875rem; font-weight: 600; color: var(--rm-text); }
.rm-form-control {
  border: 1.5px solid var(--rm-border);
  border-radius: 9px;
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.rm-form-control:focus { border-color: var(--rm-purple); box-shadow: 0 0 0 3px rgba(108,62,244,0.12); outline: none; }
.rm-btn-submit {
  background: var(--rm-purple);
  color: #fff;
  font-weight: 700;
  padding: 0.7rem 1.5rem;
  border-radius: 9px;
  border: none;
  width: 100%;
  font-size: 1rem;
  transition: all 0.2s;
  cursor: pointer;
}
.rm-btn-submit:hover { background: var(--rm-purple-dark); transform: translateY(-1px); color: #fff; }

/* ── Profile page ── */
.rm-page-header { padding: 2rem 0 1.5rem; border-bottom: 1px solid var(--rm-border); margin-bottom: 2rem; }
.rm-page-title { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.5px; }
.rm-section-card {
  background: #fff;
  border: 1px solid var(--rm-border);
  border-radius: 14px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}
.rm-section-card-title { font-size: 1rem; font-weight: 700; color: var(--rm-text); margin-bottom: 1.25rem; display: flex; align-items: center; gap: 8px; }
.rm-section-card-title i { color: var(--rm-purple); }
.rm-exp-card {
  background: var(--rm-surface);
  border: 1px solid var(--rm-border);
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  position: relative;
}
.rm-remove-btn {
  position: absolute; top: 0.75rem; right: 0.75rem;
  background: none; border: none;
  color: #dc3545; cursor: pointer; font-size: 1.1rem;
  opacity: 0.6; transition: opacity 0.2s;
}
.rm-remove-btn:hover { opacity: 1; }
.rm-add-btn {
  background: var(--rm-purple-light);
  color: var(--rm-purple);
  border: 1.5px dashed var(--rm-purple);
  border-radius: 9px;
  padding: 0.6rem 1.25rem;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  text-align: center;
}
.rm-add-btn:hover { background: var(--rm-purple); color: #fff; }

/* Skills tags */
.rm-skill-tag-display { background: var(--rm-purple-light); color: var(--rm-purple); border-radius: 6px; padding: 3px 10px; font-size: 0.8rem; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; margin: 2px; }

/* ── Wizard ── */
.rm-wizard-header { background: var(--rm-surface); border-bottom: 1px solid var(--rm-border); padding: 1.5rem 0; margin-bottom: 2rem; }
.rm-wizard-steps { display: flex; gap: 0; align-items: center; flex-wrap: wrap; gap: 4px; }
.rm-wizard-step { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 600; color: var(--rm-muted); }
.rm-wizard-step.active { color: var(--rm-purple); }
.rm-wizard-step.done { color: #22c55e; }
.rm-step-circle {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700;
  border: 2px solid currentColor;
  flex-shrink: 0;
}
.rm-wizard-step.active .rm-step-circle { background: var(--rm-purple); color: #fff; border-color: var(--rm-purple); }
.rm-wizard-step.done .rm-step-circle { background: #22c55e; color: #fff; border-color: #22c55e; }
.rm-step-sep { width: 28px; height: 2px; background: var(--rm-border); margin: 0 4px; flex-shrink: 0; }
.rm-wizard-card { max-width: 720px; margin: 0 auto; }

/* Generation limit badge */
.rm-gen-limit { background: #fff3cd; border: 1px solid #ffc107; border-radius: 8px; padding: 0.65rem 1rem; font-size: 0.85rem; color: #856404; }
.rm-gen-limit.danger { background: #f8d7da; border-color: #f5c6cb; color: #842029; }

/* ── Generate button ── */
.rm-generate-btn {
  background: linear-gradient(135deg, var(--rm-purple), var(--rm-purple-dark));
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0.85rem 2.5rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 16px rgba(108,62,244,0.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.rm-generate-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(108,62,244,0.5); color: #fff; }
.rm-generate-btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

/* ── Preview ── */
.rm-preview-frame {
  background: #fff;
  border: 1px solid var(--rm-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.rm-preview-toolbar {
  background: var(--rm-surface);
  border-bottom: 1px solid var(--rm-border);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.rm-premium-badge { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 6px; }
.rm-free-badge { background: var(--rm-purple-light); color: var(--rm-purple); font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 6px; }

/* ── History ── */
.rm-history-card {
  background: #fff;
  border: 1px solid var(--rm-border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.rm-history-card:hover { box-shadow: 0 4px 16px rgba(108,62,244,0.1); border-color: rgba(108,62,244,0.2); }
.rm-history-title { font-weight: 700; font-size: 1rem; margin-bottom: 0.2rem; }
.rm-history-meta { color: var(--rm-muted); font-size: 0.8rem; }
.rm-history-summary { color: var(--rm-text); font-size: 0.875rem; margin-top: 0.25rem; }

/* ── Misc ── */
.rm-empty-state { text-align: center; padding: 4rem 1rem; color: var(--rm-muted); }
.rm-empty-icon { font-size: 3.5rem; margin-bottom: 1rem; opacity: 0.4; }

@media (max-width: 576px) {
  .rm-hero { padding: 60px 0 50px; }
  .rm-hero-preview { display: none; }
  .rm-step-sep { display: none; }
}
