:root {
  --bg: #f3f1eb;
  --card: #ffffff;
  --surface: #fafaf8;
  --text: #0e0e11;
  --text-secondary: #6b6b80;
  --text-tertiary: #a0a0b0;
  --accent: #5b4dd6;
  --accent-soft: #ede9ff;
  --accent-hover: #4338c9;
  --green: #16a05c;
  --green-soft: #edfbf3;
  --amber: #c47f0a;
  --amber-soft: #fff8e6;
  --blue: #1d6fce;
  --blue-soft: #e8f2ff;
  --border: rgba(0, 0, 0, 0.07);
  --border-strong: rgba(0, 0, 0, 0.12);
  --radius-card: 14px;
  --radius-small: 8px;
  --radius-tiny: 6px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-elevated: 0 4px 16px rgba(0, 0, 0, 0.08);
  --sidebar-width: 246px;
  --topbar-height: 56px;
  --transition: 0.15s ease;
  --font-body: "DM Sans", sans-serif;
  --font-display: "DM Serif Display", serif;
  --cv-accent: #2f49b6;
  --cv-font: "Inter", sans-serif;
  --cv-font-size: 15px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
}

body {
  overflow: auto;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(91, 77, 214, 0.08), transparent 26%),
    radial-gradient(circle at top right, rgba(18, 111, 214, 0.06), transparent 22%),
    linear-gradient(180deg, #f7f4ee 0%, #f3f1eb 58%, #efede7 100%);
}

body.secure-mode .content,
body.secure-mode .content *,
body.secure-mode .sidebar,
body.secure-mode .sidebar * {
  -webkit-user-select: none;
  user-select: none;
}

body.secure-mode input,
body.secure-mode textarea,
body.secure-mode select {
  -webkit-user-select: text;
  user-select: text;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}

input,
select,
textarea {
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
}

textarea {
  resize: vertical;
}

img {
  max-width: 100%;
  display: block;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.svg-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  display: inline-block;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.text-icon {
  margin-right: 7px;
}

.large-icon {
  width: 28px;
  height: 28px;
}

::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(107, 107, 128, 0.28);
  border-radius: 999px;
}

.app {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.sidebar {
  width: var(--sidebar-width);
  background:
    radial-gradient(circle at top left, rgba(91, 77, 214, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 247, 252, 0.96));
  border-right: 1px solid rgba(91, 77, 214, 0.08);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  transform: translateX(-100%);
  transition: transform 0.2s ease;
  box-shadow: 24px 0 60px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(20px);
}

.sidebar.open {
  transform: translateX(0);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(91, 77, 214, 0.1);
}

.logo-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f6f4ff, #ece7ff);
  box-shadow: 0 16px 30px rgba(91, 77, 214, 0.16);
  overflow: hidden;
  border: 1px solid rgba(91, 77, 214, 0.14);
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-item {
  width: 100%;
  background: transparent;
  color: var(--text-secondary);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}

.nav-item:hover,
.nav-item.active {
  background: var(--accent-soft);
  color: var(--accent);
}

.nav-item-main {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.badge {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  background: var(--surface);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.badge.green {
  background: var(--green-soft);
  color: var(--green);
  border-color: rgba(22, 160, 92, 0.16);
}

.badge.amber {
  background: var(--amber-soft);
  color: var(--amber);
  border-color: rgba(196, 127, 10, 0.16);
}

.badge.blue {
  background: var(--blue-soft);
  color: var(--blue);
  border-color: rgba(29, 111, 206, 0.15);
}

.badge.purple {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: rgba(91, 77, 214, 0.14);
}

.sidebar-spacer {
  flex: 1;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f7f6ff);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7f6fff, var(--accent));
  color: white;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.user-meta strong,
.user-meta span {
  display: block;
}

.user-meta strong {
  font-size: 14px;
}

.user-meta span {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.main {
  margin-left: 0;
  width: 100%;
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  min-height: var(--topbar-height);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(91, 77, 214, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
}

.topbar-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.hamburger {
  display: grid;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  place-items: center;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}

.quick-actions-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  align-items: center;
  justify-content: center;
}

.quick-actions-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 16px;
  width: min(280px, calc(100vw - 32px));
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
  display: none;
  flex-direction: column;
  gap: 8px;
  backdrop-filter: blur(18px);
  z-index: 12;
}

.quick-actions-menu.open {
  display: flex;
}

.quick-action-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8f7fc;
  color: var(--text);
  border: 1px solid rgba(0, 0, 0, 0.06);
  text-align: left;
}

.quick-action-btn.primary {
  background: var(--accent);
  color: white;
  border-color: transparent;
}

.ghost-btn,
.primary-btn,
.small-btn {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ghost-btn:hover,
.small-btn:hover {
  background: var(--surface);
}

.primary-btn {
  background: var(--accent);
  color: white;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(91, 77, 214, 0.18);
}

.primary-btn:hover {
  background: var(--accent-hover);
}

.content {
  flex: 1;
  overflow: visible;
  padding: 30px;
  min-width: 0;
}

.screen {
  display: none;
  animation: fadeIn 0.2s ease;
  min-width: 0;
}

.screen.active {
  display: block;
}

.section-heading {
  margin-bottom: 22px;
  padding: 24px 28px;
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(91, 77, 214, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(250, 248, 252, 0.92));
  border: 1px solid rgba(91, 77, 214, 0.08);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.05);
}

.section-heading h1,
.section-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
}

.serif-italic {
  font-style: italic;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.05;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--text-secondary);
  max-width: 760px;
}

.progress-bar {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.progress-seven {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.progress-eight {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

.progress-step {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 248, 252, 0.98));
  border: 1px solid rgba(91, 77, 214, 0.08);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--text-secondary);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
  cursor: pointer;
}

.progress-step > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.certificate-step {
  font: inherit;
}

.progress-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  font-size: 13px;
  border: 1px solid var(--border);
}

.progress-dot .svg-icon {
  width: 14px;
  height: 14px;
}

.progress-step.done {
  color: var(--green);
  border-color: rgba(22, 160, 92, 0.18);
  background: linear-gradient(180deg, #ffffff, #f7fff9);
}

.progress-step.done .progress-dot {
  background: var(--green-soft);
  border-color: transparent;
}

.progress-step.active {
  color: var(--accent);
  border-color: rgba(91, 77, 214, 0.22);
  box-shadow: 0 0 0 4px rgba(91, 77, 214, 0.08), var(--shadow-elevated);
}

.progress-step.active .progress-dot {
  background: var(--accent);
  color: white;
  border-color: transparent;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}

.chat-card {
  min-height: 720px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(91, 77, 214, 0.08), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #fbf9ff 100%);
  border: 1px solid rgba(91, 77, 214, 0.08);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.08);
}

.chat-messages {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  background:
    radial-gradient(circle at top right, rgba(91, 77, 214, 0.09), transparent 32%),
    linear-gradient(180deg, #fffefc 0%, #fbfbff 100%);
}

.message {
  display: flex;
  gap: 14px;
  max-width: min(88%, 820px);
}

.message.user {
  margin-left: auto;
  flex-direction: row-reverse;
}

.message-avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 700;
  flex: 0 0 auto;
  overflow: hidden;
}

.ai-avatar {
  padding: 4px;
  background: linear-gradient(135deg, #f6f4ff, #ece7ff);
  border: 1px solid rgba(91, 77, 214, 0.16);
}

.ai-avatar-glow {
  position: relative;
  box-shadow: 0 0 0 6px rgba(91, 77, 214, 0.08), 0 0 30px rgba(91, 77, 214, 0.18);
  animation: aiGlowPulse 1.8s ease-in-out infinite;
}

.ai-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.message.user .message-avatar {
  background: rgba(91, 77, 214, 0.14);
}

.bubble {
  border-radius: 22px;
  padding: 16px 18px;
  background: var(--surface);
  color: var(--text);
  line-height: 1.55;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.message.user .bubble {
  background: var(--accent);
  color: white;
}

.bubble-activity {
  min-width: min(420px, 100%);
  background: linear-gradient(180deg, #ffffff, #f7f4ff);
  border-color: rgba(91, 77, 214, 0.12);
}

.bubble-activity.is-form {
  background:
    radial-gradient(circle at right top, rgba(91, 77, 214, 0.12), transparent 34%),
    linear-gradient(180deg, #ffffff, #f7f4ff);
}

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

.activity-line strong {
  font-size: 15px;
}

.activity-detail {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
}

.typing-wave {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
}

.typing-wave span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(91, 77, 214, 0.72);
  animation: typingWave 0.95s ease-in-out infinite;
}

.typing-wave span:nth-child(2) {
  animation-delay: 0.12s;
}

.typing-wave span:nth-child(3) {
  animation-delay: 0.24s;
}

.assistant-card {
  margin-left: 48px;
  background: linear-gradient(180deg, #ffffff, #fcfbff);
  border: 1px solid rgba(91, 77, 214, 0.08);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.06);
}

.resume-card {
  margin-left: 48px;
  background: linear-gradient(180deg, #ffffff, #f8f7ff);
  border: 1px solid rgba(91, 77, 214, 0.14);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.06);
}

.resume-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.resume-card p {
  margin: 0 0 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.resume-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.assistant-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.assistant-card p {
  margin: 0 0 16px;
  color: var(--text-secondary);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 14px;
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  border-radius: 12px;
  padding: 12px 14px;
  min-height: 46px;
}

.field textarea {
  min-height: 110px;
}

.field input:disabled,
.field select:disabled,
.field textarea:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.field.full {
  grid-column: 1 / -1;
}

.experience-list {
  display: grid;
  gap: 14px;
}

.experience-entry {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 14px;
}

.experience-entry-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.experience-entry-grid {
  gap: 12px;
}

.experience-entry .field input,
.experience-entry .field textarea {
  background: white;
}

.field-hint {
  font-size: 12px;
  color: var(--text-tertiary);
}

.inline-check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 14px;
}

.inline-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.chip-grid,
.filter-row,
.tag-row,
.custom-list,
.actions-row,
.contact-row,
.empty-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip,
.filter-chip,
.tag-pill,
.platform-pill,
.skill-toggle {
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-secondary);
  padding: 9px 12px;
  font-size: 14px;
  transition: all var(--transition);
}

.chip.selected,
.filter-chip.active,
.skill-toggle.selected {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: rgba(91, 77, 214, 0.2);
}

.chip:hover,
.filter-chip:hover,
.skill-toggle:hover {
  transform: translateY(-1px);
}

.step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.step-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.step-note {
  color: var(--text-secondary);
  font-size: 13px;
}

.chat-input {
  display: flex;
  gap: 10px;
  border-top: 1px solid rgba(91, 77, 214, 0.08);
  padding: 18px 22px 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(249, 247, 252, 0.96));
  flex-shrink: 0;
}

.chat-input-bar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(91, 77, 214, 0.1);
  border-radius: 999px;
  padding: 10px 10px 10px 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.chat-input-bar input {
  flex: 1;
  min-width: 0;
}

.send-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 18px;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-elevated);
}

.send-btn .svg-icon {
  width: 18px;
  height: 18px;
}

.send-btn:hover {
  background: var(--accent-hover);
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.documents-home {
  display: grid;
  gap: 18px;
}

.cv-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 320px);
  gap: 18px;
  align-items: start;
}

.cv-library-card {
  width: 320px;
  max-width: 100%;
  overflow: hidden;
  border-radius: 20px;
  background: white;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.cv-library-preview-shell {
  position: relative;
  min-height: 168px;
  padding: 12px;
  background: linear-gradient(180deg, #e8eef8 0%, #dfe8f6 100%);
  overflow: hidden;
}

.cv-library-preview-label {
  position: absolute;
  top: 12px;
  left: 14px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #5c6d89;
  z-index: 1;
}

.cv-library-status {
  position: absolute;
  top: 10px;
  right: 12px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #16a05c;
  color: white;
  font-size: 11px;
  font-weight: 700;
  z-index: 1;
}

.cv-library-preview {
  width: 100%;
  min-height: 144px;
  position: relative;
  overflow: hidden;
}

.cv-library-preview .cv-preview-pages {
  position: absolute;
  top: 22px;
  left: 50%;
  width: 794px;
  transform: translateX(-50%) scale(0.26);
  transform-origin: top center;
  pointer-events: none;
}

.cv-library-preview .cv-preview-page {
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

.cv-library-body {
  padding: 14px 14px 16px;
}

.cv-library-body h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.cv-library-body p {
  margin: 8px 0 0;
  color: var(--text-secondary);
  line-height: 1.5;
  font-size: 14px;
}

.cv-library-meta,
.cv-library-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.cv-library-actions .primary-btn,
.cv-library-actions .ghost-btn {
  flex: 1 1 0;
}

.documents-builder {
  display: grid;
  gap: 16px;
}

.documents-builder-topbar {
  display: flex;
  justify-content: flex-start;
}

.cv-overview-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 24px;
  padding: 24px;
  margin-bottom: 20px;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(91, 77, 214, 0.12), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #fbfbff 100%);
}

.cv-overview-copy h3 {
  margin: 6px 0 10px;
  font-size: 28px;
  line-height: 1.1;
}

.cv-overview-copy p {
  margin: 0;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.6;
}

.cv-overview-badges,
.cv-overview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.cv-overview-preview-shell {
  min-width: 0;
  border-radius: 20px;
  background: linear-gradient(180deg, #334155, #44536b);
  padding: 18px;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.cv-overview-preview {
  width: 100%;
  max-width: 100%;
  min-height: 240px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.cv-overview-preview .cv-preview-pages {
  transform: scale(0.3);
  transform-origin: top center;
  pointer-events: none;
}

.cv-overview-preview .cv-preview-page {
  box-shadow: 0 18px 40px rgba(7, 12, 20, 0.24);
}

.cv-overview-empty {
  color: rgba(255, 255, 255, 0.86);
  text-align: center;
  line-height: 1.6;
}

.cv-builder {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) minmax(440px, 1.08fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
  background: white;
  min-height: 920px;
}

.cv-builder-sidebar {
  border-radius: 0;
  border: 0;
  border-right: 1px solid var(--border);
  box-shadow: none;
  background: white;
  padding: 18px 0 22px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cv-builder-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px 18px;
}

.cv-sections-label {
  padding: 8px 24px 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 700;
}

.cv-sections-nav {
  display: flex;
  flex-direction: column;
}

.cv-section-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 24px;
  background: transparent;
  border-radius: 0;
  color: #29415d;
  border-left: 3px solid transparent;
}

.cv-section-link span:nth-child(2) {
  min-width: 0;
  overflow-wrap: anywhere;
}

.cv-section-link .status-dot {
  margin-left: auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #17a34a;
}

.cv-section-link:hover,
.cv-section-link.active {
  background: #eef4ff;
  color: var(--cv-accent);
  border-left-color: var(--cv-accent);
}

.builder-tip {
  margin: 20px 18px 0;
  padding: 16px;
  background: #f7f9fc;
}

.builder-tip strong {
  display: block;
  margin-bottom: 6px;
}

.builder-tip p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.55;
}

.builder-sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  margin-top: auto;
}

.cv-builder-editor {
  background: #f8fafc;
  padding: 28px 30px 34px;
  overflow: auto;
  min-width: 0;
}

.cv-live-preview-card {
  border-radius: 0;
  border: 0;
  border-left: 1px solid var(--border);
  box-shadow: none;
  background: #485871;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.cv-live-topbar {
  padding: 14px 18px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: #334155;
  font-weight: 500;
}

.cv-preview-zoom {
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  white-space: nowrap;
}

.cv-preview-zoom input {
  width: 96px;
  accent-color: white;
}

.cv-preview-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.light-btn {
  background: rgba(255, 255, 255, 0.14);
  color: white;
  border-color: rgba(255, 255, 255, 0.2);
}

.light-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.cv-live-preview-shell {
  flex: 1;
  overflow: auto;
  padding: 28px;
  min-width: 0;
  display: grid;
  justify-content: center;
  justify-items: center;
  align-content: start;
}

.cv-paper {
  width: 794px;
  max-width: none;
  margin: 0 auto;
  background: transparent;
  min-height: auto;
  box-shadow: none;
  transform-origin: top center;
  transition: transform var(--transition);
  flex: 0 0 auto;
}

.cv-preview-pages {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
}

.cv-preview-page {
  width: 794px;
  height: 1123px;
  min-height: 1123px;
  max-height: 1123px;
  overflow: hidden;
  background: white;
  box-shadow: 0 24px 60px rgba(12, 20, 35, 0.22);
  position: relative;
  page-break-after: always;
}

/* Multi-page CV section breaking */
.cv-preview-page .cv-preview-section {
  page-break-inside: avoid;
  break-inside: avoid;
}

.cv-preview-page .cv-preview-entry {
  page-break-inside: avoid;
  break-inside: avoid;
}

.cv-preview-page h3 {
  page-break-after: avoid;
  break-after: avoid;
}

.cv-preview-page ul, 
.cv-preview-page ol {
  page-break-inside: avoid;
  break-inside: avoid;
}

.pdf-export-stage {
  position: fixed;
  left: -10000px;
  top: 0;
  width: 794px;
  background: white;
  pointer-events: none;
  z-index: -1;
  overflow: visible;
}

.pdf-export-stage .cv-paper {
  width: 794px;
  margin: 0;
  transform: none !important;
  transition: none;
}

.pdf-export-stage .cv-preview-pages {
  gap: 0;
  align-items: stretch;
}

.pdf-export-stage .cv-preview-page {
  box-shadow: none;
}

.editor-panel {
  display: none;
  gap: 22px;
}

.editor-panel.active {
  display: flex;
  flex-direction: column;
}

.editor-header-card,
.editor-body-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.editor-header-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
}

.editor-header-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: #edf3ff;
  color: var(--cv-accent);
  display: grid;
  place-items: center;
  font-size: 26px;
  flex: 0 0 auto;
}

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

.editor-header-card h3 {
  margin: 0 0 4px;
  font-size: 20px;
}

.editor-header-card p {
  margin: 0;
  color: var(--text-secondary);
}

.editor-body-card {
  padding: 22px 24px;
}

.editor-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.editor-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.editor-form-grid .field input,
.editor-form-grid .field select,
.editor-form-grid .field textarea {
  background: white;
}

.payment-method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.payment-method-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 16px 14px;
  border: 1px solid #d7d7db;
  border-radius: 16px;
  background: white;
  color: #111;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}

.payment-method-button:hover {
  transform: translateY(-1px);
  border-color: var(--blue);
}

.payment-method-button.selected {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29, 111, 206, 0.14);
}

.payment-method-button.mtn {
  background: #fff3c9;
  color: #7f5a00;
}

.payment-method-button.airtel,
.payment-method-button.vodafone {
  background: #ffe7e7;
  color: #8f1313;
}

.payment-method-button.card {
  background: #e9f1ff;
  color: #184b8b;
}

.payment-method-back {
  margin-bottom: 14px;
  align-self: flex-start;
}

.photo-upload-card {
  display: flex;
  align-items: center;
  gap: 18px;
  border: 2px dashed #d4dceb;
  border-radius: 20px;
  padding: 22px;
  background: #fbfdff;
}

.photo-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #eef3fb;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #dbe4f3;
  flex: 0 0 auto;
}

.photo-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ai-writer-box {
  background:
    radial-gradient(circle at top right, rgba(91, 77, 214, 0.12), transparent 36%),
    linear-gradient(180deg, #f8f7ff, #ffffff);
  border: 1px solid rgba(91, 77, 214, 0.14);
  border-radius: 22px;
  padding: 20px;
}

.ai-writer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.ai-writer-header p {
  margin: 6px 0 0;
}

.ai-writer-stack {
  display: grid;
  gap: 14px;
}

.ai-primary-card,
.ai-spotlight-card,
.ai-alt-item {
  border: 1px solid rgba(91, 77, 214, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 32px rgba(33, 43, 79, 0.05);
}

.ai-primary-card,
.ai-spotlight-card {
  padding: 18px;
}

.ai-primary-top,
.ai-spotlight-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.ai-spotlight-card {
  background:
    radial-gradient(circle at top right, rgba(91, 77, 214, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 248, 255, 0.96));
}

.ai-spotlight-section + .ai-spotlight-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(91, 77, 214, 0.08);
}

.ai-spotlight-section p {
  margin: 8px 0 0;
  color: #314055;
  line-height: 1.65;
}

.ai-primary-top strong,
.ai-alt-item strong {
  display: block;
  margin-bottom: 6px;
}

.ai-primary-card p,
.ai-alt-item p {
  margin: 0;
  color: #314055;
  line-height: 1.65;
}

.ai-primary-actions,
.ai-alt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.ai-more-panel {
  border: 1px solid rgba(91, 77, 214, 0.1);
  border-radius: 20px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.ai-more-panel[hidden] {
  display: none;
}

.ai-more-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ai-more-heading h4 {
  margin: 0;
  font-size: 16px;
}

.ai-more-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ai-alt-column {
  display: grid;
  align-content: start;
  gap: 12px;
}

.ai-alt-item {
  padding: 14px;
}

.layout-grid,
.font-grid,
.color-swatches {
  display: grid;
  gap: 16px;
}

.layout-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.layout-card,
.font-card {
  border: 2px solid #dbe4f3;
  border-radius: 20px;
  padding: 18px;
  background: white;
  text-align: center;
}

.layout-card.active,
.font-card.active {
  border-color: var(--cv-accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--cv-accent) 18%, transparent);
}

.layout-thumb {
  height: 74px;
  border-radius: 12px;
  background: linear-gradient(180deg, #dbe4f3, #eef3fb);
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}

.layout-thumb::before,
.layout-thumb::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
}

.layout-thumb.classic::before {
  inset: 16px auto 16px 16px;
  width: 74px;
}

.layout-thumb.classic::after {
  inset: 16px 16px 16px 98px;
}

.layout-thumb.modern::before {
  inset: 18px 16px auto 16px;
  height: 22px;
}

.layout-thumb.timeline::before {
  inset: 12px auto 12px 16px;
  width: 12px;
}

.layout-thumb.timeline::after {
  inset: 16px 16px 16px 40px;
}

.layout-thumb.minimal::before {
  inset: 18px 16px auto 16px;
  height: 12px;
}

.layout-thumb.minimal::after {
  inset: 40px 16px auto 16px;
  height: 12px;
}

.layout-thumb.executive::before {
  inset: 20px 22px auto 22px;
  height: 10px;
}

.layout-thumb.executive::after {
  inset: 42px 22px auto 22px;
  height: 10px;
}

.color-swatches {
  grid-template-columns: repeat(8, 1fr);
}

.color-swatch {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid transparent;
  position: relative;
}

.color-swatch.active {
  border-color: white;
  box-shadow: 0 0 0 2px var(--cv-accent);
}

.font-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.font-card span {
  display: block;
  color: var(--text-secondary);
  font-size: 13px;
  margin-top: 4px;
}

.font-size-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.font-size-row input[type="range"] {
  flex: 1;
}

.cv-preview-root {
  --preview-accent: var(--cv-accent);
  --preview-font: var(--cv-font);
  --preview-size: var(--cv-font-size);
  font-family: var(--preview-font);
  font-size: var(--preview-size);
  color: #152033;
  height: 1123px;
  min-height: 1123px;
  background: white;
}

.cv-preview-root.layout-classic,
.cv-preview-root.layout-modern,
.cv-preview-root.layout-timeline,
.cv-preview-root.layout-minimal,
.cv-preview-root.layout-executive {
  display: flex;
  flex-direction: column;
}

.cv-preview-footer {
  padding: 0 20px 20px;
}

.cv-preview-footer-line {
  height: 2px;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--preview-accent), rgba(47, 73, 182, 0.18));
}

.cv-preview-header {
  background: var(--preview-accent);
  color: white;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
  overflow: hidden;
}

.cv-preview-header::before,
.cv-preview-header::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.cv-preview-header::before {
  width: 110px;
  height: 110px;
  right: 28px;
  top: -28px;
}

.cv-preview-header::after {
  width: 78px;
  height: 78px;
  right: 8px;
  bottom: -20px;
}

.cv-preview-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.38);
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 700;
  font-size: 26px;
  position: relative;
  z-index: 1;
}

.cv-preview-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cv-preview-header-meta {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.cv-preview-header-meta h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.cv-preview-headline {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.cv-preview-top-contact {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 12px;
  min-width: 0;
}

.cv-preview-page-meta {
  margin-top: 10px;
}

.cv-preview-top-contact span {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.cv-preview-page-counter {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.cv-preview-body {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.cv-preview-sidebar {
  background: #e7edf7;
  padding: 14px 14px;
  min-width: 0;
}

.cv-preview-main {
  padding: 14px 18px 20px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.cv-preview-section {
  margin-bottom: 12px;
  min-width: 0;
}

.cv-preview-section:last-child {
  margin-bottom: 0;
}

.cv-preview-section.compact-section {
  margin-bottom: 10px;
}

.cv-preview-section h3 {
  margin: 0 0 7px;
  color: var(--preview-accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--preview-accent);
}

.cv-preview-section p {
  margin: 0;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.cv-preview-inline-gap {
  height: 8px;
}

.cv-preview-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cv-preview-labelled-list {
  display: grid;
  gap: 4px;
}

.cv-preview-labelled-item {
  color: #516078;
  line-height: 1.32;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.cv-preview-labelled-item strong {
  color: #152033;
  font-weight: 700;
}

.cv-preview-chip {
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--preview-accent);
  font-size: 11px;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.cv-skill-list {
  margin: 0;
  padding-left: 16px;
  display: grid;
  gap: 6px;
  line-height: 1.34;
}

.cv-skill-list li {
  padding-left: 2px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.cv-skill-list li::marker {
  color: #152033;
}

.cv-skill-list strong {
  color: #152033;
  font-weight: 700;
}

.cv-skill-list span {
  color: #253247;
}

.cv-plain-skill-list {
  margin: 0;
  padding-left: 16px;
  display: grid;
  gap: 4px;
  line-height: 1.28;
}

.cv-plain-skill-list li {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.cert-upload-card {
  align-items: flex-start;
}

.cert-preview-grid,
.cv-cert-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cert-preview-card,
.cv-cert-item {
  margin: 0;
  border: 1px solid #e5eaf2;
  border-radius: 10px;
  padding: 8px;
  background: white;
}

.cert-preview-card img,
.cv-cert-item img {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  border-radius: 6px;
  background: #f8fafc;
}

.cert-preview-card figcaption,
.cv-cert-item figcaption {
  margin-top: 6px;
  color: #516078;
  font-size: 12px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.single-cert-item {
  margin: 0;
}

.cert-card-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.cv-preview-entry {
  margin-bottom: 10px;
  page-break-inside: avoid;
  break-inside: avoid;
}

.cv-preview-section {
  page-break-inside: avoid;
  break-inside: avoid;
  margin-bottom: 12px;
}

.cv-preview-section h3 {
  page-break-after: avoid;
  break-after: avoid;
}

.cv-preview-entry strong {
  display: block;
  margin-bottom: 2px;
}

.cv-duty-list {
  margin: 6px 0 0;
  padding-left: 18px;
  line-height: 1.4;
}

.cv-duty-list li {
  margin-bottom: 4px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.cv-preview-muted {
  color: #516078;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.cv-preview-section p,
.cv-preview-entry strong {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.cv-preview-root.layout-modern .cv-preview-body {
  grid-template-columns: 1fr;
}

.cv-preview-root.layout-modern .cv-preview-sidebar {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.cv-preview-root.layout-timeline .cv-preview-main .cv-preview-entry {
  position: relative;
  padding-left: 18px;
}

.cv-preview-root.layout-timeline .cv-preview-main .cv-preview-entry::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--preview-accent);
}

.cv-preview-root.layout-timeline .cv-preview-main .cv-preview-entry::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 18px;
  bottom: -12px;
  width: 1px;
  background: rgba(47, 73, 182, 0.28);
}

.cv-preview-root.layout-minimal .cv-preview-header {
  padding-bottom: 16px;
}

.cv-preview-root.layout-minimal .cv-preview-sidebar {
  background: white;
  border-right: 1px solid #eef2f8;
}

.cv-preview-root.layout-executive .cv-preview-body {
  grid-template-columns: 220px minmax(0, 1fr);
}

.cv-preview-root.layout-executive .cv-preview-sidebar {
  background: #eef3fb;
}

.cv-preview-page.continued .cv-preview-header {
  padding: 16px 24px;
}

.cv-preview-page.continued .cv-preview-avatar {
  width: 44px;
  height: 44px;
  font-size: 18px;
}

.cv-preview-page.continued .cv-preview-header-meta h1 {
  font-size: 20px;
}

.cv-preview-page.continued .cv-preview-headline {
  font-size: 12px;
}

.cv-preview-page.continued .cv-preview-sidebar {
  position: relative;
}

.cv-preview-page.continued .cv-preview-sidebar::before {
  content: "";
  display: block;
  height: 1px;
  margin-bottom: 16px;
  background: linear-gradient(90deg, rgba(47, 73, 182, 0.24), rgba(47, 73, 182, 0));
}

.cv-preview-root.layout-minimal .cv-preview-footer-line {
  background: linear-gradient(90deg, rgba(47, 73, 182, 0.9), rgba(47, 73, 182, 0.08));
}

.cv-preview-root.layout-executive .cv-preview-footer-line {
  height: 1px;
  background: linear-gradient(90deg, rgba(21, 32, 51, 0.9), rgba(21, 32, 51, 0.12));
}

.cv-preview-root.layout-timeline .cv-preview-footer-line {
  background: linear-gradient(90deg, var(--preview-accent), rgba(47, 73, 182, 0.45), rgba(47, 73, 182, 0.08));
}

.doc-card,
.cv-preview,
.kanban-column,
.stat-card,
.empty-panel {
  padding: 18px;
}

.doc-icon {
  font-size: 28px;
}

.card-header-row,
.kanban-head,
.modal-actions,
.modal-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.modal-heading {
  justify-content: flex-start;
}

.muted {
  color: var(--text-secondary);
}

.tiny-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}

.cv-name {
  font-family: var(--font-display);
  font-size: 36px;
  margin: 0;
}

.cv-role {
  color: var(--accent);
  font-size: 18px;
  font-weight: 500;
  margin-top: 6px;
}

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

.cv-section h3 {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
}

.cv-entry {
  margin-bottom: 16px;
}

.cv-entry strong {
  display: block;
  margin-bottom: 4px;
}

.matches-summary-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  margin-bottom: 18px;
  border-radius: 28px;
  border: 1px solid rgba(67, 56, 202, 0.12);
  background:
    radial-gradient(circle at top right, rgba(99, 102, 241, 0.16), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f6f7ff 45%, #eef4ff 100%);
  box-shadow: 0 24px 44px rgba(16, 24, 40, 0.07);
}

.job-engine-card {
  display: grid;
  gap: 16px;
  padding: 20px 24px;
  margin-bottom: 18px;
  border-radius: 30px;
  border: 1px solid rgba(67, 56, 202, 0.12);
  background:
    radial-gradient(circle at top right, rgba(99, 102, 241, 0.14), transparent 36%),
    linear-gradient(135deg, #ffffff 0%, #f9f8ff 44%, #eef4ff 100%);
  box-shadow: 0 24px 44px rgba(16, 24, 40, 0.07);
}

.job-engine-header h3 {
  margin: 6px 0 10px;
  font-size: 24px;
}

.job-engine-header p {
  margin: 0;
  max-width: 760px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.job-engine-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.job-engine-column {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(99, 102, 241, 0.09);
}

.job-engine-column strong {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
}

.job-engine-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.job-engine-list li + li {
  margin-top: 8px;
}

.matches-summary-card h3 {
  margin: 4px 0 8px;
  font-size: 22px;
}

.matches-summary-card p {
  margin: 0;
  max-width: 640px;
}

.matches-summary-stat {
  min-width: 150px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(91, 77, 214, 0.12);
  text-align: center;
}

.matches-summary-stat strong {
  display: block;
  font-size: 34px;
  line-height: 1;
  color: var(--accent);
  font-family: var(--font-display);
}

.matches-summary-stat span {
  display: block;
  margin-top: 6px;
  color: var(--text-secondary);
}

.job-list,
.kanban-list {
  display: grid;
  gap: 14px;
}

.job-list {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: start;
}

.job-card {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 22px;
  border-radius: 30px;
  border: 1px solid rgba(17, 24, 39, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(246, 248, 255, 0.97));
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
}

.job-card.featured {
  border-color: rgba(79, 70, 229, 0.2);
  box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.08), 0 26px 52px rgba(79, 70, 229, 0.12);
  background:
    radial-gradient(circle at top right, rgba(99, 102, 241, 0.12), transparent 36%),
    linear-gradient(180deg, #ffffff 0%, #fbfbff 100%);
}

.job-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.job-left {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
}

.logo-box {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: 700;
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
  overflow: hidden;
  position: relative;
  background-repeat: no-repeat;
  background-position: center;
}

.logo-box img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(15, 23, 42, 0.12));
}

.logo-fallback-text {
  display: none;
  font-size: 15px;
  letter-spacing: 0.04em;
}

.logo-box.logo-fallback .logo-fallback-text {
  display: inline-flex;
}

.job-content {
  min-width: 0;
}

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

.job-content h3 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.18;
}

.job-source-line {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.55;
  font-size: 14px;
}

.platform-guidance {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 15px;
}

.job-stats-note {
  margin: 0;
  color: var(--text-tertiary);
  font-size: 12px;
  line-height: 1.5;
}

.job-card-body {
  display: grid;
  gap: 14px;
}

.job-keyword-row,
.job-inline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}

.job-inline-meta {
  color: var(--text-secondary);
  font-size: 13px;
  justify-content: flex-end;
}

.job-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(17, 24, 39, 0.07);
  padding-top: 16px;
}

.job-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}

.job-score-panel {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.08), rgba(99, 102, 241, 0.02));
  border: 1px solid rgba(99, 102, 241, 0.08);
  min-width: 122px;
}

.job-score-copy {
  display: grid;
  gap: 2px;
  text-align: center;
}

.job-score-copy strong {
  font-size: 14px;
  color: var(--text-primary);
}

.job-score-copy span {
  font-size: 12px;
  color: var(--text-secondary);
}

.job-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.job-stat-item {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(248, 250, 255, 0.96);
  border: 1px solid rgba(99, 102, 241, 0.08);
  display: grid;
  gap: 6px;
}

.job-stat-item span {
  font-size: 12px;
  color: var(--text-secondary);
}

.job-stat-item strong {
  font-size: 16px;
  color: var(--text-primary);
  line-height: 1.25;
}

.job-keyword-shell {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(244, 247, 255, 0.92));
  border: 1px solid rgba(99, 102, 241, 0.08);
}

.job-keyword-shell strong {
  font-size: 16px;
  line-height: 1.4;
  color: var(--accent);
  word-break: break-word;
}

.platform-link,
.search-btn {
  text-decoration: none;
}

.match-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--accent) calc(var(--percent) * 1%), rgba(91, 77, 214, 0.1) 0);
  position: relative;
  flex: 0 0 auto;
}

.match-ring::after {
  content: "";
  position: absolute;
  inset: 7px;
  background: white;
  border-radius: 50%;
}

.match-ring span {
  position: relative;
  z-index: 1;
  font-weight: 700;
  color: var(--accent);
  font-size: 14px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stat-card .tiny-label {
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.application-entry-card {
  margin-bottom: 18px;
  padding: 24px;
  border-radius: 28px;
}

.entry-card-title {
  margin: 6px 0 0;
  font-size: 24px;
}

.application-reminder {
  max-width: 420px;
  line-height: 1.6;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(91, 77, 214, 0.06);
}

.application-entry-form {
  padding-top: 18px;
}

.application-entry-form textarea {
  min-height: 110px;
}

#screen-applications .stats-grid {
  margin-bottom: 22px;
}

#screen-applications .stat-card,
#screen-applications .kanban-column {
  border-radius: 24px;
}

#screen-applications .kanban-head {
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.stat-value {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 34px;
}

.kanban {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.kanban-column {
  min-height: 320px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  min-width: 0;
}

.kanban-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  background: var(--surface);
}

.kanban-card h4 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 500;
}

.empty-panel {
  min-height: 320px;
}

.empty-state {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  padding: 8px 4px;
}

.empty-state h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
}

.empty-state p {
  margin: 0;
  color: var(--text-secondary);
  max-width: 720px;
  line-height: 1.6;
}

.empty-illustration {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f3f0ff, #ece7ff);
  color: var(--accent);
  font-size: 26px;
  box-shadow: inset 0 0 0 1px rgba(91, 77, 214, 0.1);
}

.empty-card {
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mobile-nav {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-elevated);
  padding: 8px;
  z-index: 25;
}

.mobile-nav .nav-item {
  flex: 1;
  min-width: 0;
  padding: 10px 6px;
  border-radius: 12px;
  justify-content: center;
}

.mobile-nav .nav-item-main {
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  min-width: 0;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 14, 17, 0.48);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  z-index: 20;
}

.overlay.show {
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 1025px) {
  .sidebar {
    transform: translateX(0);
  }

  .main {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
  }

  .hamburger,
  .overlay,
  .mobile-nav {
    display: none !important;
  }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(14, 14, 17, 0.52);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 40;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  width: min(860px, 100%);
  background: var(--card);
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.2s ease;
  overflow: hidden;
  max-height: min(90vh, 980px);
  display: flex;
  flex-direction: column;
}

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

.modal-header,
.modal-body,
.modal-footer {
  padding: 18px 20px;
}

.modal-body {
  flex: 1 1 auto;
  overflow: auto;
  background:
    radial-gradient(circle at top right, rgba(91, 77, 214, 0.06), transparent 32%),
    linear-gradient(180deg, #fcfbff 0%, #ffffff 100%);
}

.modal-footer {
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.modal-header {
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.modal-ai-badge {
  width: 40px;
  height: 40px;
}

.payment-modal {
  width: min(980px, 100%);
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 30%),
    linear-gradient(180deg, #191919 0%, #101010 100%);
  color: #f5f5f5;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.34);
  margin: auto;
}

.payment-summary-card,
.payment-success-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: #f5f5f5;
}

.payment-summary-card p,
.payment-success-card p {
  margin: 8px 0 0;
  line-height: 1.55;
}

.payment-price-row {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.payment-screen-form {
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  justify-items: center;
}

.payment-screen-form .field {
  gap: 10px;
}

.payment-method-selection,
.payment-method-details {
  display: grid;
  gap: 14px;
  width: min(100%, 560px);
  margin: 0 auto;
}

.payment-method-details {
  grid-template-columns: minmax(0, 1fr);
  grid-column: 1 / -1;
}

.payment-method-details .field.full {
  grid-column: 1 / -1;
}

.payment-method-selection .field,
.payment-method-details .field {
  width: 100%;
}

.payment-screen-form label {
  color: #f3f4f6;
  font-weight: 600;
}

.payment-screen-form .muted,
.payment-success-card .muted,
.payment-summary-card .muted {
  color: rgba(255, 255, 255, 0.7);
}

.payment-screen-hero {
  padding: 4px 0 0;
  text-align: center;
  display: grid;
  justify-items: center;
}

.payment-kicker {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
  margin-bottom: 10px;
}

.payment-screen-hero h4 {
  margin: 0;
  font-size: clamp(34px, 5vw, 46px);
  line-height: 0.98;
  color: #ffffff;
}

.payment-screen-hero p {
  margin: 10px 0 0;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.76);
  max-width: 40rem;
  text-align: center;
}

.payment-modal .modal-actions {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 12px;
  flex-wrap: wrap;
}

.payment-modal .modal-actions .ghost-btn,
.payment-modal .modal-actions .primary-btn {
  min-width: 220px;
}

.payment-modal .modal-actions #startPaymentButton,
.payment-modal .modal-actions #completePaidAction {
  margin-inline: auto;
}

.payment-method-copy {
  margin-top: 4px;
}

.payment-checkout-shell {
  width: min(100%, 720px);
  display: grid;
  gap: 18px;
}

.payment-default-method {
  width: 100%;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.03);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.payment-default-method-brand {
  min-width: 148px;
  display: inline-flex;
  justify-content: center;
}

.payment-default-method-copy {
  display: grid;
  gap: 4px;
  text-align: left;
}

.payment-default-method-copy strong {
  color: #ffffff;
  font-size: 20px;
  line-height: 1.1;
}

.payment-default-method-copy span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  line-height: 1.5;
}

.payment-default-badge {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.18);
  border: 1px solid rgba(94, 234, 212, 0.26);
  color: #ccfbf1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.payment-input-shell {
  min-height: 74px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
}

.payment-input-shell input,
.payment-input-shell select {
  width: 100%;
  background: transparent;
  border: 0;
  color: #ffffff;
  font-size: 18px;
  min-height: 58px;
  outline: none;
  padding: 0;
}

.payment-input-shell input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.payment-input-shell input[readonly] {
  color: rgba(255, 255, 255, 0.72);
  cursor: default;
}

.payment-input-shell select {
  appearance: none;
  cursor: pointer;
}

.payment-input-shell option {
  color: #111827;
}

.payment-select-shell {
  position: relative;
  padding-left: 16px;
  padding-right: 16px;
  gap: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.payment-select-shell select {
  position: absolute;
  inset: 8px 62px 8px 104px;
  width: auto;
  min-height: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 3;
}

.payment-select-brand {
  width: 72px;
  min-height: 46px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.payment-select-current {
  flex: 1;
  min-height: 58px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: flex;
  align-items: center;
  padding: 0 18px;
  min-width: 0;
}

.payment-select-value {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.payment-select-value.is-placeholder {
  color: rgba(255, 255, 255, 0.56);
  font-weight: 600;
}

.payment-select-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  padding: 0 4px;
  text-align: center;
}

.payment-select-meta strong {
  color: #ffffff;
  font-size: 15px;
}

.payment-select-meta span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  text-align: center;
}

.payment-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
  width: 100%;
}

.payment-option-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.04));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.payment-option-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.payment-option-card.active {
  border-color: rgba(255, 255, 255, 0.3);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.2);
}

.payment-option-logo {
  flex: 0 0 auto;
}

.payment-option-copy {
  display: grid;
  gap: 4px;
  justify-items: center;
}

.payment-option-copy strong {
  font-size: 15px;
  line-height: 1.2;
}

.payment-option-copy span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  line-height: 1.45;
}

.payment-brand-mark {
  min-width: 52px;
  min-height: 34px;
  border-radius: 999px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.payment-brand-mark span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-default {
  background: linear-gradient(135deg, #64748b, #334155);
}

.brand-mtn {
  background: linear-gradient(135deg, #ffe04d, #f6b700);
  color: #1a1a1a;
}

.brand-airtel {
  background: linear-gradient(135deg, #ff6767, #df2020);
}

.brand-vodafone {
  background: linear-gradient(135deg, #ff5959, #b90d23);
}

.brand-card {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  padding: 0 10px;
}

.brand-paystack {
  background: #ffffff;
  color: #0f172a;
  padding: 0 14px;
  gap: 8px;
  min-width: 132px;
}

.paystack-glyph {
  width: 20px;
  height: 20px;
  position: relative;
  display: inline-block;
}

.paystack-glyph i {
  position: absolute;
  left: 0;
  right: 0;
  border-radius: 999px;
}

.paystack-glyph i:nth-child(1) {
  top: 1px;
  height: 6px;
  background: #14b8a6;
}

.paystack-glyph i:nth-child(2) {
  top: 8px;
  height: 6px;
  background: #0f766e;
}

.paystack-glyph i:nth-child(3) {
  top: 15px;
  height: 4px;
  background: #99f6e4;
}

.paystack-wordmark {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.visa-chip {
  font-size: 10px;
  letter-spacing: 0.08em;
}

.mc-chip {
  position: relative;
  width: 20px;
  height: 12px;
}

.mc-chip i {
  position: absolute;
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.mc-chip i:first-child {
  left: 0;
  background: #ef4444;
}

.mc-chip i:last-child {
  right: 0;
  background: #f59e0b;
  opacity: 0.9;
}

.payment-select-arrow,
.payment-input-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  color: #ffffff;
  flex: 0 0 auto;
}

.payment-select-arrow .svg-icon {
  transform: rotate(90deg);
}

.payment-support-card {
  border-radius: 24px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.payment-support-card p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.55;
}

.payment-support-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.payment-modal .modal-header,
.payment-modal .modal-footer {
  border-color: rgba(255, 255, 255, 0.08);
}

.payment-modal .modal-header,
.payment-modal .modal-body,
.payment-modal .modal-footer,
.payment-modal .modal-heading {
  text-align: center;
}

.payment-modal .modal-header {
  align-items: center;
}

.payment-modal .modal-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
}

.payment-modal {
  width: min(860px, 100%);
}

.payment-modal .modal-footer {
  padding: 12px 20px 18px;
  background:
    linear-gradient(180deg, rgba(20, 20, 20, 0.96), rgba(14, 14, 14, 0.98));
}

.payment-modal .modal-body {
  background: transparent;
  display: grid;
  justify-items: center;
}

.payment-modal .close-btn,
.payment-modal .ghost-btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  color: #f3f4f6;
}

.payment-modal .close-btn:hover,
.payment-modal .ghost-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.payment-modal .primary-btn {
  min-height: 62px;
  border-radius: 999px;
}

.payment-modal .field,
.payment-modal .field label,
.payment-modal .field .muted,
.payment-modal .payment-summary-card,
.payment-modal .payment-success-card,
.payment-modal #selectedPaymentMethodDescription,
.payment-modal #paymentSubtitle {
  text-align: center;
}

.payment-modal .payment-input-shell,
.payment-modal .payment-summary-card,
.payment-modal .payment-success-card {
  margin-inline: auto;
}

.payment-modal .payment-method-details .field,
.payment-modal .payment-method-selection .field {
  justify-items: center;
}

.payment-modal .payment-method-details .field > input,
.payment-modal .payment-method-details .field > .payment-input-shell,
.payment-modal .payment-method-selection .field > .payment-input-shell,
.payment-modal .payment-method-selection .field > p,
.payment-modal .payment-method-details .field > .muted {
  width: 100%;
}

.payment-modal .payment-method-details {
  gap: 18px;
}

.payment-modal .payment-method-details .field label {
  margin-bottom: 8px;
}

.payment-modal .payment-method-details input {
  min-height: 68px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.96);
  color: #111827;
  font-size: 18px;
  padding: 0 20px;
}

.payment-modal .payment-method-details input::placeholder {
  color: rgba(17, 24, 39, 0.45);
}

.payment-modal .payment-summary-card {
  width: 100%;
  border-radius: 28px;
  padding: 22px;
}

.payment-success.hidden {
  display: none;
}

.jobmatch-cv-picker {
  display: grid;
  gap: 16px;
}

.jobmatch-cv-card {
  width: 100%;
  border-radius: 20px;
  border: 1px solid rgba(91, 77, 214, 0.12);
  background: linear-gradient(180deg, #ffffff, #f8f7ff);
  padding: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.06);
}

.jobmatch-cv-card h4 {
  margin: 6px 0 8px;
  font-size: 22px;
  line-height: 1.15;
}

.jobmatch-cv-card p {
  margin: 0;
  line-height: 1.55;
}

.jobmatch-cv-copy {
  min-width: 0;
}

.jobmatch-cv-note {
  color: var(--text-secondary);
  line-height: 1.55;
}

.close-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  flex: 0 0 auto;
}

.close-btn:hover {
  background: #f0f0f0;
}

.generation-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gen-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.gen-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: white;
  border: 1px solid var(--border);
  flex: 0 0 auto;
}

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

.gen-step.active {
  border-color: rgba(91, 77, 214, 0.18);
  color: var(--accent);
}

.gen-step.active .gen-icon {
  background: var(--accent-soft);
  border-color: transparent;
}

.gen-step.done {
  color: var(--text);
}

.gen-step.done .gen-icon {
  background: var(--green-soft);
  color: var(--green);
  border-color: transparent;
}

.typing-dots {
  display: inline-flex;
  gap: 4px;
  margin-left: auto;
  visibility: hidden;
}

.gen-step.active .typing-dots {
  visibility: visible;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: blink 0.9s infinite;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

.ready-state {
  display: none;
}

.ready-state.show {
  display: block;
}

.personalised-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
}

.custom-list div {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}

.letter-output {
  min-height: 180px;
  line-height: 1.7;
  color: var(--text);
  position: relative;
}

.letter-output mark {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0 4px;
  border-radius: 4px;
}

.cover-letter-sheet {
  --letter-accent: var(--accent);
  --letter-font: var(--font-body);
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 28px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(47, 73, 182, 0.12);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
  font-family: var(--letter-font);
}

.cover-letter-sheet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 2px solid rgba(47, 73, 182, 0.1);
}

.cover-letter-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--letter-accent);
  margin-bottom: 10px;
}

.cover-letter-sheet-header h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.05;
}

.cover-letter-sheet-header p {
  margin: 8px 0 0;
  color: var(--text-secondary);
}

.cover-letter-contact {
  display: grid;
  gap: 6px;
  text-align: right;
  color: var(--text-secondary);
  font-size: 13px;
}

.cover-letter-context {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(47, 73, 182, 0.06);
  color: #29415d;
  margin-bottom: 22px;
}

.cover-letter-content {
  font-size: 17px;
  line-height: 1.95;
  color: #152033;
}

.cover-letter-content p {
  margin: 0 0 22px;
}

.cursor {
  display: inline-block;
  width: 10px;
  color: var(--accent);
  animation: blinkCursor 0.9s step-end infinite;
  font-weight: 700;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: var(--text);
  color: white;
  padding: 12px 14px;
  border-radius: 12px;
  box-shadow: var(--shadow-elevated);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  z-index: 60;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.hidden {
  display: none !important;
}

@keyframes blink {
  0%,
  80%,
  100% {
    opacity: 0.25;
  }

  40% {
    opacity: 1;
  }
}

@keyframes blinkCursor {
  50% {
    opacity: 0;
  }
}

@keyframes typingWave {
  0%,
  80%,
  100% {
    transform: translateY(0) scale(0.88);
    opacity: 0.45;
  }

  40% {
    transform: translateY(-4px) scale(1);
    opacity: 1;
  }
}

@keyframes aiGlowPulse {
  0%,
  100% {
    box-shadow: 0 0 0 6px rgba(91, 77, 214, 0.08), 0 0 28px rgba(91, 77, 214, 0.16);
  }

  50% {
    box-shadow: 0 0 0 9px rgba(91, 77, 214, 0.12), 0 0 38px rgba(91, 77, 214, 0.28);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1200px) {
  .progress-seven,
  .progress-eight {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .cv-builder {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .cv-live-preview-card {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 1024px) {
  .topbar {
    padding: 12px 18px;
  }

  .topbar-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .cv-builder {
    grid-template-columns: 1fr;
    min-height: auto;
    border-radius: 22px;
    overflow: visible;
  }

  .cv-library-preview .cv-preview-pages {
    transform: translateX(-50%) scale(0.24);
  }

  .cv-builder-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .cv-live-preview-card {
    order: 3;
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .cv-builder-editor,
  .cv-live-preview-shell {
    overflow: visible;
  }

  .cv-live-preview-shell {
    padding: 20px;
  }

  .cv-overview-preview .cv-preview-pages {
    transform: scale(0.26);
  }

  .stats-grid,
  .kanban,
  .cert-preview-grid,
  .cv-cert-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .job-engine-grid {
    grid-template-columns: 1fr;
  }

  .matches-summary-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  body {
    overflow: auto;
    background: linear-gradient(180deg, #f5f4f0 0%, #f9f8fc 100%);
  }

  .topbar {
    padding: 12px 14px;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
  }

  .topbar-title {
    min-width: 0;
    flex: 1;
  }

  .quick-actions-toggle {
    display: inline-flex;
  }

  .topbar-actions {
    display: none;
  }

  .content {
    padding: 14px 14px 112px;
  }

  .section-heading {
    margin-bottom: 14px;
  }

  .section-heading h1,
  .section-heading h2 {
    font-size: clamp(30px, 8vw, 38px);
  }

  .cv-library-grid {
    grid-template-columns: 1fr;
  }

  .cv-library-card {
    width: 100%;
  }

  .cv-library-preview-shell {
    min-height: 176px;
  }

  .cv-library-preview {
    min-height: 150px;
  }

  .cv-library-preview .cv-preview-pages {
    transform: translateX(-50%) scale(0.22);
  }

  .cv-library-body {
    padding: 16px;
  }

  .cv-library-body h3 {
    font-size: 24px;
  }

  .progress-bar {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 18px;
    scrollbar-width: none;
  }

  .progress-bar::-webkit-scrollbar {
    display: none;
  }

  .progress-step {
    flex: 0 0 158px;
  }

  .assistant-card,
  .resume-card {
    padding: 18px;
    border-radius: 18px;
  }

  .section-heading {
    padding: 18px;
    border-radius: 20px;
  }

  .topbar-actions .ghost-btn,
  .topbar-actions .primary-btn,
  .quick-action-btn,
  .step-edit-actions .small-btn,
  .step-edit-actions .primary-btn,
  .resume-actions .small-btn,
  .resume-actions .primary-btn {
    min-height: 46px;
  }

  .chat-input {
    padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-nav {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .progress-seven,
  .progress-eight,
  .docs-grid,
  .stats-grid,
  .kanban,
  .form-grid,
  .editor-form-grid,
  .layout-grid,
    .font-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chat-card {
    min-height: min(640px, calc(100vh - 176px));
    border-radius: 22px;
  }

  .assistant-card {
    margin-left: 0;
  }

  .resume-card {
    margin-left: 0;
  }

  .cv-builder {
    grid-template-columns: 1fr;
  }

  .cv-builder-sidebar {
    order: 1;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding-bottom: 18px;
  }

  .cv-builder-editor {
    order: 2;
  }

  .cv-live-preview-card {
    order: 3;
  }

  .cv-builder-top,
  .cv-live-topbar {
    align-items: flex-start;
  }

  .cv-live-preview-shell {
    padding: 12px;
    justify-content: flex-start;
  }

  .cv-builder-editor,
  .cv-builder-sidebar,
  .documents-builder-topbar,
  .cv-live-preview-card {
    min-width: 0;
  }

  .cv-live-topbar {
    gap: 12px;
  }

  .cv-preview-actions {
    width: 100%;
    justify-content: stretch;
  }

  .cv-preview-actions > * {
    flex: 1 1 100%;
  }

  .cv-sections-nav {
    flex-direction: row;
    overflow-x: auto;
    padding: 0 18px 8px;
    gap: 8px;
    scrollbar-width: none;
  }

  .cv-sections-nav::-webkit-scrollbar {
    display: none;
  }

  .cv-section-link {
    width: auto;
    min-width: max-content;
    border-left: 0;
    border-radius: 999px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    background: #f8fafc;
  }

  .cv-section-link:hover,
  .cv-section-link.active {
    border-left-color: transparent;
  }

  .cv-preview-body,
  .cv-preview-root.layout-executive .cv-preview-body {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .cv-preview-root.layout-modern .cv-preview-sidebar {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .filters-wrap,
  .job-card,
  .job-card-top,
  .job-card-footer,
  .modal-actions,
  .card-header-row,
  .step-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .job-score-panel {
    justify-items: stretch;
  }

  .job-score-panel .match-ring {
    justify-self: center;
  }

  .filters-wrap {
    gap: 8px;
  }

  .mobile-nav {
    display: flex;
    gap: 6px;
    border-radius: 22px;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
  }

  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .modal {
    width: 100%;
    border-radius: 20px 20px 0 0;
    max-height: 92vh;
    overflow: hidden;
    transform: translateY(100%);
  }

  .modal-overlay.open .modal {
    transform: translateY(0);
  }

  .modal-overlay:has(.payment-modal),
  .modal-overlay#paymentModal {
    align-items: center;
    justify-content: center;
    padding: 16px;
  }

  .payment-modal {
    width: min(100%, 720px);
    max-height: min(92vh, 920px);
    border-radius: 24px;
    transform: translateY(12px) scale(0.98);
  }

  .jobmatch-cv-card {
    flex-direction: column;
    align-items: stretch;
  }

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

@media (max-width: 560px) {
  .topbar-title {
    width: 100%;
  }

  .quick-actions-toggle {
    width: 38px;
    height: 38px;
  }

  .topbar-actions .ghost-btn,
  .topbar-actions .primary-btn,
  .builder-sidebar-actions .ghost-btn,
  .builder-sidebar-actions .primary-btn,
  .cv-preview-actions .small-btn,
  .cv-preview-actions .light-btn {
    width: 100%;
  }

  .progress-seven,
  .progress-eight,
  .docs-grid,
  .stats-grid,
  .kanban,
  .form-grid,
  .editor-form-grid,
  .layout-grid,
  .font-grid {
    grid-template-columns: 1fr;
  }

  .job-engine-card {
    padding: 18px;
    border-radius: 24px;
  }

  .job-engine-header h3 {
    font-size: 22px;
  }

  .job-engine-column {
    padding: 16px;
    border-radius: 18px;
  }

  .job-stat-grid {
    grid-template-columns: 1fr;
  }

  .job-card {
    padding: 18px;
    border-radius: 24px;
  }

  .job-score-panel {
    min-width: 0;
  }

  .color-swatches {
    grid-template-columns: repeat(4, 1fr);
  }

  .ai-more-grid {
    grid-template-columns: 1fr;
  }

  .matches-summary-card {
    padding: 18px;
  }

  .matches-summary-stat {
    min-width: 0;
    width: 100%;
  }

  .progress-bar {
    margin-right: -4px;
  }

  .message {
    max-width: 100%;
  }

  .brand-preloader-inner {
    min-width: min(320px, calc(100vw - 28px));
    padding: 24px 18px;
    border-radius: 24px;
  }

  .chat-messages,
  .chat-input {
    padding-left: 14px;
    padding-right: 14px;
  }

  .chat-input-bar {
    border-radius: 18px;
    align-items: flex-end;
  }

  .cv-library-meta,
  .cv-library-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cv-library-preview {
    min-height: 144px;
  }

  .cv-library-preview .cv-preview-pages {
    transform: translateX(-50%) scale(0.2);
  }

  .cover-letter-sheet {
    padding: 18px;
    border-radius: 18px;
  }

  .cover-letter-sheet-header {
    flex-direction: column;
    gap: 10px;
  }

  .cover-letter-sheet-header h2 {
    font-size: 24px;
  }

  .cover-letter-contact {
    text-align: left;
  }

  .cover-letter-content {
    font-size: 15px;
    line-height: 1.8;
  }

  .cv-builder-top,
  .cv-live-topbar,
  .filters-wrap,
  .job-card,
  .job-card-top,
  .job-left,
  .job-card-footer,
  .card-header-row,
  .kanban-head,
  .modal-header,
  .modal-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .cv-preview-actions,
  .resume-actions,
  .actions-row,
  .step-actions,
  .step-edit-actions,
  .builder-sidebar-actions {
    width: 100%;
  }

  .job-inline-meta {
    justify-content: flex-start;
  }

  .cv-builder-top {
    padding-bottom: 14px;
  }

  .cv-preview-zoom {
    width: 100%;
    justify-content: space-between;
  }

  .cv-preview-zoom input {
    width: 100%;
  }

  .cv-live-topbar .cv-preview-zoom {
    display: none;
  }

  .cv-live-preview-shell {
    padding: 8px;
    overflow-x: auto;
    overflow-y: visible;
    justify-content: center;
    justify-items: center;
  }

  .documents-home,
  .documents-builder {
    gap: 14px;
    overflow: visible;
  }

  .cv-library-card,
  .cv-library-preview-shell,
  .cv-live-preview-card,
  .cv-builder-sidebar,
  .cv-builder-editor {
    border-radius: 18px;
  }

  .cv-overview-card {
    grid-template-columns: 1fr;
    padding: 18px;
    gap: 16px;
  }

  .cv-overview-preview-shell {
    min-height: 200px;
  }

  .payment-screen-hero h4 {
    font-size: 32px;
  }

  .payment-screen-hero p {
    font-size: 16px;
  }

  .payment-default-method {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .payment-default-method-copy {
    text-align: center;
  }

  .payment-default-method-brand {
    min-width: 0;
  }

  .payment-option-grid {
    grid-template-columns: 1fr;
  }

  .payment-method-details {
    grid-template-columns: 1fr;
  }

  .payment-input-shell {
    min-height: 68px;
    padding: 0 16px;
    border-radius: 22px;
  }

  .payment-input-shell input,
  .payment-input-shell select {
    font-size: 17px;
  }

  .payment-select-meta {
    flex-direction: column;
    align-items: center;
  }

  .payment-select-meta span {
    text-align: center;
  }

  .payment-support-card {
    align-items: center;
  }

  .payment-modal .modal-heading {
    flex-direction: column;
  }

  .payment-modal .close-btn {
    align-self: center;
  }

  .payment-modal .modal-actions {
    flex-direction: column;
  }

  .payment-modal .modal-actions .ghost-btn,
  .payment-modal .modal-actions .primary-btn {
    width: 100%;
    min-width: 0;
  }

  .payment-modal .payment-input-shell {
    min-height: 64px;
    padding: 0 14px;
  }

  .payment-modal .payment-select-shell {
    display: grid;
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .payment-modal .payment-select-brand,
  .payment-modal .payment-select-current {
    width: 100%;
  }

  .payment-modal .payment-select-shell select {
    inset: 0;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 16px;
  }

  .toast {
    left: 12px;
    right: 12px;
    bottom: 84px;
  }
}

.brand-preloader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top, rgba(91, 77, 214, 0.22), transparent 30%),
    radial-gradient(circle at bottom right, rgba(29, 111, 206, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(247, 244, 238, 0.98), rgba(239, 237, 231, 0.98));
  backdrop-filter: blur(18px);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.brand-preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.brand-preloader-inner {
  min-width: min(360px, calc(100vw - 40px));
  padding: 28px 24px;
  border-radius: 28px;
  border: 1px solid rgba(91, 77, 214, 0.14);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.16);
  display: grid;
  justify-items: center;
  gap: 16px;
  animation: preloaderFloat 1.9s ease-in-out infinite;
}

.brand-preloader-mark {
  width: 88px;
  height: 88px;
  padding: 10px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(236, 231, 255, 0.96));
  box-shadow: 0 18px 38px rgba(91, 77, 214, 0.18);
}

.brand-preloader-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-preloader-copy {
  text-align: center;
}

.brand-preloader-copy strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(34px, 6vw, 48px);
  font-weight: 400;
}

.brand-preloader-copy span {
  display: block;
  margin-top: 8px;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 12px;
}

.brand-preloader-wave {
  display: inline-flex;
  align-items: flex-end;
  gap: 8px;
  height: 20px;
}

.brand-preloader-wave span {
  width: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #7f6fff, #1d6fce);
  animation: preloaderPulse 1.1s ease-in-out infinite;
}

.brand-preloader-wave span:nth-child(1) {
  height: 12px;
}

.brand-preloader-wave span:nth-child(2) {
  height: 20px;
  animation-delay: 0.12s;
}

.brand-preloader-wave span:nth-child(3) {
  height: 14px;
  animation-delay: 0.24s;
}

.screen.active {
  animation: screenReveal 0.45s ease both;
}

@keyframes preloaderFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes preloaderPulse {
  0%, 100% {
    transform: scaleY(0.72);
    opacity: 0.5;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

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