/* ================================================================
   JobSeek — Design System (Vanilla CSS)
   Production-ready, pixel-perfect
   ================================================================ */

/* ============ Design Tokens ============ */
:root {
  --pink: #E91E63;
  --pink-light: #FCE4EC;
  --pink-hover: #C2185B;
  --black: #111111;
  --dark: #1a1a1a;
  --grey-900: #222222;
  --grey-700: #555555;
  --grey-500: #888888;
  --grey-400: #aaaaaa;
  --grey-300: #cccccc;
  --grey-200: #e5e5e5;
  --grey-100: #f5f5f5;
  --grey-50: #fafafa;
  --white: #ffffff;
  --bg: #f8f9fc;
  --card-bg: #ffffff;
  --border: #e8e8e8;
  --success: #22c55e;
  --shadow-soft: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-card: 0 2px 8px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-elevated: 0 8px 30px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Playfair Display', 'Georgia', serif;
  --transition: 0.2s ease;
  --max-width: 1200px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--grey-300);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--grey-400);
}

/* ============ Reset ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--black);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

.is-hidden { display: none !important; }

/* Subtle edge glow */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at top left, rgba(100,120,255,0.10), transparent 50%),
    radial-gradient(ellipse at top right, rgba(160,100,255,0.06), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; }
ul, ol { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ============ Header ============ */
.header {
  position: sticky;
  top: var(--header-top, 0);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.header__left {
  display: flex;
  align-items: center;
  gap: 40px;
}

.header__logo {
  font-family: 'Brush Script MT', cursive, var(--font-serif);
  font-style: italic;
  font-size: 32px;
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.header__nav {
  display: none;
}

.header__nav ul {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--grey-700);
  transition: color var(--transition);
  padding: 8px 4px;
}

.nav-link:hover {
  color: var(--black);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition);
  white-space: nowrap;
}

.header__btn--ghost {
  color: var(--black);
}

.header__btn--ghost:hover {
  background: var(--grey-50);
}

.header__btn--primary {
  background: var(--black);
  color: var(--white);
  padding: 10px 24px;
  display: none; /* Mobile first */
}

.header__btn--primary:hover {
  background: var(--grey-900);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.header__btn--desktop {
  display: none;
}

@media (min-width: 900px) {
  .header__nav {
    display: flex;
  }
  .header__btn--primary,
  .header__btn--desktop {
    display: inline-flex;
  }
}


.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

@media (min-width: 900px) {
  .hamburger {
    display: none;
  }
}

.hamburger__line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: all 0.3s ease;
}


/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0; right: 0; bottom: 0;
  background: var(--white);
  z-index: 99;
  padding: 24px;
  animation: fadeIn 0.2s ease;
}

.mobile-menu.active { display: block; }

.mobile-menu a {
  display: block;
  padding: 16px 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--black);
  border-bottom: 1px solid var(--grey-200);
  transition: color var(--transition);
}

.mobile-menu a:hover { color: var(--pink); }

/* ============ Auth ============ */
.auth-page {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  position: relative;
  z-index: 1;
}

.auth-card {
  width: min(100%, 440px);
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-elevated);
}

.auth-card__brand {
  display: inline-block;
  margin-bottom: 28px;
  font-family: 'Brush Script MT', cursive, var(--font-serif);
  font-style: italic;
  font-size: 32px;
  font-weight: 700;
}

.auth-card__title {
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: 0;
}

.auth-card__subtitle {
  margin-top: 10px;
  color: var(--grey-700);
}

.auth-card__messages,
.auth-form__errors {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--grey-50);
  color: var(--grey-900);
  font-size: 14px;
}

.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.auth-form__field {
  display: grid;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
}

.auth-form__field input {
  width: 100%;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  padding: 12px 14px;
  font-size: 16px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.auth-form__field input:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}

.auth-form__field small {
  color: var(--grey-500);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.auth-form__error {
  color: var(--pink-hover) !important;
}

.auth-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 4px;
  border-radius: var(--radius-full);
  background: var(--black);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  transition: transform var(--transition), background var(--transition);
}

.auth-form__submit:hover {
  background: var(--pink);
  transform: translateY(-1px);
}

.auth-card__switch {
  margin-top: 22px;
  color: var(--grey-700);
  font-size: 14px;
  text-align: center;
}

.auth-card__switch a:hover {
  color: var(--pink);
}

/* Social Login */
.auth-card__divider {
  margin: 24px 0;
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--grey-400);
  font-size: 13px;
  font-weight: 600;
}

.auth-card__divider::before,
.auth-card__divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--grey-200);
}

.auth-card__divider span {
  padding: 0 12px;
}

.auth-form__google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  border: 1px solid #dadce0;
  border-radius: 4px;
  background: var(--white);
  color: #3c4043;
  font-family: 'Roboto', 'Google Sans', var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  transition: background-color .218s, border-color .218s, box-shadow .218s;
  box-shadow: none;
  margin-bottom: 16px;
}

.auth-form__google:hover {
  background-color: #f8f9fa;
  border-color: #d2e3fc;
  box-shadow: 0 1px 2px 0 rgba(60,64,67,0.302), 0 1px 3px 1px rgba(60,64,67,0.149);
}

.auth-form__google:active {
  background-color: #eeeeee;
}

.simple-page {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 24px;
  position: relative;
  z-index: 1;
}

.simple-page__content {
  width: min(100%, 720px);
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-elevated);
}

.simple-page__content h1 {
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: 0;
}

.simple-page__content p {
  margin-top: 16px;
  color: var(--grey-700);
  font-size: 18px;
}

.simple-page__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 28px;
  padding: 0 22px;
  border-radius: var(--radius-full);
  background: var(--black);
  color: var(--white);
  font-weight: 700;
  transition: transform var(--transition), background var(--transition);
}

.simple-page__btn:hover {
  background: var(--pink);
  transform: translateY(-1px);
}

/* ============ Hero ============ */
.hero {
  padding: 80px 0 100px;
  position: relative;
  z-index: 1;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1300px;
  min-height: 600px;
}

.hero__content {
  position: relative;
  z-index: 2;
}

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

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  color: var(--black);
  letter-spacing: -1.5px;
}

.hero__subtitle {
  margin-top: 20px;
  font-size: 20px;
  line-height: 1.5;
  color: var(--black);
  max-width: 500px;
}

/* Category Tabs */
.hero__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.hero__tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-full);
  color: var(--black);
  background: transparent;
  transition: all var(--transition);
}

.hero__tab:hover {
  background: var(--grey-100);
}

.hero__tab.active {
  background: var(--black);
  color: var(--white);
}

.hero__tab svg { width: 16px; height: 16px; stroke-width: 2.5; }
.hero__tab .chevron { width: 14px; height: 14px; margin-left: -2px; }

/* Search Section */
.search-section {
  margin-top: 32px;
  max-width: 600px;
}

/* Popular Tags */
.popular-tags {
  margin-top: 24px;
}

.popular-tags__label {
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 12px;
  display: block;
}

.popular-tags__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.example-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--grey-500);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-full);
  background: var(--white);
  transition: all var(--transition);
}

.example-tag:hover {
  border-color: var(--black);
  color: var(--black);
}

/* Paste Toggle */
.paste-toggle {
  margin-top: 32px;
  max-width: 720px;
  transition: margin-top 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Extra spacing when search bar is expanded */
.search-section--expanded + .paste-toggle {
  margin-top: 48px;
  margin-bottom: 80px;
}

.paste-toggle__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--grey-500);
  border: 1px dashed var(--grey-300);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  background: transparent;
}

.paste-toggle__btn:hover {
  color: var(--black);
  border-color: var(--black);
  background: var(--grey-50);
}

.paste-toggle__btn svg { flex-shrink: 0; }

/* Paste Section */
.paste-section {
  margin-top: 16px;
  max-width: 720px;
}

.paste-form {
  border: 2px solid var(--grey-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  overflow: hidden;
  transition: border-color var(--transition);
}

.paste-form:focus-within { border-color: var(--black); }

.paste-textarea {
  width: 100%;
  border: none;
  outline: none;
  resize: vertical;
  padding: 20px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--black);
  background: transparent;
  min-height: 120px;
}

.paste-textarea::placeholder { color: var(--grey-400); }

.paste-form__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 12px 20px;
  border-top: 1px solid var(--grey-200);
  background: var(--grey-50);
}

.paste-form__hint {
  font-size: 12px;
  color: var(--grey-500);
}

.paste-form__submit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--black);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.paste-form__submit:hover {
  background: var(--pink);
  transform: translateY(-1px);
}

/* ============ Job Search Bar ============ */
.job-search {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 3;
  background: var(--white);
  border-radius: var(--radius-full);
  border: 2px solid var(--black);
  padding: 7px 7px 7px 23px;
  gap: 12px;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  overflow: hidden;
}

.job-search:focus-within {
  box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
  background: var(--white);
  border: 1px solid var(--grey-200);
  padding: 7px 7px 7px 23px; /* Adjust for border */
}

.job-search__input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 16px;
  color: var(--black);
  outline: none;
  min-width: 0;
  padding: 10px 0;
}

.job-search__input::placeholder { color: var(--grey-500); font-weight: 500; }

.job-search__url-mode {
  flex: 1;
  display: flex;
  align-items: center;
}

.job-search__jd-mode {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.job-search__btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #f43f5e; /* Vibrant pink */
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.15s, background-color 0.2s;
}

.job-search__btn:hover {
  transform: scale(1.05);
  background: #e11d48;
}

/* Expanded state */
.job-search--expanded {
  flex-direction: column !important;
  align-items: stretch !important;
  border-radius: 28px !important;
  padding: 24px !important;
  min-height: 180px !important;
}

.job-search--expanded .job-search__btn {
  align-self: flex-end;
  margin-top: 16px;
}

.job-search__textarea {
  width: 100%;
  border: none;
  outline: none;
  resize: none;
  font-size: 16px;
  line-height: 1.6;
  background: transparent;
  min-height: 100px;
  color: var(--black);
  padding: 0;
  margin-top: 8px;
  padding-bottom: 20px;
}

.job-search--expanded .job-search__btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  margin-top: 0;
}

/* ============ Editor Layout Refinements ============ */
.editor-panel--document {
  flex: 1;
  background: var(--grey-50);
  overflow-y: auto; /* Ensure center panel scrolls */
  display: flex;
  flex-direction: column;
  position: relative;
}

.paper-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
}

/* ============ Modal Input Modes ============ */
.modal-textarea-container {
  position: relative;
  margin-top: 12px;
}

.modal-textarea {
  width: 100%;
  min-height: 240px;
  padding: 20px;
  padding-bottom: 60px; /* Space for the button */
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}

.modal-textarea:focus {
  border-color: var(--black);
}

.modal-search__btn--abs {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 5;
}

.is-hidden {
  display: none !important;
}

/* ============ Hero Visual / Illustration ============ */
.hero__visual {
  position: relative;
  z-index: 1;
  pointer-events: none;
  width: 100%;
  height: 100%;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__image-shell {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.hero__image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  /* The generated image might be square, let's make sure it blends */
  mix-blend-mode: multiply;
}

.ai-badge {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: var(--white);
  border-radius: var(--radius-full);
  padding: 6px 16px 6px 6px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-card);
}

.ai-badge__icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #f43f5e;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-badge__text {
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
}

/* Mode toggle */
.mode-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
}

.mode-toggle__btn {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--grey-500);
  transition: all var(--transition);
}

.mode-toggle__btn:hover { color: var(--black); }

.mode-toggle__btn.active {
  background: var(--black);
  color: var(--white);
}

.mode-toggle__or {
  font-size: 12px;
  color: var(--grey-400);
}

/* Paste section */
.paste-section {
  margin-top: 16px;
}

.paste-form {
  border: 2px solid var(--grey-200);
  border-radius: 20px;
  background: var(--white);
  overflow: hidden;
  transition: border-color var(--transition);
}

.paste-form:focus-within {
  border-color: var(--black);
}

.paste-textarea {
  width: 100%;
  border: none;
  outline: none;
  resize: none;
  padding: 20px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--black);
  background: transparent;
}

.paste-textarea::placeholder { color: var(--grey-400); }

.paste-form__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 8px 20px;
  border-top: 1px solid var(--grey-200);
}

.paste-form__hint {
  font-size: 12px;
  color: var(--grey-500);
}

/* Trust Layer (End-to-End) */
.trust-layer {
  width: 100%;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
  margin: 0;
  position: relative;
  z-index: 5;
}

.trust-layer__inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 24px;
}

@media (max-width: 768px) {
  .trust-layer__inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

.trust-layer__item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.2px;
}

.trust-layer__item svg { 
  color: var(--success); 
  flex-shrink: 0; 
  stroke-width: 3;
}

/* ============ Social Proof ============ */
.social-proof {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.social-proof__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 20px 0;
  flex-wrap: wrap;
}

.social-proof__stat {
  font-size: 14px;
  color: var(--grey-700);
}

.social-proof__stat strong {
  color: var(--black);
  font-weight: 700;
}

.social-proof__divider {
  width: 1px;
  height: 20px;
  background: var(--grey-200);
}

@media (max-width: 640px) {
  .social-proof__divider { display: none; }
  .social-proof__inner { flex-direction: column; gap: 8px; }
}

/* ============ Sections ============ */
.section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.section--alt {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

.section__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--pink);
  margin-bottom: 12px;
}

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.section__subtitle {
  margin-top: 12px;
  font-size: 16px;
  color: var(--grey-700);
}

/* ============ Benefits Grid ============ */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.benefit-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.benefit-card:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-2px);
}

.benefit-card__icon {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--pink-light);
  color: var(--pink);
  margin-bottom: 16px;
}

.benefit-card__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
}

.benefit-card__text {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--grey-700);
}

/* ============ Steps Grid ============ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.step-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.step-card:hover {
  border-color: var(--black);
  box-shadow: 0 12px 32px -12px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

.step-card__icon {
  width: 56px;
  height: 56px;
  background: var(--grey-50);
  color: var(--black);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-card:hover .step-card__icon {
  background: var(--black);
  color: var(--white);
}

.step-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--grey-100);
  color: var(--grey-900) !important;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.step-card:hover .step-card__number {
  background: var(--black);
  color: var(--white) !important;
}

.step-card__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
}

.step-card__text {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--grey-700);
}

/* ============ Workspace Preview ============ */
.workspace-preview {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
  border: 1px solid var(--border);
}

.workspace-preview img {
  width: 100%;
  height: auto;
}

/* ============ Pricing ============ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.pricing-card__features {
  flex-grow: 1;
  margin: 32px 0;
}

.feature-highlight {
  font-weight: 700;
  color: var(--black);
}

.pricing-card:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-2px);
}

.pricing-card--featured {
  border-color: var(--pink);
  box-shadow: 0 0 0 1px var(--pink);
}

.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--pink);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-card__name {
  font-size: 18px;
  font-weight: 600;
  color: var(--black);
  margin-top: 4px;
}

.pricing-card__price {
  font-size: 42px;
  font-weight: 800;
  color: var(--black);
  margin-top: 8px;
  line-height: 1;
}

.pricing-card__period {
  font-size: 14px;
  color: var(--grey-500);
  margin-top: 4px;
}

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grey-100);
  padding: 4px;
  border-radius: 100px;
  width: fit-content;
  margin: 0 auto 48px;
  border: 1px solid var(--border);
}

.pricing-toggle__btn {
  border: none;
  background: transparent;
  padding: 10px 32px;
  font-size: 13px;
  font-weight: 700;
  color: var(--grey-600);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-toggle__btn.active {
  background: var(--pink);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.2);
}

/* Contact Section */
.contact-section {
  padding: 120px 0;
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-subtle);
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--black);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 15px;
  background: var(--white);
  color: var(--black);
  transition: border-color 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--black);
}

.contact-info__item {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.contact-info__icon {
  width: 48px;
  height: 48px;
  background: var(--grey-50);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  flex-shrink: 0;
}

.pricing-card__price span {
  font-size: 16px;
  font-weight: 500;
  color: var(--grey-500);
}

.pricing-card__features {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.pricing-card__features li {
  font-size: 14px;
  color: var(--grey-700);
  padding-left: 0;
  position: relative;
  text-align: center;
}

.pricing-card__features li::before {
  content: '✓';
  margin-right: 8px;
  color: var(--success);
  font-weight: 700;
}

.pricing-card__btn {
  display: block;
  margin-top: 24px;
  padding: 12px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  transition: all var(--transition);
  text-align: center;
}

.pricing-card__btn:hover {
  border-color: var(--black);
  background: var(--grey-50);
}

.pricing-card__btn--primary {
  background: var(--pink);
  color: var(--white);
  border-color: var(--pink);
}

.pricing-card__btn--primary:hover {
  background: var(--pink-hover);
  border-color: var(--pink-hover);
}

/* ============ CTA Section ============ */
.section--cta {
  background: var(--black);
  border: none;
  padding: 80px 0;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 14px 32px;
  background: var(--pink);
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.cta-btn:hover {
  background: var(--pink-hover);
  transform: translateY(-1px);
}

/* ============ Footer ============ */
.footer {
  border-top: 1px solid var(--grey-200);
  background: var(--white);
  padding: 48px 0;
  position: relative;
  z-index: 1;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .footer__inner {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
  }
}

.footer__brand { max-width: 300px; }

.footer__logo {
  font-family: 'Brush Script MT', cursive, var(--font-serif);
  font-style: italic;
  font-size: 28px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.5px;
}

.footer__tagline {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--grey-700);
}

.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer__social-link {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--grey-100);
  color: var(--grey-700);
  transition: all var(--transition);
}

.footer__social-link:hover {
  background: var(--pink-light);
  color: var(--pink);
}

.footer__social-link svg { width: 16px; height: 16px; }

.footer__col-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__link {
  font-size: 14px;
  color: var(--grey-700);
  transition: color var(--transition);
}

.footer__link:hover { color: var(--pink); }

.footer__bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--grey-200);
  font-size: 13px;
  color: var(--grey-500);
  text-align: center;
}

/* ============ Animations ============ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in { animation: fadeIn 0.5s ease both; }
.animate-fade-in-up { animation: fadeInUp 0.6s ease both; }
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* ============ Progress Overlay (Premium) ============ */
.progress-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.96) 0%, rgba(248,249,252,0.98) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.progress-overlay[hidden] { display: none !important; }
.progress-overlay:not([hidden]) { opacity: 1; pointer-events: auto; }

.progress-overlay__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 320px;
  text-align: center;
}

.progress-logo-pulse {
  width: 64px; height: 64px;
  border-radius: 18px;
  background: var(--black);
  display: grid;
  place-items: center;
  animation: logoPulse 2s ease-in-out infinite;
}

.progress-logo-pulse span {
  font-family: 'Brush Script MT', cursive, var(--font-serif);
  font-style: italic;
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(17,17,17,0.15); }
  50% { transform: scale(1.06); box-shadow: 0 0 0 16px rgba(17,17,17,0); }
}

.progress-bar-track {
  width: 200px;
  height: 4px;
  background: var(--grey-200);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--pink), #8b5cf6);
  border-radius: 4px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-message {
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  min-height: 22px;
  transition: opacity 0.2s ease;
}

.progress-step {
  font-size: 12px;
  font-weight: 500;
  color: var(--grey-500);
  letter-spacing: 0.03em;
}


/* ============ Editor Workspace ============ */
.editor-app {
  min-height: 100vh;
  --editor-primary: #6366e9;
  --editor-primary-soft: #f4f4ff;
  --editor-border: #e5e7eb;
  --editor-muted: #6b7280;
  --editor-secondary: #f6f7f9;
  --editor-success: #2f9f6b;
  background:
    radial-gradient(1200px 600px at 50% -200px, #f4f4ff, transparent),
    radial-gradient(800px 400px at 90% 10%, #fbf4ff, transparent),
    #ffffff;
  color: #1f2328;
}

.editor-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 24px;
  border-bottom: 1px solid var(--editor-border);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
}

.editor-divider {
  width: 1px;
  height: 22px;
  background: var(--editor-border);
}

.editor-topbar__left,
.editor-topbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.editor-back,
.editor-icon-btn,
.editor-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  border-radius: 8px;
  padding: 0 13px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid var(--editor-border);
  background: var(--white);
  color: var(--black);
  transition: background var(--transition), transform var(--transition), border-color var(--transition);
}

.editor-back:hover,
.editor-icon-btn:hover {
  border-color: #d1d5db;
  background: var(--editor-secondary);
}

.editor-primary-btn {
  border-color: var(--editor-primary);
  background: var(--editor-primary);
  color: var(--white);
}

.editor-primary-btn:hover {
  background: #5558d9;
  border-color: #5558d9;
  transform: translateY(-1px);
}

.editor-primary-btn:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.editor-primary-btn--wide,
.editor-icon-btn--wide {
  width: 100%;
}

.editor-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.editor-logo__mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: #181b20;
  color: white;
  font-size: 19px;
}

.editor-match-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  border: 1px solid #b9e6d3;
  border-radius: 999px;
  background: #ecfdf6;
  padding: 0 14px;
  color: #22a06b;
  font-weight: 800;
}

.editor-match-pill span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22a06b;
}

.editor-style-btn {
  min-width: 112px;
}

.editor-layout {
  display: grid;
  grid-template-columns: 320px 1fr 340px;
  gap: 2px;
  background: var(--border);
  height: calc(100vh - 64px);
  width: 100%;
  overflow: hidden;
  position: relative;
}

/* Default state: Document in center, Assist on right */
#jobPanel { grid-column: 1 !important; }
#documentPanel { grid-column: 2 !important; }
#assistPanel { grid-column: 3 !important; }

.editor-mobile-tabs {
  display: none !important;
}

.editor-panel {
  border: 1px solid var(--editor-border);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
}

.editor-panel--job,
.editor-panel--assist {
  position: sticky;
  top: 74px;
  align-self: start;
  max-height: calc(100vh - 90px);
  overflow: auto;
}

.editor-panel--document {
  min-width: 0;
  overflow: hidden;
}

.editor-panel--assist {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--editor-border);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--editor-muted);
}

.panel-heading strong {
  border-radius: var(--radius-full);
  background: var(--editor-secondary);
  padding: 4px 8px;
  color: #24292f;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
}

.panel-heading--sub {
  padding: 0 0 10px;
  border-bottom: none;
}

.job-card,
.requirements-box,
.assist-section {
  padding: 16px;
  border-bottom: 1px solid var(--editor-border);
}

.job-card {
  padding: 28px 30px;
}

.editor-field {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 800;
  color: var(--editor-muted);
}

.editor-field input,
.editor-field textarea,
.editor-field select {
  width: 100%;
  border: 1px solid var(--editor-border);
  border-radius: 8px;
  background: var(--white);
  color: var(--black);
  padding: 10px 11px;
  font-size: 14px;
  font-weight: 500;
  outline: none;
}

.editor-field textarea {
  resize: vertical;
  line-height: 1.45;
}

.editor-field input:focus,
.editor-field textarea:focus,
.editor-field select:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
  color: var(--editor-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--editor-primary);
}

.job-title-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 16px;
}

.job-title-row__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--editor-secondary);
  color: #1f2328;
}

.job-title-row p {
  margin: 0 0 4px;
  color: var(--editor-muted);
  font-size: 16px;
  font-weight: 700;
}

.job-card h1 {
  font-size: 19px;
  line-height: 1.15;
  letter-spacing: 0;
}

.job-card > p:not(.eyebrow) {
  margin-top: 8px;
  color: var(--editor-muted);
  font-size: 14px;
  line-height: 1.55;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.job-meta span,
.keywords-box span {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--editor-border);
  border-radius: var(--radius-full);
  background: var(--editor-secondary);
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 700;
  color: #4b5563;
}

.requirements-box ul {
  display: grid;
  gap: 9px;
}

.requirements-box li {
  position: relative;
  padding-left: 15px;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.45;
}

.requirements-box li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--black);
}

.keywords-box {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 16px;
}

.keywords-box--missing {
  padding: 0;
}

.keywords-box--missing span {
  border-color: rgba(194, 24, 91, 0.25);
  background: var(--pink-light);
  color: var(--pink-hover);
}

.full-post {
  padding: 0 16px 16px;
}

.full-post summary {
  cursor: pointer;
  color: var(--editor-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.full-post pre {
  max-height: 320px;
  overflow: auto;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--editor-border);
  border-radius: 8px;
  background: #fbfbfc;
  color: #374151;
  white-space: pre-wrap;
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.5;
}

.document-toolbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--editor-border);
  background: var(--white);
}

.document-toolbar strong {
  display: block;
  font-size: 14px;
}

.document-toolbar span {
  display: block;
  color: var(--editor-muted);
  font-size: 12px;
}

.segmented {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--editor-border);
  border-radius: 8px;
  background: var(--editor-secondary);
}

.segmented button {
  min-height: 30px;
  border-radius: 6px;
  padding: 0 12px;
  color: var(--editor-muted);
  font-size: 13px;
  font-weight: 800;
}

.segmented button.is-active {
  background: #1f2328;
  color: var(--white);
}

.paper-stage {
  min-height: calc(100vh - 122px);
  overflow: auto;
  padding: 32px 42px;
  background: #ffffff;
}

.paper {
  width: 100%;
  min-height: auto;
  margin: 0 auto;
  padding: 32px 48px 44px;
  background: var(--white);
  color: #171717;
  box-shadow: none;
  font-family: var(--font-sans);
}

.paper.is-hidden {
  display: none;
}

.paper [contenteditable="true"] {
  outline: none;
  border-radius: 4px;
}

.paper [contenteditable="true"]:focus {
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.14);
  background: rgba(252, 228, 236, 0.5);
}

.paper-header {
  padding-bottom: 24px;
  border-bottom: 1px solid #d8d8d8;
}

.paper-header h1 {
  font-size: 35px;
  line-height: 1.05;
  letter-spacing: 0;
}

.paper-header p {
  margin-top: 7px;
  color: #555;
  font-size: 16px;
}

.paper-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 16px;
  margin-top: 13px;
  color: #666;
  font-size: 12px;
}

.paper-section {
  margin-top: 25px;
}

.paper-section h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: #555;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.paper-section h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #dedede;
}

.paper-section p,
.paper-section li,
.resume-item p {
  color: #2b2b2b;
  font-size: 13px;
  line-height: 1.55;
}

.resume-item {
  margin-top: 15px;
}

.resume-item__top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #222;
  font-size: 13px;
}

.resume-item__top span {
  flex-shrink: 0;
  color: #666;
  font-size: 11px;
}

.resume-item ul {
  display: grid;
  gap: 5px;
  margin-top: 7px;
  padding-left: 17px;
  list-style: disc;
}

.paper-header--letter {
  display: grid;
  gap: 3px;
}

.cover-letter {
  margin-top: 35px;
  color: #222;
  font-size: 14px;
  line-height: 1.7;
}

.match-card {
  overflow: hidden;
  border: 1px solid var(--editor-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
}

.assist-card-header,
.cover-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--editor-border);
}

.assist-card-header div,
.cover-panel__head div,
.cover-panel__head label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.assist-card-header button {
  color: var(--editor-muted);
  font-size: 28px;
  line-height: 1;
}

.assist-dot {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e8f8f0;
  color: #24a36b;
  font-size: 16px;
}

.match-card__body {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 28px;
}

.match-card__score {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 7px solid var(--editor-success);
  border-radius: 50%;
}

.match-card__score strong {
  line-height: 1;
  font-size: 20px;
}

.match-card__score span {
  color: var(--editor-muted);
  font-size: 11px;
  font-weight: 800;
}

.match-card h2 {
  font-size: 18px;
  letter-spacing: 0;
}

.match-card p,
.assist-note {
  color: var(--editor-muted);
  font-size: 13px;
}

.assist-section--flush {
  padding: 22px 24px;
  border-top: 1px solid var(--editor-border);
  border-bottom: none;
}

.cover-panel {
  overflow: hidden;
  margin-top: 24px;
  padding: 0;
  border: 1px solid var(--editor-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
}

.cover-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--editor-primary);
  box-shadow: 0 0 0 4px #eeeeff;
}

.cover-dot--muted {
  width: 7px;
  height: 7px;
  box-shadow: none;
}

.cover-panel__head em {
  border: 1px solid var(--editor-border);
  border-radius: 999px;
  padding: 2px 8px;
  color: var(--editor-muted);
  font-style: normal;
  font-size: 12px;
}

.cover-panel__head select {
  border: 1px solid var(--editor-border);
  border-radius: 999px;
  background: #fff;
  padding: 7px 12px;
  font-weight: 700;
  color: #1f2328;
}

.cover-panel__body {
  height: 530px;
  overflow: auto;
  padding: 28px 24px;
  color: #41454d;
  font-size: 15px;
  line-height: 1.62;
  outline: none;
}

.cover-panel__body:focus {
  box-shadow: inset 0 0 0 3px rgba(99, 102, 233, 0.14);
}

.cover-panel__footer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-top: 1px solid var(--editor-border);
  background: #fff;
}

.cover-panel__footer .editor-primary-btn {
  margin-left: auto;
  border-color: #171a1f;
  background: #171a1f;
  border-radius: 12px;
}

.suggestion-list {
  display: grid;
  gap: 8px;
}

.suggestion-list button {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 11px;
  border: 1px solid var(--editor-border);
  border-radius: 8px;
  background: var(--editor-secondary);
  text-align: left;
}

.suggestion-list button:hover {
  border-color: var(--black);
  background: var(--white);
}

.suggestion-list strong {
  font-size: 13px;
}

.suggestion-list span {
  color: var(--editor-muted);
  font-size: 12px;
  line-height: 1.4;
}

@media (max-width: 1180px) {
  .editor-layout {
    grid-template-columns: 1fr;
  }

  .editor-panel--job,
  .editor-panel--assist {
    position: static;
    max-height: none;
  }
}

@media (max-width: 720px) {
  .editor-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .editor-topbar__actions {
    overflow-x: auto;
  }

  .paper-stage {
    padding: 14px;
  }

  .paper {
    min-height: auto;
    padding: 34px 24px;
  }

  .resume-item__top {
    display: grid;
  }
}

@media print {
  body.print-editor-docs * {
    visibility: hidden !important;
  }

  body.print-editor-docs .paper,
  body.print-editor-docs .paper * {
    visibility: visible !important;
  }

  body.print-editor-docs .paper {
    display: block !important;
    position: static !important;
    width: auto;
    min-height: auto;
    margin: 0;
    padding: 0;
    box-shadow: none;
    page-break-after: always;
  }

  body.print-editor-docs .paper-stage {
    display: block;
    padding: 0;
    background: white;
  }

  @page {
    size: letter;
    margin: 0.6in;
  }
}

/* ============ Responsive ============ */
@media (max-width: 768px) {
  .hero { padding: 40px 0 24px; }
  .section { padding: 56px 0; }
  .benefits-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
}

/* ============ Dashboard ============ */
.dashboard-wrapper {
  background: var(--bg);
  min-height: 100vh;
}

.dashboard-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

.dashboard-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: 64px;
}

.dashboard-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.dashboard-header .header-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.dashboard-nav {
  display: flex;
  gap: 20px;
}

.dashboard-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--grey-500);
  transition: color var(--transition);
}

.dashboard-nav a:hover,
.dashboard-nav a.is-active {
  color: var(--black);
}

.dashboard-header .header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-new-app {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #3b82f6; /* Modern blue */
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
}

.btn-new-app:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.user-avatar {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.avatar-pill {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 12px;
  font-weight: 700;
}

.user-name {
  font-size: 14px;
  font-weight: 600;
}

.dashboard-hero {
  padding: 48px 0 32px;
}

.dashboard-hero h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.dashboard-hero p {
  color: var(--grey-500);
  font-size: 16px;
  margin-top: 4px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.stat-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--grey-500);
  margin-bottom: 8px;
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--black);
  line-height: 1;
}

.stat-sub {
  display: block;
  font-size: 12px;
  color: var(--grey-400);
  margin-top: 6px;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.filter-pills {
  display: flex;
  gap: 8px;
}

.filter-pill {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  color: var(--grey-700);
  background: var(--white);
  border: 1px solid var(--border);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-pill:hover {
  border-color: var(--grey-300);
}

.filter-pill.is-active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.filter-pill .badge {
  font-size: 11px;
  opacity: 0.6;
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-box {
  position: relative;
  width: 280px;
}

.search-box svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--grey-400);
}

.search-box input {
  width: 100%;
  padding: 10px 12px 10px 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition);
}

.search-box input:focus {
  border-color: var(--black);
}

.view-toggles {
  display: flex;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px;
}

.view-toggle {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: var(--grey-400);
  transition: all var(--transition);
}

.view-toggle.is-active {
  background: var(--grey-100);
  color: var(--black);
}

/* Application Card / List Row */
.applications-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.list-header {
  display: grid;
  grid-template-columns: 240px 1fr 120px 140px 140px 60px;
  padding: 0 24px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--grey-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.app-row {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: grid;
  grid-template-columns: 240px 1fr 120px 140px 140px 60px;
  align-items: center;
  padding: 16px 24px;
  transition: all var(--transition);
  cursor: pointer;
}

.app-row:hover {
  border-color: var(--grey-300);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.app-company {
  display: flex;
  align-items: center;
  gap: 12px;
}

.company-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--white);
}

.company-name {
  font-size: 14px;
  font-weight: 700;
}

.app-role {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
}

.status-badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-badge.ready { background: #e8f8f0; color: #24a36b; }
.status-badge.draft { background: #f3f4f6; color: #6b7280; }
.status-badge.sent { background: #eef2ff; color: #6366f1; }

.match-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff8e6;
  color: #b45309;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.app-updated {
  font-size: 13px;
  color: var(--grey-500);
}

.app-actions-btn {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--grey-400);
  transition: background var(--transition);
}

.app-actions-btn:hover {
  background: var(--grey-100);
  color: var(--black);
}

.empty-state {
  text-align: center;
  padding: 80px 24px;
  background: var(--white);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--grey-500);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

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

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  width: min(100%, 500px);
  padding: 32px;
  box-shadow: var(--shadow-elevated);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.modal-header h2 { font-size: 20px; font-weight: 800; }

.modal-close {
  font-size: 24px;
  color: var(--grey-400);
}

.modal-body p {
  color: var(--grey-700);
  margin-bottom: 20px;
}

.modal-body input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 15px;
  outline: none;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 32px;
}

.btn-ghost {
  padding: 10px 20px;
  font-weight: 700;
  color: var(--grey-700);
}

.btn-primary {
  padding: 10px 24px;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-full);
  font-weight: 700;
}

/* ============ Detail Slide Panel ============ */
.detail-panel {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.detail-panel.is-open .detail-backdrop {
  opacity: 1;
}

.detail-content {
  position: relative;
  width: 440px;
  max-width: 90vw;
  background: var(--white);
  box-shadow: -8px 0 40px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
}

.detail-panel.is-open .detail-content {
  transform: translateX(0);
}

.detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--grey-200);
}

.detail-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--grey-500);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.detail-close:hover { color: var(--black); }

.detail-meta {
  padding: 16px 24px;
  border-bottom: 1px solid var(--grey-100);
}

.detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}

.detail-row + .detail-row {
  border-top: 1px solid var(--grey-100);
}

.detail-label {
  font-size: 13px;
  color: var(--grey-500);
  font-weight: 500;
}

.detail-value {
  font-size: 13px;
  color: var(--black);
  font-weight: 500;
}

/* Status toggle buttons */
.status-btn {
  display: inline-block;
  padding: 4px 12px;
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-full);
  background: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  color: var(--grey-500);
  transition: all 0.15s ease;
}

.status-btn:hover {
  border-color: var(--black);
  color: var(--black);
}

.status-btn.is-active[data-set-status="draft"] {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.status-btn.is-active[data-set-status="ready"] {
  background: #16a34a;
  color: var(--white);
  border-color: #16a34a;
}

.status-btn.is-active[data-set-status="sent"] {
  background: #9333ea;
  color: var(--white);
  border-color: #9333ea;
}

.detail-section {
  padding: 18px 24px;
  border-bottom: 1px solid var(--grey-100);
}

.detail-section-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--grey-400);
  margin: 0 0 12px;
}

.detail-doc-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--grey-50);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm);
}

.detail-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  margin-top: auto;
  border-top: 1px solid var(--grey-100);
}

.detail-delete {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: none;
  border: none;
  color: #dc2626;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.detail-delete:hover { background: #fef2f2; }

.detail-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  background: var(--black);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
}
.detail-btn-primary:hover { opacity: 0.85; }

/* App row "Open" label */
.open-label {
  font-size: 12px;
  color: var(--grey-400);
  opacity: 0;
  transition: opacity 0.15s;
}
.app-row:hover .open-label { opacity: 1; color: var(--black); }

/* ============ Hero Pills ============ */
.hero__pills {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.hero__pill:hover {
  transform: translateY(-2px);
  background: var(--grey-900);
}

.hero__pill svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
}

/* ============ Refined Paste Button ============ */
.paste-toggle__btn--black {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: var(--radius-lg);
  font-size: 15px;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.paste-toggle__btn--black:hover {
  background: var(--grey-900);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.paste-toggle__btn--black svg {
  width: 18px;
  height: 18px;
}
/* ============ How It Works ============ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.step-card {
  padding: 40px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-elevated);
  border-color: var(--black);
}

.step-card__icon svg {
  width: 28px;
  height: 28px;
}

.step-card__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.step-card__text {
  font-size: 15px;
  color: var(--grey-700);
  line-height: 1.6;
}

/* ============ Resources ============ */
.section--resources {
  background: var(--white);
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.resource-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.resource-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-elevated);
}

.resource-card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--grey-100);
}

.resource-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.resource-card:hover .resource-card__image img {
  transform: scale(1.05);
}

.resource-card__content {
  padding: 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.resource-card__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--pink);
  margin-bottom: 16px;
}

.resource-card__title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
  color: var(--black);
}

.resource-card__text {
  font-size: 15px;
  color: var(--grey-700);
  line-height: 1.6;
  margin-bottom: 24px;
}

.resource-card__link {
  margin-top: auto;
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.resource-card__link svg {
  transition: transform 0.2s ease;
}

.resource-card:hover .resource-card__link svg {
  transform: translateX(4px);
}

/* ============ Hamburger Button ============ */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  z-index: 110;
}

.hamburger:hover { background: var(--grey-100); }

.hamburger__line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.hamburger.is-active .hamburger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.is-active .hamburger__line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.is-active .hamburger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 768px) {
  .hamburger { display: none; }
}

/* ============ Mobile Nav Overlay ============ */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 105;
  pointer-events: none;
  visibility: hidden;
}

.mobile-nav.is-open {
  pointer-events: auto;
  visibility: visible;
}

.mobile-nav__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-nav.is-open .mobile-nav__backdrop {
  opacity: 1;
}

.mobile-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(85vw, 380px);
  height: 100%;
  background: var(--white);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.mobile-nav.is-open .mobile-nav__panel {
  transform: translateX(0);
}

.mobile-nav__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--grey-100);
}

.mobile-nav__close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--grey-50);
  border-radius: var(--radius-sm);
  color: var(--grey-700);
  cursor: pointer;
  transition: all var(--transition);
}

.mobile-nav__close:hover {
  background: var(--grey-200);
  color: var(--black);
}

.mobile-nav__links {
  padding: 16px 0;
  flex: 1;
}

.mobile-nav__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
  transition: all var(--transition);
}

.mobile-nav__link:hover {
  background: var(--grey-50);
  color: var(--pink);
}

.mobile-nav__link--primary {
  margin: 8px 24px;
  padding: 14px 24px;
  background: var(--black);
  color: var(--white) !important;
  border-radius: var(--radius-full);
  justify-content: center;
}

.mobile-nav__link--primary:hover {
  background: var(--grey-900);
  color: var(--white) !important;
}

.mobile-nav__link--danger {
  color: #dc2626;
}

.mobile-nav__divider {
  height: 1px;
  margin: 8px 24px;
  background: var(--grey-100);
}

/* ============ User Dropdown ============ */
.user-dropdown {
  position: relative;
}

.user-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 4px 4px;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-full);
  background: var(--white);
  cursor: pointer;
  transition: all var(--transition);
}

.user-dropdown__trigger:hover {
  border-color: var(--grey-300);
  background: var(--grey-50);
}

.user-dropdown__trigger .avatar-pill {
  width: 30px;
  height: 30px;
  font-size: 12px;
}

.avatar-pill--lg {
  width: 36px !important;
  height: 36px !important;
  font-size: 14px !important;
}

.user-dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 260px;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 200;
  overflow: hidden;
}

.user-dropdown__menu.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.user-dropdown__info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
}

.user-dropdown__info strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.user-dropdown__info > div > span {
  display: block;
  font-size: 12px;
  color: var(--grey-500);
  margin-top: 2px;
}

.user-dropdown__divider {
  height: 1px;
  background: var(--grey-100);
}

.user-dropdown__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--grey-700);
  transition: all var(--transition);
}

.user-dropdown__item:hover {
  background: var(--grey-50);
  color: var(--black);
}

.user-dropdown__item svg {
  flex-shrink: 0;
  color: var(--grey-400);
}

.user-dropdown__item:hover svg {
  color: var(--black);
}

.user-dropdown__item--danger {
  color: #dc2626;
}

.user-dropdown__item--danger svg {
  color: #dc2626 !important;
}

.user-dropdown__item--danger:hover {
  background: #fef2f2;
  color: #dc2626;
}

/* Hide desktop-only header buttons on mobile */
@media (max-width: 767px) {
  .header__btn--desktop { display: none !important; }
}

/* ============ Settings Page ============ */
.settings-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.settings-page h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.settings-page > p {
  font-size: 14px;
  color: var(--grey-500);
  margin-bottom: 32px;
}

.settings-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--grey-100);
  border-radius: var(--radius-full);
  margin-bottom: 32px;
  border: 1px solid var(--grey-200);
}

.settings-tab {
  flex: 1;
  padding: 10px 20px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--grey-500);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  background: none;
}

.settings-tab.is-active {
  background: var(--white);
  color: var(--black);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.settings-panel {
  display: none;
}

.settings-panel.is-active {
  display: block;
}

.settings-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.settings-card__header {
  padding: 24px;
  border-bottom: 1px solid var(--grey-100);
}

.settings-card__header h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.settings-card__header p {
  font-size: 13px;
  color: var(--grey-500);
}

.settings-card__body {
  padding: 24px;
}

.settings-field {
  margin-bottom: 20px;
}

.settings-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--grey-700);
  margin-bottom: 6px;
}

.settings-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm);
  font-size: 15px;
  outline: none;
  transition: border-color var(--transition);
}

.settings-field input:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.settings-card__footer {
  padding: 16px 24px;
  border-top: 1px solid var(--grey-100);
  background: var(--grey-50);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.settings-btn {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}

.settings-btn--primary {
  background: var(--black);
  color: var(--white);
}

.settings-btn--primary:hover {
  background: var(--grey-900);
}

.settings-btn--danger {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.settings-btn--danger:hover {
  background: #fee2e2;
}

.billing-plan-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--grey-50);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.billing-plan-card__info h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.billing-plan-card__info span {
  font-size: 13px;
  color: var(--grey-500);
}

.billing-plan-card__badge {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.billing-plan-card__badge--active {
  background: #e8f8f0;
  color: #16a34a;
}

.billing-plan-card__badge--expired {
  background: #fef2f2;
  color: #dc2626;
}

.billing-plan-card__badge--free {
  background: var(--grey-100);
  color: var(--grey-600);
}

/* ============ Modern New Application Modal ============ */
.modal--modern .modal-content {
  width: min(100%, 560px);
  padding: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--grey-200);
}

.modal--modern .modal-accent {
  height: 4px;
  background: linear-gradient(90deg, var(--pink), #6366f1, #3b82f6);
}

.modal--modern .modal-header {
  padding: 28px 32px 0;
  margin-bottom: 8px;
  border: none;
}

.modal--modern .modal-header h2 {
  font-size: 24px;
  font-weight: 800;
}

.modal--modern .modal-body {
  padding: 8px 32px 32px;
}

.modal--modern .modal-body p {
  font-size: 15px;
  color: var(--grey-600);
  margin-bottom: 24px;
}

.modal--modern .modal-search {
  display: flex;
  align-items: center;
  border: 2px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 6px 6px 6px 18px;
  gap: 12px;
  transition: border-color var(--transition);
  background: var(--white);
}

.modal--modern .modal-search:focus-within {
  border-color: var(--black);
}

.modal--modern .modal-search input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  padding: 10px 0;
  background: transparent;
}

.modal--modern .modal-search__btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--pink);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal--modern .modal-search__btn:hover {
  background: var(--pink-hover);
  transform: scale(1.05);
}

.modal--modern .modal-paste-toggle {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--grey-500);
  cursor: pointer;
  padding: 0;
  background: none;
  border: none;
  font-weight: 600;
  transition: color var(--transition);
}

.modal--modern .modal-paste-toggle:hover {
  color: var(--black);
}

.modal--modern .modal-textarea {
  width: 100%;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.6;
  resize: none;
  min-height: 140px;
  margin-top: 12px;
  outline: none;
  transition: border-color var(--transition);
}

.modal--modern .modal-textarea:focus {
  border-color: var(--black);
}

/* ============ Editor Mobile ============ */
@media (max-width: 1180px) {
  .editor-topbar__left .editor-divider,
  .editor-topbar__left .nav-link {
    display: none;
  }
}

@media (max-width: 767px) {
  .editor-topbar {
    padding: 8px 16px;
    gap: 8px;
  }

  .editor-topbar__actions {
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
  }

  .editor-style-btn {
    display: none;
  }

  .editor-layout {
    grid-template-columns: 1fr;
    height: auto;
    min-height: calc(100vh - 100px);
  }

  .editor-panel--job,
  .editor-panel--assist {
    position: static;
    max-height: none;
  }

  .paper-stage {
    padding: 16px;
  }

  .paper {
    padding: 24px 16px;
  }

  .paper-header h1 {
    font-size: 24px;
  }

  .cover-panel__body {
    height: 300px;
  }

  .document-toolbar {
    display: flex;
  }
}

/* ============ Dashboard Mobile ============ */
@media (max-width: 767px) {
  .dashboard-container {
    padding: 0 16px;
  }

  .dashboard-header .header-left {
    gap: 16px;
  }

  .dashboard-nav {
    display: none;
  }

  .dashboard-hero h1 {
    font-size: 24px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .stat-card {
    padding: 16px;
  }

  .stat-value {
    font-size: 22px;
  }

  .filter-bar {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .filter-pills {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  .filter-pills::-webkit-scrollbar { display: none; }

  .search-box {
    width: 100%;
  }

  .list-header {
    display: none;
  }

  .app-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px;
  }

  .app-company {
    margin-bottom: 4px;
  }

  .app-role {
    font-size: 13px;
    color: var(--grey-600);
  }

  .app-status,
  .app-match {
    display: inline-flex;
  }

  .app-updated,
  .col-actions {
    display: none;
  }

  .btn-new-app {
    padding: 8px 14px;
    font-size: 13px;
  }

  .btn-new-app svg {
    width: 16px;
    height: 16px;
  }
}

/* ============ Contact Section Mobile ============ */
@media (max-width: 767px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-section {
    padding: 60px 0;
  }

  .contact-form {
    padding: 24px;
  }
}

/* ============ Hero Mobile ============ */
@media (max-width: 767px) {
  .hero {
    padding: 40px 0 0;
  }

  .hero__grid {
    gap: 32px;
    min-height: auto;
  }

  .hero__pills {
    gap: 8px;
    flex-wrap: wrap;
  }

  .hero__pill {
    padding: 6px 14px;
    font-size: 12px;
  }

  .hero__title {
    font-size: 36px;
  }

  .hero__subtitle {
    font-size: 16px;
    margin-top: 14px;
  }

  .hero__visual {
    min-height: 200px;
  }

  .search-section {
    margin-top: 24px;
  }

  .job-search {
    padding: 4px 4px 4px 16px;
    gap: 8px;
  }

  .job-search__input {
    font-size: 14px;
    padding: 8px 0;
  }

  .job-search__btn {
    width: 42px;
    height: 42px;
  }
}

/* ============ Pricing Mobile ============ */
@media (max-width: 767px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-toggle {
    margin-bottom: 32px;
  }

  .pricing-toggle__btn {
    padding: 8px 20px;
    font-size: 12px;
  }
}

/* ============ Profile Mobile ============ */
@media (max-width: 767px) {
  .profile-page-content {
    padding: 24px 16px 60px;
  }
}

/* ============ Board Mobile ============ */
@media (max-width: 767px) {
  .board-page h1 {
    font-size: 36px !important;
  }

  .job-board-card {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
  }

  .job-board-card > div:last-child {
    width: 100%;
    flex-direction: column !important;
    gap: 12px !important;
    text-align: left !important;
  }

  .job-board-card > div:last-child > div {
    text-align: left !important;
  }
}

/* ============ Footer Mobile ============ */
@media (max-width: 767px) {
  .footer {
    padding: 32px 0;
  }

  .footer__inner {
    gap: 24px;
  }
}

/* ============ Resources Mobile ============ */
@media (max-width: 767px) {
  .resources-page h1 {
    font-size: 36px !important;
  }

  .resource-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .resource-card__content {
    padding: 20px;
  }

  .resource-card__title {
    font-size: 18px;
  }
}

/* ============ Editor 3-Panel Swap & Mobile Optimization ============ */

/* New Swap Logic: Content toggle instead of column swap */
.editor-layout.is-swapped #resumeDocument {
  display: none !important;
}

.editor-layout.is-swapped #coverDocument {
  display: block !important;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.editor-layout.is-swapped .editor-panel--job {
  width: 300px;
  min-width: 300px;
}

/* Sizing Variants */
.paper--small { font-size: 0.85em; }
.paper--small .paper-header h1 { font-size: 24px; }
.paper--small .paper-section { margin-top: 12px; }
.paper--small .resume-item { margin-bottom: 4px; }

.paper--normal { font-size: 1em; }

.paper--large { font-size: 1.15em; }
.paper--large .paper-header h1 { font-size: 38px; }
.paper--large .paper-section { margin-top: 32px; }
.paper--large .resume-item { margin-bottom: 20px; }

.resume-mini-body {
  padding: 16px;
  background: var(--grey-50);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.resume-mini-paper {
  background: var(--white);
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  border-radius: 4px;
}

.resume-mini-paper strong {
  display: block;
  font-size: 14px;
}

.resume-mini-paper p {
  font-size: 11px;
  color: var(--grey-500);
  margin-top: 2px;
}

.resume-mini-section {
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--grey-100);
}

.resume-mini-section span {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  color: var(--grey-400);
  font-weight: 700;
  margin-bottom: 4px;
}

.resume-mini-section small {
  display: block;
  font-size: 11px;
  color: var(--grey-700);
}

.blog-content p {
  margin-bottom: 24px;
}

.blog-content h2, .blog-content h3 {
  margin-top: 48px;
  margin-bottom: 16px;
}

/* Mobile Editor Tabs */
@media (max-width: 767px) {
  .editor-layout {
    display: flex;
    flex-direction: column;
  }
  
  .editor-panel {
    display: none;
  }
  
  .editor-panel.is-visible {
    display: block;
  }
  
  .editor-mobile-tabs {
    display: flex;
    position: sticky;
    top: 60px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    z-index: 90;
  }
  
  .editor-mobile-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--grey-500);
    border-bottom: 2px solid transparent;
    cursor: pointer;
  }
  
  .editor-mobile-tab.is-active {
    color: var(--pink);
    border-bottom-color: var(--pink);
  }
}

/* ============ Global Mobile Polish & Final Refinements ============ */
@media (max-width: 767px) {
  .hero {
    padding: 100px 0 60px;
    text-align: center;
  }
  
  .hero h1 {
    font-size: 36px;
    line-height: 1.1;
  }
  
  .hero p {
    font-size: 16px;
    margin-top: 16px;
  }
  
  .search-box {
    margin-top: 32px;
    padding: 10px;
  }
  
  .search-box input {
    font-size: 14px;
    padding-left: 36px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0 12px;
  }
  
  .stat-card {
    padding: 16px;
  }
  
  .stat-value {
    font-size: 24px;
  }
  
  .dashboard-hero h1 {
    font-size: 24px;
  }
  
  .dashboard-hero p {
    font-size: 14px;
  }
  
  .btn-new-app {
    width: 100%;
    justify-content: center;
    margin-top: 16px;
  }
  
  .footer__inner {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }
  
  .footer__brand {
    max-width: 100%;
  }
  
  .footer__links {
    justify-content: center;
  }
  
  /* Modern Modal Mobile */
  .modal-content {
    width: 95%;
    margin: 20px auto;
    padding: 24px;
  }
  
  .modal-search input {
    font-size: 13px;
  }
  
  .settings-page {
    padding: 20px 16px;
  }
  
  .settings-tabs {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 4px;
  }
  
  .settings-card {
    border-radius: 12px;
    box-shadow: none;
    border: 1px solid var(--border);
  }
}

.profile-page-content h1 {
  font-family: var(--font-serif);
}

.settings-page h1 {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 40px;
  color: var(--black);
  margin-bottom: 8px;
}

/* Ensure mobile tabs are hidden on desktop */
.editor-mobile-tabs {
  display: none !important;
}

/* ============ Resume Format Variants ============ */
/* Modern: left-aligned with accent colour */
.paper--modern .paper-header { text-align: left; border-left: 4px solid #2563EB; padding-left: 18px; }
.paper--modern .paper-header h1 { text-align: left; }
.paper--modern .paper-header p { text-align: left; }
.paper--modern .paper-contact { justify-content: flex-start; }
.paper--modern .paper-section h2 { color: #2563EB; border-bottom-color: #93c5fd; }

/* Minimal: no HR rules, generous spacing */
.paper--minimal .paper-header { border-bottom: none; padding-bottom: 24px; }
.paper--minimal .paper-section h2 { border-bottom: none; padding-bottom: 4px; font-weight: 600; letter-spacing: 0.08em; }
.paper--minimal .resume-item { margin-bottom: 12px; }

/* ============ Format Dropdown ============ */
.format-dropdown {
  position: relative;
  display: inline-block;
}

.format-dropdown__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 180px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-elevated);
  z-index: 30;
  padding: 6px;
  display: none;
}

.format-dropdown__menu.is-open { display: block; }

.format-dropdown__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}

.format-dropdown__item:hover { background: var(--grey-50); }
.format-dropdown__item.is-active { background: var(--editor-primary-soft); color: var(--editor-primary); }
.format-dropdown__item .lock-icon { color: var(--grey-400); font-size: 12px; }

/* ============ Credits Indicator ============ */
.credits-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--grey-700);
}

.credits-pill__ring {
  width: 18px;
  height: 18px;
  position: relative;
}

.credits-pill__ring svg {
  width: 18px;
  height: 18px;
  transform: rotate(-90deg);
}

.credits-pill__ring circle {
  fill: none;
  stroke-width: 3;
}

.credits-pill__ring .track { stroke: var(--grey-200); }
.credits-pill__ring .fill { stroke: var(--pink); stroke-linecap: round; transition: stroke-dashoffset 0.6s ease; }

/* ============ Coupon Code UI ============ */
.coupon-toggle {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--grey-500);
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.2s;
}
.coupon-toggle:hover { color: var(--pink); }

.coupon-row {
  display: none;
  gap: 6px;
  margin-top: 8px;
  align-items: center;
}
.coupon-row.is-open { display: flex; }

.coupon-row input {
  flex: 1;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  outline: none;
}
.coupon-row input:focus { border-color: var(--pink); }

.coupon-row button {
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  background: var(--grey-100);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.15s;
}
.coupon-row button:hover { background: var(--grey-200); }

.coupon-result {
  font-size: 11px;
  font-weight: 700;
  margin-top: 6px;
  min-height: 16px;
}
.coupon-result--success { color: var(--success); }
.coupon-result--error { color: var(--pink); }

.price-original {
  text-decoration: line-through;
  color: var(--grey-400);
  font-size: 22px;
  margin-right: 8px;
}

/* ============ Expand Button Fix ============ */
.expand-btn {
  background: none;
  border: 1px solid var(--editor-border);
  border-radius: 8px;
  color: var(--grey-500);
  cursor: pointer;
  padding: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.expand-btn:hover { color: var(--pink); border-color: var(--pink); }
.expand-btn.is-expanded { color: var(--pink); border-color: var(--pink); background: var(--pink-light); }

/* ============ Context Menu ============ */
.context-menu {
  position: absolute;
  z-index: 9999;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-elevated);
  padding: 6px;
  display: none;
  pointer-events: auto;
}

.context-menu.is-visible {
  display: block;
  animation: popIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.context-menu__inner {
  display: flex;
  gap: 6px;
}

.context-menu__input {
  font-size: 13px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  outline: none;
  width: 180px;
}
.context-menu__input:focus { border-color: var(--pink); }

.context-menu__btn {
  background: linear-gradient(135deg, var(--pink), #e81cff);
  color: var(--white);
  border: none;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.95) translateY(4px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.cover-letter-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--grey-200);
  padding-bottom: 4px;
}

/* ── Neon Announcement Banner ── */
.neon-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 350px;
  background: rgba(10, 10, 10, 0.9);
  border: 1px solid var(--pink);
  box-shadow: 0 0 15px rgba(255, 0, 128, 0.5), inset 0 0 10px rgba(255, 0, 128, 0.2);
  border-radius: 12px;
  padding: 16px 20px;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--white);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateY(50px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.neon-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.neon-banner__content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.neon-banner__text {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-shadow: 0 0 5px rgba(255, 0, 128, 0.5);
}

.neon-banner__link {
  font-size: 13px;
  font-weight: 700;
  color: var(--pink);
  text-decoration: none;
  display: inline-block;
  align-self: flex-start;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--pink);
  transition: all 0.2s ease;
}

.neon-banner__link:hover {
  text-shadow: 0 0 8px var(--pink);
  box-shadow: 0 1px 8px var(--pink);
}

.neon-banner__close {
  background: none;
  border: none;
  color: var(--grey-400);
  font-size: 20px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s ease;
}

.neon-banner__close:hover {
  color: var(--white);
  text-shadow: 0 0 5px var(--white);
}

@media (max-width: 480px) {
  .neon-banner {
    bottom: 16px;
    right: 16px;
    left: 16px;
    max-width: none;
  }
}


/* ============ Editor Empty State ============ */
.editor-empty-state {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(2px);
}

.editor-empty-state__content {
  background: var(--white);
  padding: 48px;
  border-radius: 32px;
  text-align: center;
  max-width: 440px;
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border);
  animation: modalPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.editor-empty-state__icon {
  font-size: 48px;
  margin-bottom: 24px;
}

.editor-empty-state__content h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 12px;
}

.editor-empty-state__content p {
  font-size: 15px;
  color: var(--grey-500);
  line-height: 1.6;
  margin-bottom: 32px;
}

.editor-empty-state__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.editor-empty-state__actions .btn {
  width: 100%;
  padding: 14px;
  font-size: 15px;
}

/* ============ Custom Modal ============ */
.custom-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none; /* Changed from flex to none */
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.custom-modal:not([hidden]) {
  display: flex;
  opacity: 1;
}

.custom-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
}

.custom-modal__content {
  position: relative;
  background: var(--white);
  width: 90%;
  max-width: 450px;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes modalPop {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.custom-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.custom-modal__header h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 800;
  color: var(--black);
  margin: 0;
  flex: 1;
  padding-left: 12px;
}

.custom-modal__icon-shell {
  width: 40px;
  height: 40px;
  background: var(--editor-primary-soft);
  color: var(--editor-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.custom-modal__close {
  background: none;
  border: none;
  font-size: 32px;
  color: var(--grey-400);
  cursor: pointer;
  line-height: 1;
}

.custom-modal__body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--grey-600);
  margin-bottom: 24px;
}

.custom-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.custom-modal__footer .btn {
  padding: 10px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
}

/* ============ Resume Templates ============ */

/* Executive Template */
.paper--executive {
  font-family: 'Playfair Display', serif;
  text-align: center;
}
.paper--executive .paper-header {
  border-bottom: 2px solid var(--black);
  padding-bottom: 32px;
}
.paper--executive .paper-header h1 {
  font-size: 42px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.paper--executive .paper-contact {
  justify-content: center;
}
.paper--executive .paper-section h2 {
  justify-content: center;
  font-size: 14px;
  border-bottom: 1px solid #eee;
  padding-bottom: 4px;
}
.paper--executive .paper-section h2::after { display: none; }

/* Two-Column Template */
.paper--two-column {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  padding: 0;
}
.paper--two-column .paper-header {
  grid-column: 1 / -1;
  padding: 40px 48px 24px;
  background: var(--bg);
  border-bottom: none;
}
.paper--two-column #resumeSectionsContainer {
  display: contents;
}
.paper--two-column .paper-section:nth-child(1),
.paper--two-column .paper-section:nth-child(3) {
  grid-column: 1;
  padding-left: 48px;
}
.paper--two-column .paper-section:nth-child(2),
.paper--two-column .paper-section:nth-child(4),
.paper--two-column .paper-section:nth-child(5) {
  grid-column: 2;
  padding-right: 48px;
}
.paper--two-column .paper-section h2 {
  font-size: 12px;
  color: var(--pink);
}

/* ============ Document Sizing ============ */
.paper.size-small {
  padding: 24px 32px;
  font-size: 0.85em;
}
.paper.size-small .paper-header h1 { font-size: 28px; }
.paper.size-small .paper-section { margin-top: 16px; }
.paper.size-small .resume-item { margin-top: 8px; }

.paper.size-large {
  padding: 48px 64px;
  font-size: 1.1em;
}
.paper.size-large .paper-header h1 { font-size: 42px; }
.paper.size-large .paper-section { margin-top: 32px; }


/* ============ Marquee Banner ============ */
.marquee-banner {
  background: var(--black);
  color: var(--white);
  padding: 8px 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  z-index: 1000;
}

.marquee-content {
  display: inline-block;
  animation: marquee 20s linear infinite;
  padding-left: 100%;
}

.marquee-content span {
  display: inline-block;
}

.marquee-content strong {
  color: var(--pink);
}

@keyframes marquee {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-100%, 0); }
}
