/* ─── Design Tokens ──────────────────────────────────────────────────────── */
:root {
  --teal: #1190a8;
  --teal-600: #0f7e93;
  --teal-700: #0c6878;
  --teal-50: #e7f6f9;
  --teal-100: #cfeef4;
  --orange: #f96332;
  --orange-600: #e95220;
  --orange-50: #fef0eb;
  --ink: #0c2a35;
  --ink-2: #2a4a55;
  --muted: #6b7f87;
  --muted-2: #9ab2bb;
  --line: #e2ecef;
  --line-2: #eef4f6;
  --bg: #f7fbfc;
  --card: #ffffff;
  --shadow-sm: 0 1px 2px rgba(12, 42, 53, .04), 0 1px 3px rgba(12, 42, 53, .06);
  --shadow: 0 6px 18px rgba(12, 42, 53, .06), 0 2px 6px rgba(12, 42, 53, .04);
  --shadow-lg: 0 24px 60px rgba(12, 42, 53, .10), 0 8px 24px rgba(12, 42, 53, .06);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --nav-h: 68px;
}

/* ─── Reset & Base ───────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  color: var(--teal-600);
}

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

button {
  cursor: pointer;
  font-family: inherit;
}

ul,
ol {
  list-style: none;
}

/* ─── Container ──────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Logo ───────────────────────────────────────────────────────────────── */
.logo-box {
  width: 34px;
  height: 34px;
  background: var(--teal);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  transform: rotate(-6deg);
  flex-shrink: 0;
}

.logo-text {
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -.3px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  border: 1.5px solid transparent;
  transition: background .18s, color .18s, border-color .18s, box-shadow .18s, transform .12s;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

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

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

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

.btn-cta:hover {
  background: var(--orange-600);
  border-color: var(--orange-600);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  border-color: var(--line);
}

.btn-ghost:hover {
  background: var(--bg);
  border-color: var(--muted-2);
  color: var(--ink);
}

.btn-soft {
  background: var(--teal-50);
  color: var(--teal);
  border-color: var(--teal-100);
}

.btn-soft:hover {
  background: var(--teal-100);
  color: var(--teal-600);
}

.btn-danger {
  background: #fff0eb;
  color: var(--orange);
  border-color: #fdd4c7;
}

.btn-danger:hover {
  background: var(--orange);
  color: #fff;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 13px;
  border-radius: 8px;
}

.btn-lg {
  padding: 13px 28px;
  font-size: 16px;
  border-radius: var(--radius);
}

.btn-full {
  width: 100%;
}

.btn-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--bg);
  border: 1.5px solid var(--line);
  color: var(--muted);
  transition: all .18s;
}

.btn-icon:hover {
  background: var(--orange-50);
  color: var(--orange);
  border-color: #fdd4c7;
}

/* ─── Inputs ─────────────────────────────────────────────────────────────── */
.input,
.select,
.textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: var(--card);
  transition: border-color .18s, box-shadow .18s;
  outline: none;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(17, 144, 168, .12);
}

.input.is-valid {
  border-color: var(--teal);
}

.input.is-invalid {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249, 99, 50, .1);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--muted-2);
}

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7f87' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.textarea {
  resize: vertical;
  min-height: 100px;
}

.label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 6px;
}

.label-link {
  color: var(--teal);
  font-weight: 500;
  font-size: 12px;
}

.label-hint {
  color: var(--muted);
  font-weight: 400;
  font-size: 12px;
}

.input-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.field-status {
  display: none;
  min-height: 17px;
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

.field-status.is-visible {
  display: block;
}

.field-status.status-ok {
  color: var(--teal);
}

.field-status.status-error {
  color: var(--orange);
}

.field-status.status-pending {
  color: var(--muted);
}

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

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

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

.form-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
}

/* Password input wrap */
.input-password-wrap {
  position: relative;
}

.input-password-wrap .input {
  padding-right: 44px;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted);
  padding: 0;
  display: flex;
  align-items: center;
}

.password-toggle:hover {
  color: var(--teal);
}

/* OTP input */
.input-otp {
  letter-spacing: 8px;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  padding: 14px;
}

/* Checkbox */
.check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--ink-2);
}

.check-text {
  display: block;
  flex: 1;
  min-width: 0;
  line-height: 1.45;
}

.check-text a {
  display: inline;
  white-space: nowrap;
}

.check-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.check-custom {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 2px solid var(--line);
  border-radius: 4px;
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .18s;
}

.check-input:checked+.check-custom {
  background: var(--teal);
  border-color: var(--teal);
}

.check-input:checked+.check-custom::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
  margin-top: -2px;
}

/* ─── Cards ──────────────────────────────────────────────────────────────── */
.card {
  background: var(--card);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}

.card-flat {
  background: var(--card);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

/* ─── Divider ────────────────────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}

/* ─── Toast Notifications ────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  max-width: 360px;
  box-shadow: var(--shadow-lg);
  animation: slideInToast .3s ease;
}

.toast-success {
  background: #e7f6f9;
  color: var(--teal-700);
  border: 1px solid var(--teal-100);
}

.toast-error {
  background: #fff0eb;
  color: var(--orange-600);
  border: 1px solid #fdd4c7;
}

@keyframes slideInToast {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

/* ─── Top Nav ────────────────────────────────────────────────────────────── */
.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.topnav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-link {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background .18s, color .18s;
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
  background: var(--teal-50);
  color: var(--teal);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-actions-mobile {
  display: none;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  margin-left: auto;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all .3s;
}

/* ─── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 60px;
  background:
    linear-gradient(to right, #f7fbfc 38%, rgba(247, 251, 252, .92) 58%, rgba(231, 246, 249, .55) 100%),
    url('/public/assets/images/hero-bg.jpg') right center / cover no-repeat;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .4;
}

.hero-blob-1 {
  width: 400px;
  height: 400px;
  background: var(--teal-100);
  top: -100px;
  right: -100px;
  animation: blobFloat 8s ease-in-out infinite;
}

.hero-blob-2 {
  width: 300px;
  height: 300px;
  background: #ffd4c7;
  bottom: -80px;
  left: 10%;
  animation: blobFloat 10s ease-in-out infinite reverse;
}

.hero-blob-3 {
  width: 200px;
  height: 200px;
  background: var(--teal-50);
  top: 40%;
  left: 40%;
  animation: blobFloat 12s ease-in-out infinite;
}

@keyframes blobFloat {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-20px) scale(1.05);
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--teal-50);
  color: var(--teal);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .5;
    transform: scale(1.3);
  }
}

.hero-headline {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.hero-highlight {
  background: linear-gradient(135deg, var(--teal), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

/* Hero card */
.hero-card-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  background: var(--card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  width: 100%;
  max-width: 360px;
  border: 1px solid var(--line);
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.hero-card-avatar-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-600));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
}

.hero-card-name {
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}

.hero-card-role {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.hero-card-skills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero-card-bar {
  margin-bottom: 16px;
}

.hero-card-bar-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.hero-card-progress {
  height: 6px;
  background: var(--line);
  border-radius: 3px;
  overflow: hidden;
}

.hero-card-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--orange));
  border-radius: 3px;
}

.hero-card-bar-pct {
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
  text-align: right;
  margin-top: 2px;
}

.hero-card-stats {
  display: flex;
  gap: 16px;
}

.hero-card-stat {
  flex: 1;
  text-align: center;
}

.hero-card-stat strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}

.hero-card-stat span {
  font-size: 11px;
  color: var(--muted);
}

/* ─── Stats Bar ──────────────────────────────────────────────────────────── */
.stats-bar {
  background: var(--card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px 0;
}

.stats-inner {
  display: flex;
  justify-content: center;
  gap: 0;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 48px;
  border-right: 1px solid var(--line);
}

.stat-card:last-child {
  border-right: none;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon-teal {
  background: var(--teal-50);
  color: var(--teal);
}

.stat-icon-orange {
  background: var(--orange-50);
  color: var(--orange);
}

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

.stat-label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

/* ─── Sections ───────────────────────────────────────────────────────────── */
.section {
  padding: 72px 0;
}

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

.section-header.center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-title {
  font-size: 30px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.5px;
}

.section-sub {
  font-size: 16px;
  color: var(--muted);
  margin-top: 6px;
}

/* ─── CV Cards ───────────────────────────────────────────────────────────── */
.cv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.cv-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
  overflow: hidden;
}

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

.cv-card-avatar {
  display: flex;
  justify-content: center;
  padding: 24px 24px 0;
}

.cv-card-avatar-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--teal-50);
}

.cv-card-avatar-initials {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-600));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 22px;
}

.cv-card-body {
  padding: 16px 24px;
  flex: 1;
}

.cv-card-name {
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  text-align: center;
  margin-bottom: 4px;
}

.cv-card-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}

.cv-card-about {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  text-align: center;
}

.cv-card-footer {
  padding: 0 24px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cv-card-actions {
  display: flex;
  gap: 4px;
  align-items: center;
}

/* ─── Features Grid ──────────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-icon-teal {
  background: var(--teal-50);
  color: var(--teal);
}

.feature-icon-orange {
  background: var(--orange-50);
  color: var(--orange);
}

.feature-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ─── CTA Banner ──────────────────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-700) 100%);
  padding: 60px 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta-title {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.3px;
  margin-bottom: 8px;
}

.cta-sub {
  font-size: 16px;
  color: rgba(255, 255, 255, .8);
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* ─── Steps ───────────────────────────────────────────────────────────────── */
.steps-grid {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.step-card {
  flex: 1;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--orange));
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.step-connector {
  flex: 0 0 40px;
  height: 2px;
  background: var(--line);
  margin-top: 56px;
  align-self: flex-start;
}

/* ─── Newsletter Section ─────────────────────────────────────────────────── */
.newsletter-section {
  background: var(--ink);
  padding: 64px 0;
}

.newsletter-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.newsletter-title {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.3px;
}

.newsletter-sub {
  font-size: 16px;
  color: rgba(255, 255, 255, .6);
  margin-top: 6px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 480px;
}

.newsletter-input {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .2);
  color: #fff;
  flex: 1;
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, .4);
}

.newsletter-input:focus {
  border-color: rgba(255, 255, 255, .5);
  box-shadow: none;
}

.newsletter-note {
  font-size: 13px;
  color: rgba(255, 255, 255, .6);
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .7);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .logo-text {
  color: #fff;
}

.footer-tagline {
  font-size: 14px;
  color: rgba(255, 255, 255, .5);
  line-height: 1.6;
  margin-top: 8px;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.footer-social-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .6);
  transition: background .18s, color .18s;
}

.footer-social-icon:hover {
  background: var(--teal);
  color: #fff;
}

.footer-heading {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 16px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, .5);
  transition: color .18s;
}

.footer-links a:hover {
  color: #fff;
}

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

.footer-newsletter .input {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .15);
  color: #fff;
  font-size: 13px;
}

.footer-newsletter .input::placeholder {
  color: rgba(255, 255, 255, .3);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.footer-bottom a {
  color: rgba(255, 255, 255, .5);
}

.footer-bottom a:hover {
  color: #fff;
}

/* ─── Auth Layout ────────────────────────────────────────────────────────── */
.auth-body {
  background: var(--bg);
}

.auth-shell {
  display: flex;
  min-height: 100vh;
}

.auth-side {
  flex: 0 0 440px;
  background: linear-gradient(155deg, var(--teal) 0%, var(--teal-700) 60%, var(--ink) 100%);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.auth-side .logo-text {
  color: #fff;
}

.auth-tagline {
  margin-top: 48px;
}

.auth-tagline h1 {
  font-size: 34px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 12px;
}

.auth-tagline p {
  font-size: 15px;
  color: rgba(255, 255, 255, .7);
  line-height: 1.6;
}

.auth-features {
  list-style: none;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, .85);
  font-weight: 500;
}

.auth-features li svg {
  flex-shrink: 0;
  color: #7de8d8;
}

.auth-stats {
  display: flex;
  gap: 24px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .15);
}

.auth-stat {
  text-align: center;
}

.auth-stat-num {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}

.auth-stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, .6);
}

.auth-quote {
  margin-top: auto;
  padding: 20px;
  background: rgba(255, 255, 255, .08);
  border-radius: var(--radius-sm);
  border-left: 3px solid rgba(255, 255, 255, .3);
}

.auth-quote p {
  font-size: 14px;
  color: rgba(255, 255, 255, .8);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 8px;
}

.auth-quote cite {
  font-size: 12px;
  color: rgba(255, 255, 255, .5);
  font-style: normal;
}

.auth-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
}

.auth-blob-1 {
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, .06);
  top: -80px;
  right: -80px;
}

.auth-blob-2 {
  width: 200px;
  height: 200px;
  background: rgba(249, 99, 50, .15);
  bottom: 80px;
  right: 20px;
}

.auth-form-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.auth-mobile-nav {
  display: none;
}

.auth-mobile-brand {
  display: inline-flex;
  align-items: center;
}

.auth-mobile-brand img {
  height: 34px;
  width: auto;
}

.auth-mobile-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background .18s, border-color .18s, color .18s;
}

.auth-mobile-home:hover {
  background: var(--teal-50);
  border-color: var(--teal-100);
  color: var(--teal);
}

.auth-form-container {
  width: 100%;
  max-width: 420px;
}

.auth-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 4px;
}

.auth-subtitle {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 32px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.auth-switch {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin-top: 20px;
}

.auth-switch a {
  color: var(--teal);
  font-weight: 600;
}

.verify-icon {
  text-align: center;
  margin-bottom: 16px;
}

/* Password strength */
.password-strength {
  margin: -10px 0 12px;
}

.strength-bar {
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 4px;
}

.strength-fill {
  width: 0;
  height: 100%;
  border-radius: 2px;
  transition: width .3s;
}

.strength-label {
  font-size: 12px;
  color: var(--muted);
}

.strength-fill.strength-weak,
.strength-label.strength-weak {
  color: #c2410c;
}

.strength-fill.strength-weak {
  background: var(--orange);
}

.strength-fill.strength-fair,
.strength-label.strength-fair {
  color: #b7791f;
}

.strength-fill.strength-fair {
  background: #f6ad55;
}

.strength-fill.strength-good,
.strength-label.strength-good {
  color: var(--teal-600);
}

.strength-fill.strength-good {
  background: var(--teal);
}

.strength-fill.strength-strong,
.strength-label.strength-strong {
  color: #047857;
}

.strength-fill.strength-strong {
  background: #10b981;
}

/* ─── App Shell ──────────────────────────────────────────────────────────── */
.app-body {
  background: var(--bg);
}

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

.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app-content {
  flex: 1;
  padding: 24px;
  max-width: 1100px;
}

/* Sidebar */
.sidebar {
  flex: 0 0 260px;
  min-height: 100vh;
  background: var(--card);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  max-height: 100vh;
  overflow-y: auto;
}

.sidebar-header {
  padding: 20px 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

.sidebar-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--teal-50);
}

.sidebar-avatar-initials {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.sidebar-profile-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}

.sidebar-profile-email {
  font-size: 12px;
  color: var(--muted);
}

.sidebar-nav {
  padding: 8px 12px;
}

.side-group-label {
  padding: 8px 8px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  color: var(--muted-2);
  text-transform: uppercase;
  margin-top: 8px;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: all .18s;
  text-decoration: none;
  position: relative;
  margin-bottom: 2px;
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.side-link:hover {
  background: var(--bg);
  color: var(--teal);
}

.side-link.active {
  background: var(--teal-50);
  color: var(--teal);
  font-weight: 600;
}

.side-link-danger {
  color: var(--orange);
}

.side-link-danger:hover {
  background: var(--orange-50);
  color: var(--orange-600);
}

.side-badge {
  margin-left: auto;
  background: var(--orange);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

.sidebar-close {
  display: none;
  background: none;
  border: none;
  color: var(--muted);
  padding: 4px;
}

/* Topbar */
.app-topbar {
  height: 60px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.app-topbar-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  flex: 1;
}

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

.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--muted);
  padding: 4px;
}

.topbar-icon {
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--muted);
  border: 1.5px solid var(--line);
  text-decoration: none;
  transition: all .18s;
}

.topbar-icon:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.badge-dot {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--orange);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* User Chip */
.user-chip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 24px;
  border: 1.5px solid var(--line);
  cursor: pointer;
  background: var(--card);
  transition: border-color .18s;
  user-select: none;
}

.user-chip:hover {
  border-color: var(--teal);
}

.user-chip-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.user-chip-initials {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.user-chip-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.user-chip-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 4px;
  z-index: 200;
  display: none;
}

.user-chip-menu.open {
  display: block;
}

.user-chip-item {
  display: block;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: 6px;
  text-decoration: none;
  transition: background .15s;
}

.user-chip-item:hover {
  background: var(--bg);
  color: var(--ink);
}

.user-chip-item-danger {
  color: var(--orange);
}

.user-chip-item-danger:hover {
  background: var(--orange-50);
}

.user-chip-divider {
  border-top: 1px solid var(--line);
  margin: 4px 0;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .4);
  z-index: 149;
}

/* ─── Dashboard ──────────────────────────────────────────────────────────── */
.dashboard-welcome {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.dashboard-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
}

.dashboard-sub {
  color: var(--muted);
  font-size: 15px;
  margin-top: 4px;
}

.dashboard-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.dashboard-download-btn {
  box-shadow: 0 8px 18px rgba(249, 99, 50, .18);
}

.cv-guide-card {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.35fr);
  gap: 24px;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.cv-guide-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  padding: 4px 8px 4px 0;
}

.cv-guide-kicker {
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cv-guide-title {
  color: var(--ink);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
}

.cv-guide-copy {
  color: var(--muted);
  font-size: 14px;
}

.cv-guide-primary {
  margin-top: 6px;
}

.cv-guide-steps {
  display: grid;
  gap: 8px;
}

.cv-guide-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.cv-guide-step.done {
  background: var(--teal-50);
  border-color: var(--teal-100);
}

.cv-guide-step-num {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #fff;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  border: 1px solid var(--line);
}

.cv-guide-step.done .cv-guide-step-num {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

.cv-guide-step-text {
  display: block;
  min-width: 0;
  color: var(--ink);
}

.cv-guide-step-text strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
}

.cv-guide-step-text span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  margin-top: 2px;
}

/* Visibility Banner */
.vis-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  gap: 16px;
}

.vis-banner-on {
  background: linear-gradient(135deg, #e7f6f9, #cfeef4);
  border: 1px solid var(--teal-100);
}

.vis-banner-off {
  background: #fff7f0;
  border: 1px solid #fdd4c7;
}

.vis-banner-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.vis-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vis-banner-on .vis-icon {
  background: var(--teal);
  color: #fff;
}

.vis-banner-off .vis-icon {
  background: var(--orange);
  color: #fff;
}

.vis-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}

.vis-sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

/* Toggle switch */
.toggle {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

.toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  display: inline-block;
  width: 48px;
  height: 26px;
  background: var(--line);
  border-radius: 13px;
  transition: background .25s;
  position: relative;
}

.toggle-slider::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
  transition: transform .25s;
}

.toggle input:checked+.toggle-slider {
  background: var(--teal);
}

.toggle input:checked+.toggle-slider::after {
  transform: translateX(22px);
}

.toggle-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  margin-left: 8px;
}

/* Tiles */
.tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .18s, transform .18s;
}

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

.tile-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.tile-icon-teal {
  background: var(--teal-50);
  color: var(--teal);
}

.tile-icon-orange {
  background: var(--orange-50);
  color: var(--orange);
}

.tile-count {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}

.tile-label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

/* Dash cards row */
.dash-cards-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .9fr);
  gap: 20px;
}

.activity-chart-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.activity-chart-card .card-header {
  flex: 0 0 auto;
}

.activity-chart-wrap {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px;
  flex: 1;
  min-height: 0;
}

.activity-chart-legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.activity-legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.activity-legend-item strong {
  display: block;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.activity-legend-item span:not(.activity-swatch) {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-swatch {
  width: 10px;
  height: 34px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.activity-swatch-views {
  background: var(--teal);
}

.activity-swatch-downloads {
  background: var(--orange);
}

.activity-swatch-likes {
  background: #d9467d;
}

.activity-chart {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.activity-chart svg {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  flex: 1;
  overflow: visible;
}

.activity-grid-line {
  stroke: var(--line);
  stroke-width: 1.4;
}

.activity-grid-line.soft {
  stroke: var(--line-2);
}

.activity-line {
  fill: none;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.activity-line-views {
  stroke: var(--teal);
}

.activity-line-downloads {
  stroke: var(--orange);
}

.activity-line-likes {
  stroke: #d9467d;
}

.activity-axis-labels {
  display: flex;
  justify-content: space-between;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 700;
  margin-top: 4px;
  padding: 0 2px;
}

.activity-stats {
  display: flex;
  align-items: center;
  gap: 0;
}

.activity-stat {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
}

.activity-divider {
  width: 1px;
  height: 48px;
  background: var(--line);
}

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.activity-count {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
}

.activity-label {
  font-size: 12px;
  color: var(--muted);
}

/* Completion */
.completion-pct {
  font-size: 22px;
  font-weight: 800;
  color: var(--teal);
  margin-left: auto;
}

.progress-bar-wrap {
  margin: 0 0 16px;
}

.progress-bar {
  height: 8px;
  background: var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--orange));
  border-radius: 4px;
  transition: width 1s ease;
}

.checklist {
  list-style: none;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 13px;
  color: var(--muted);
}

.check-item.done {
  color: var(--ink-2);
}

.check-item:last-child {
  border-bottom: none;
}

.check-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.check-item.done .check-circle {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.check-pct {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted-2);
  font-weight: 600;
}

/* Message previews */
.msg-preview-list {
  display: flex;
  flex-direction: column;
}

.msg-preview-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-2);
  text-decoration: none;
  transition: background .15s;
  border-radius: 8px;
  padding: 10px;
}

.msg-preview-item:hover {
  background: var(--bg);
}

.msg-preview-item.unread {
  background: var(--teal-50);
}

.msg-preview-avatar {
  flex-shrink: 0;
}

.msg-preview-avatar img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.msg-preview-initials {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.msg-preview-body {
  flex: 1;
  min-width: 0;
}

.msg-preview-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
}

.msg-preview-subject {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.msg-preview-time {
  font-size: 11px;
  color: var(--muted-2);
  white-space: nowrap;
}

.unread-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  margin-left: 4px;
}

.empty-state-sm {
  text-align: center;
  padding: 32px 16px;
  color: var(--muted);
  font-size: 14px;
}

.empty-state-sm svg {
  margin: 0 auto 12px;
}

/* ─── Profile Sections ────────────────────────────────────────────────────── */
.profile-tabs-wrap {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.profile-step-mobile {
  display: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

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

.profile-step-kicker {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.profile-step-title {
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  text-align: right;
}

.profile-step-select {
  width: 100%;
  margin-bottom: 12px;
}

.profile-step-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.profile-tabs {
  display: flex;
  flex-direction: column;
  gap: 3px;
  position: sticky;
  top: 84px;
  max-height: calc(100vh - 104px);
  overflow-y: auto;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  scrollbar-width: thin;
}

.profile-tabs-heading {
  padding: 2px 4px 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

.profile-tabs-heading span {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.profile-tabs-heading small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  margin-top: 3px;
}

.profile-tabs-group {
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 12px 8px 4px;
}

.profile-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  text-align: left;
  transition: background .18s, color .18s, border-color .18s, transform .12s;
}

.profile-tab:hover {
  background: var(--bg);
  color: var(--ink);
}

.profile-tab.active {
  color: var(--teal);
  background: var(--teal-50);
  border-color: var(--teal-100);
  font-weight: 800;
}

.profile-tab-dot {
  width: 16px;
  height: 16px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  flex: 0 0 auto;
  transition: background .18s, border-color .18s, box-shadow .18s;
}

.profile-tab-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-tab.is-done .profile-tab-dot {
  background: var(--teal);
  border-color: var(--teal);
  box-shadow: inset 0 0 0 4px #fff;
}

.profile-tab.is-dirty .profile-tab-dot {
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: inset 0 0 0 4px #fff;
}

.profile-tab.is-saving .profile-tab-dot {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(17, 144, 168, .12);
  animation: pulseDot 1s ease-in-out infinite;
}

.tab-panel {
  display: none;
  grid-column: 2;
  min-width: 0;
}

.tab-panel.active {
  display: block;
}

@keyframes pulseDot {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(.8);
    opacity: .55;
  }
}

/* Photo upload */
.photo-upload-section {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}

.photo-circle {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  border: 3px solid var(--teal-50);
}

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

.photo-circle-initials {
  width: 100%;
  height: 100%;
  background: var(--teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
}

.photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  opacity: 0;
  transition: opacity .2s;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

.photo-circle:hover .photo-overlay {
  opacity: 1;
}

.photo-upload-hint {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

/* Repeatable blocks */
.rep-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: visible;
  /* must be visible so typeahead dropdowns are not clipped */
  position: relative;
}

.rep-block-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  border-radius: var(--radius) var(--radius) 0 0;
  /* clip header background to match parent corners */
  overflow: hidden;
}

.rep-block-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.rep-block-title {
  flex: 1;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}

.rep-block-subtitle {
  font-weight: 400;
  color: var(--muted);
}

.rep-block-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.rep-block-body {
  padding: 20px;
}

.rep-block-body.collapsed {
  display: none;
}

/* Condensed rep-block header info layout */
.rep-block-info {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.rep-block-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rep-block-at {
  font-weight: 400;
  color: var(--muted);
}

.rep-block-body {
  padding: 16px 20px;
}

/* 3-column form grid */
.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* Related profile editors stacked for comfortable form width */
.dual-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

/* Status badges used in condensed blocks */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4
}

.badge-teal {
  background: #e7f6f9;
  color: #0c6878
}

.badge-orange {
  background: #fef0eb;
  color: #c04b1a
}

.badge-grey {
  background: #f0f2f3;
  color: #556670
}

/* Flexible grow helper */
.flex-grow {
  flex: 1 !important;
}

/* Licence & social rows */
.licence-row,
.social-row {
  flex-wrap: wrap;
  gap: 8px;
}

/* Editor rows */
.editor-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.editor-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.editor-row-simple .input {
  flex: 1;
}

.editor-row-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--line);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.editor-row .input {
  flex: 1;
}

/* Level picker */
.level-picker {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.level-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
  transition: background .18s, transform .12s;
}

.level-dot:hover {
  transform: scale(1.2);
}

.level-dot.filled {
  background: var(--teal);
}

.level-picker-orange .level-dot.filled {
  background: var(--orange);
}

/* Save button */
.save-btn {
  margin-top: 8px;
}

/* ─── CV Database Page ────────────────────────────────────────────────────── */
.db-shell {
  display: flex;
  gap: 0;
  min-height: calc(100vh - var(--nav-h));
}

.filters {
  flex: 0 0 280px;
  background: var(--card);
  border-right: 1px solid var(--line);
  padding: 24px;
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}

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

.filters-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-group {
  margin-bottom: 18px;
}

.db-main {
  flex: 1;
  padding: 28px;
}

.db-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.db-result-count {
  font-size: 14px;
  color: var(--muted);
}

.db-result-count strong {
  color: var(--ink);
}

.filter-active-badge {
  color: var(--teal);
  font-size: 12px;
}

.db-toolbar-right {
  display: flex;
  gap: 8px;
}

#filter-toggle-mobile {
  display: none;
}

.load-more-wrap {
  text-align: center;
  margin-top: 32px;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.empty-state svg {
  margin: 0 auto 16px;
}

.empty-state p {
  font-size: 15px;
  margin-bottom: 16px;
}

/* ─── CV View Page ────────────────────────────────────────────────────────── */
.cv-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px;
}

.cv-page-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 12px;
  flex-wrap: wrap;
}

.cv-page-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.cv-paper {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 40px;
}

.cv-header {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding-bottom: 28px;
  border-bottom: 2px solid var(--line);
  margin-bottom: 28px;
}

.cv-photo-circle {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--teal-50);
  flex-shrink: 0;
}

.cv-initials-circle {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-600));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  flex-shrink: 0;
}

.cv-name {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}

.cv-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cv-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--muted);
}

.cv-meta-link {
  color: var(--teal);
  text-decoration: none;
}

.cv-meta-link:hover {
  text-decoration: underline;
}

.cv-section {
  margin-bottom: 28px;
}

.cv-section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--teal);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--teal-50);
  margin-bottom: 16px;
}

.cv-about-text {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.7;
}

.cv-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

/* Timeline */
.timeline {
  position: relative;
}

.timeline-item {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  position: relative;
}

.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 22px;
  bottom: -16px;
  width: 2px;
  background: var(--line);
}

.timeline-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--teal);
  border: 3px solid var(--teal-50);
  flex-shrink: 0;
  margin-top: 3px;
}

.timeline-dot-orange {
  background: var(--orange);
  border-color: var(--orange-50);
}

.timeline-content {
  flex: 1;
}

.timeline-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 2px;
}

.timeline-sub {
  font-size: 13px;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline-meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.timeline-desc {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.6;
}

.timeline-status {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.status-completed {
  background: #d1fae5;
  color: #065f46;
}

.status-in-progress {
  background: var(--teal-50);
  color: var(--teal-700);
}

.status-incomplete {
  background: var(--orange-50);
  color: var(--orange-600);
}

.badge-current {
  background: var(--orange-50);
  color: var(--orange);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

/* Skills & Level dots */
.skill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.skill-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}

.level-dots {
  display: flex;
  gap: 4px;
}

.level-dots .level-dot {
  width: 12px;
  height: 12px;
  background: var(--line);
  border-radius: 50%;
}

.level-dots .level-dot.filled {
  background: var(--teal);
}

.level-dots-orange .level-dot.filled {
  background: var(--orange);
}

/* Tags */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}

.tag-teal {
  background: var(--teal-50);
  color: var(--teal-700);
}

.tag-orange {
  background: var(--orange-50);
  color: var(--orange-600);
}

/* References */
.refs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ref-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.ref-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 2px;
}

.ref-title {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.ref-contact {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}

.cv-cover-letter {
  border-top: 2px solid var(--line);
  padding-top: 24px;
}

.cover-letter-content {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.8;
}

.cover-letter-content p {
  margin-bottom: 12px;
}

/* CV Personal Details grid */
.cv-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

.cv-detail-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cv-detail-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--muted);
}

.cv-detail-value {
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 500;
}

/* Admin inbox category badges */
.badge-contact {
  background: #fff0eb;
  color: #c04b1a;
  border: 1px solid #fdd4c7;
}

.badge-support {
  background: #fff8e1;
  color: #b45309;
  border: 1px solid #fde68a;
}

.badge-feature {
  background: var(--teal-50);
  color: var(--teal-700);
  border: 1px solid var(--teal-100);
}

.inbox-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

/* ─── CV Templates ────────────────────────────────────────────────────────── */
/* MODERN: sidebar-feel with bold left-border section titles */
.cv-template-modern .cv-header {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 28px 24px;
  margin: -40px -40px 32px;
  border-bottom: none;
}

.cv-template-modern .cv-name {
  color: #fff;
}

.cv-template-modern .cv-meta-item {
  color: #9ab2bb;
}

.cv-template-modern .cv-meta-link {
  color: var(--teal-300, #5fd1e8);
}

.cv-template-modern .cv-initials-circle {
  border: 3px solid rgba(255, 255, 255, .25);
}

.cv-template-modern .cv-photo-circle {
  border-color: rgba(255, 255, 255, .3);
}

.cv-template-modern .cv-section-title {
  border-bottom: none;
  border-left: 4px solid var(--orange);
  padding-left: 10px;
  padding-bottom: 0;
  color: var(--ink);
}

.cv-template-modern .timeline-dot {
  background: var(--orange);
  border-color: var(--orange-50);
}

.cv-template-modern .timeline-dot-orange {
  background: var(--teal);
  border-color: var(--teal-50);
}

.cv-template-modern .timeline-sub {
  color: var(--orange);
}

.cv-template-modern .level-dots .level-dot.filled {
  background: var(--orange);
}

.cv-template-modern .level-dots-orange .level-dot.filled {
  background: var(--teal);
}

.cv-template-modern .tag-teal {
  background: var(--orange-50);
  color: var(--orange-600);
}

/* CREATIVE: gradient header, vibrant accents */
.cv-template-creative .cv-header {
  background: linear-gradient(120deg, var(--teal) 0%, var(--ink) 100%);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 36px 32px;
  margin: -40px -40px 36px;
  border-bottom: none;
}

.cv-template-creative .cv-name {
  color: #fff;
  font-size: 30px;
}

.cv-template-creative .cv-meta-item {
  color: rgba(255, 255, 255, .8);
}

.cv-template-creative .cv-meta-link {
  color: #fff;
}

.cv-template-creative .cv-initials-circle {
  background: linear-gradient(135deg, var(--orange), #e05b00);
  border: none;
  width: 96px;
  height: 96px;
  font-size: 32px;
}

.cv-template-creative .cv-photo-circle {
  width: 96px;
  height: 96px;
  border: 4px solid rgba(255, 255, 255, .4);
}

.cv-template-creative .cv-section-title {
  font-size: 15px;
  color: var(--orange);
  border-bottom-color: var(--orange-50);
}

.cv-template-creative .timeline-title {
  font-size: 16px;
}

.cv-template-creative .tag-teal {
  background: var(--teal-50);
  color: var(--teal-700);
}

.cv-template-creative .ref-card {
  border-left: 3px solid var(--orange);
}

/* MINIMAL: no shadows, stripped borders, clean typography */
.cv-template-minimal.cv-paper {
  box-shadow: none;
  border: none;
  padding: 20px;
}

.cv-template-minimal .cv-header {
  border-bottom-color: var(--ink);
  border-bottom-width: 1px;
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.cv-template-minimal .cv-initials-circle {
  background: var(--ink);
  border-radius: 4px;
}

.cv-template-minimal .cv-name {
  font-size: 22px;
}

.cv-template-minimal .cv-section-title {
  color: var(--ink);
  border-bottom-color: var(--ink);
  border-bottom-width: 1px;
  font-size: 11px;
  letter-spacing: 2px;
}

.cv-template-minimal .timeline-dot {
  background: var(--ink);
  border-color: var(--line);
}

.cv-template-minimal .timeline-dot-orange {
  background: var(--ink);
  border-color: var(--line);
}

.cv-template-minimal .timeline-sub {
  color: var(--ink-2);
}

.cv-template-minimal .level-dots .level-dot.filled {
  background: var(--ink);
}

.cv-template-minimal .level-dots-orange .level-dot.filled {
  background: var(--ink);
}

.cv-template-minimal .tag-teal {
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
}

.cv-template-minimal .tag-orange {
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
}

.cv-template-minimal .ref-card {
  background: transparent;
  border-color: var(--line);
}

.cv-template-minimal .badge-current {
  background: var(--line);
  color: var(--ink-2);
}

/* ─── Messages ────────────────────────────────────────────────────────────── */
/* Strip app-content padding so msg-shell fills the viewport exactly */
.app-content:has(.msg-shell) {
  padding: 0;
  max-width: none;
}

.msg-shell {
  display: flex;
  height: calc(100vh - 60px);
  overflow: hidden;
}

.msg-list {
  flex: 0 0 320px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  background: var(--card);
  overflow-y: auto;
}

.msg-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--card);
  z-index: 1;
}

.msg-list-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}

.msg-list-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.msg-list-empty svg {
  margin: 0 auto 12px;
}

.msg-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line-2);
  text-decoration: none;
  transition: background .15s;
}

.msg-item:hover {
  background: var(--bg);
}

.msg-item.active {
  background: var(--teal-50);
  border-left: 3px solid var(--teal);
}

.msg-item.unread {
  background: #f0f9fb;
}

.msg-item-avatar {
  position: relative;
  flex-shrink: 0;
}

.msg-item-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.msg-item-initials {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.msg-unread-dot {
  position: absolute;
  top: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  border: 2px solid var(--card);
}

.msg-item-body {
  flex: 1;
  min-width: 0;
}

.msg-item-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 2px;
}

.msg-item-preview {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.msg-item-time {
  font-size: 11px;
  color: var(--muted-2);
  white-space: nowrap;
}

.msg-thread {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg);
}

.msg-thread-header {
  padding: 16px 20px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.msg-thread-subject {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}

.msg-thread-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
  gap: 12px;
}

.msg-bubbles {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bubble-wrap {
  display: flex;
  gap: 10px;
  max-width: 70%;
}

.bubble-wrap.mine {
  flex-direction: row-reverse;
  align-self: flex-end;
}

.bubble-wrap.theirs {
  align-self: flex-start;
}

.bubble-avatar img,
.bubble-initials {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.bubble-initials {
  background: var(--teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.bubble {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  max-width: 100%;
}

.bubble-wrap.mine .bubble {
  background: var(--teal);
  color: #fff;
  border-radius: 16px 16px 0 16px;
}

.bubble-wrap.theirs .bubble {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0 16px 16px 16px;
}

.bubble-text {
  font-size: 14px;
  line-height: 1.6;
}

.bubble-time {
  font-size: 11px;
  opacity: .6;
  margin-top: 4px;
}

.msg-composer {
  padding: 16px 20px;
  background: var(--card);
  border-top: 1px solid var(--line);
}

.msg-composer-inner {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.msg-composer-input {
  flex: 1;
  resize: none;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  max-height: 120px;
  outline: none;
  transition: border-color .18s;
}

.msg-composer-input:focus {
  border-color: var(--teal);
}

/* ─── Choose CV Design ────────────────────────────────────────────────────── */
.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.template-card {
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .18s, box-shadow .18s;
  background: var(--card);
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
  font: inherit;
  color: inherit;
}

.template-card:hover {
  border-color: var(--teal-100);
  box-shadow: var(--shadow);
}

.template-card.selected {
  border-color: var(--teal);
}

.template-preview {
  display: block;
  height: 140px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.template-info {
  padding: 14px 16px;
}

.template-info .template-name,
.template-info .template-desc {
  padding-left: 16px;

}

.template-name {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 4px;
}

.template-desc {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.template-selected-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--teal);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.template-card:not(.selected) .template-selected-badge {
  display: none;
}

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

/* ─── Pages ──────────────────────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--teal-50), var(--line-2));
  padding: 60px 0;
  border-bottom: 1px solid var(--line);
}

.page-hero-title {
  font-size: 38px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}

.page-hero-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 600px;
}

/* About page */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: start;
}

.about-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.about-content p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 12px;
  font-size: 15px;
}

.about-stats-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.about-stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}

.about-stat-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--teal);
}

.about-stat-label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

/* FAQ page */
.faq-category {
  margin-bottom: 40px;
}

.faq-category-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--line);
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 16px 20px;
  background: var(--card);
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  gap: 12px;
  transition: background .18s;
}

.faq-question:hover {
  background: var(--bg);
}

.faq-question[aria-expanded="true"] {
  background: var(--teal-50);
  color: var(--teal);
}

.faq-chevron {
  transition: transform .25s;
  flex-shrink: 0;
}

.faq-question[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
}

.faq-answer.open {
  display: block;
}

.faq-answer-inner {
  padding: 16px 20px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  background: var(--bg);
  border-top: 1px solid var(--line);
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 28px;
  align-items: start;
}

.contact-info h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 20px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-info-icon {
  width: 40px;
  height: 40px;
  background: var(--teal-50);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.contact-info-value {
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
  margin-top: 2px;
}

/* Legal / Terms / Privacy */
.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
}

.legal-toc-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--muted);
  margin-bottom: 12px;
}

.legal-toc-list li {
  margin-bottom: 4px;
}

.legal-toc-list a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  display: block;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all .15s;
}

.legal-toc-list a:hover {
  background: var(--bg);
  color: var(--teal);
}

.legal-content section {
  margin-bottom: 40px;
}

.legal-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  padding-top: 8px;
}

.legal-content p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-content ul {
  margin: 12px 0 12px 24px;
  list-style: disc;
}

.legal-content ul li {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 6px;
  line-height: 1.7;
}

.legal-content a {
  color: var(--teal);
}

/* ─── Admin Tables ────────────────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table th {
  text-align: left;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--muted);
  border-bottom: 2px solid var(--line);
  background: var(--bg);
}

.admin-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink-2);
  vertical-align: middle;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background: var(--bg);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}

.status-open {
  background: #d1fae5;
  color: #065f46;
}

.status-closed {
  background: var(--orange-50);
  color: var(--orange-600);
}

.status-muted {
  background: var(--line-2);
  color: var(--muted);
}

.admin-users-content {
  max-width: none;
}

.admin-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.admin-page-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
}

.admin-page-subtitle {
  max-width: 620px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.admin-result-pill {
  min-width: 132px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.admin-summary-tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.admin-summary-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
}

.admin-summary-tile strong {
  display: block;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.admin-users-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.admin-filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) repeat(6, minmax(128px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, var(--bg));
}

.admin-filter-search {
  min-width: 240px;
}

.admin-filter-reset {
  height: 36px;
  align-self: end;
}

.admin-users-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.admin-table-note {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.admin-users-actions {
  display: flex;
  gap: 8px;
}

.admin-users-table-wrap {
  min-height: 360px;
}

.admin-users-table th,
.admin-users-table td {
  white-space: nowrap;
}

.admin-user-cell {
  min-width: 0;
}

.admin-user-primary {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.admin-user-secondary {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.admin-user-flag {
  display: inline-flex;
  margin-left: 6px;
  color: var(--teal);
  font-weight: 700;
}

.admin-user-flag.is-muted {
  color: var(--muted-2);
}

.admin-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-table-empty {
  padding: 48px 20px !important;
  text-align: center;
  color: var(--muted) !important;
}

.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.admin-page-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-page-btn {
  min-width: 36px;
}

.admin-analytics-content {
  max-width: none;
}

.analytics-focus-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.analytics-focus-card {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.analytics-focus-card::after {
  content: '';
  position: absolute;
  right: -34px;
  bottom: -48px;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: rgba(249, 99, 50, .24);
}

.analytics-focus-card span,
.analytics-metric-card span {
  display: block;
  color: inherit;
  opacity: .76;
  font-size: 12px;
  font-weight: 800;
}

.analytics-focus-card strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 12px;
  font-size: 38px;
  line-height: .95;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.analytics-focus-card em,
.analytics-metric-card em {
  display: block;
  margin-top: 8px;
  color: inherit;
  opacity: .72;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.analytics-metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.analytics-metric-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
}

.analytics-metric-card span {
  color: var(--muted);
  opacity: 1;
}

.analytics-metric-card strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.analytics-metric-card em {
  color: var(--muted);
  opacity: 1;
}

.analytics-chart-grid,
.analytics-lists-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.analytics-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.analytics-panel-wide {
  grid-column: span 1;
}

.analytics-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--line);
}

.analytics-panel-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
  font-weight: 800;
}

.analytics-panel-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.analytics-chart-box {
  height: 280px;
  padding: 14px 16px 16px;
}

.analytics-chart-box-tall {
  height: 340px;
}

.analytics-ratio-list {
  display: grid;
  gap: 10px;
  padding: 16px 18px 18px;
}

.analytics-ratio-list div,
.analytics-location-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.analytics-ratio-list div:last-child,
.analytics-location-row:last-child {
  border-bottom: none;
}

.analytics-ratio-list span,
.analytics-location-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.analytics-ratio-list strong,
.analytics-location-row strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.analytics-table-wrap {
  overflow-x: auto;
}

.analytics-table th,
.analytics-table td {
  white-space: nowrap;
}

.analytics-table-primary {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.analytics-table-primary:hover {
  color: var(--orange);
}

.analytics-table-secondary {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.analytics-location-list {
  padding: 8px 18px 14px;
}

.admin-marketing-content {
  max-width: none;
}

.marketing-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.marketing-summary-grid article {
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
}

.marketing-summary-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.marketing-summary-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.marketing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr);
  gap: 16px;
  align-items: start;
}

.marketing-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.marketing-compose {
  padding-bottom: 18px;
}

.marketing-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--line);
}

.marketing-panel-head.is-compact {
  border-bottom: none;
  padding-bottom: 8px;
}

.marketing-panel-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.2;
  font-weight: 800;
}

.marketing-panel-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

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

.marketing-template-note {
  margin: 16px 20px 0;
  padding: 14px 16px;
  border: 1px solid #ffd9c8;
  border-radius: var(--radius-sm);
  background: #fff5f0;
}

.marketing-template-note strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.marketing-template-note span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.marketing-custom-fields>.form-group {
  padding: 16px 20px 0;
}

.marketing-divider {
  height: 1px;
  margin: 18px 0 0;
  background: var(--line);
}

.marketing-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 14px 20px 0;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.marketing-check input {
  margin-top: 2px;
}

.marketing-specific-users {
  padding: 16px 20px 0;
}

.marketing-user-search,
.marketing-test-send,
.marketing-send-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.marketing-user-search .input,
.marketing-test-send .input {
  flex: 1;
}

.marketing-search-results {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.marketing-user-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  text-align: left;
  cursor: pointer;
}

.marketing-user-result strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.marketing-user-result span {
  color: var(--muted);
  font-size: 12px;
}

.marketing-user-result em {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  color: var(--teal);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.marketing-user-result em.is-muted {
  color: var(--muted);
}

.marketing-selected-users {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.marketing-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
}

.marketing-user-chip span {
  font-size: 12px;
  font-weight: 800;
}

.marketing-user-chip em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.marketing-audience-box {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 14px;
  margin: 16px 20px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.marketing-audience-box span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.marketing-audience-box strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 30px;
  line-height: 1;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.marketing-sample {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-content: start;
}

.marketing-sample span {
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink-2);
}

.marketing-sample em {
  color: var(--muted);
  font-style: normal;
}

.marketing-actions-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 16px 20px 0;
}

.marketing-send-box {
  margin: 16px 20px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.marketing-send-box .marketing-check {
  margin: 0 0 12px;
}

.marketing-send-row .select {
  width: 150px;
}

.marketing-send-status {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.marketing-preview-column {
  display: grid;
  gap: 16px;
}

.marketing-preview-frame {
  display: block;
  width: 100%;
  height: 620px;
  border: none;
  background: #eef3f5;
}

.marketing-campaign-list {
  display: grid;
  gap: 0;
}

.marketing-campaign-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.marketing-campaign-item:last-child {
  border-bottom: none;
}

.marketing-campaign-item strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.marketing-campaign-item span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.marketing-empty {
  padding: 12px;
  color: var(--muted);
  font-size: 12px;
}

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

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .5);
}

.modal-box {
  position: relative;
  background: var(--card);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.modal-close {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.modal form {
  padding: 24px;
}

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

/* ─── Tom Select Overrides ───────────────────────────────────────────────── */
.ts-wrapper {
  padding: 0 !important;
}

.ts-wrapper .ts-control {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  border: 1.5px solid var(--line) !important;
  border-radius: var(--radius-sm) !important;
  min-height: 44px !important;
  padding: 0 14px !important;
  background: var(--card) !important;
  box-shadow: none !important;
  gap: 4px !important;
  cursor: text !important;
}

.ts-wrapper .ts-control>input {
  font-size: 14px !important;
  font-family: inherit !important;
  color: var(--ink) !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: normal !important;
  min-height: 0 !important;
  height: auto !important;
  align-self: center !important;
}

.ts-wrapper .ts-control>input::placeholder {
  color: var(--muted-2) !important;
}

.ts-wrapper .ts-control .item {
  font-size: 14px !important;
  font-family: inherit !important;
  color: var(--ink) !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  align-self: center !important;
  line-height: 1 !important;
}

.ts-wrapper.focus .ts-control {
  border-color: var(--teal) !important;
  box-shadow: 0 0 0 3px rgba(17, 144, 168, .12) !important;
}

.ts-dropdown {
  border: 1.5px solid var(--line) !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: var(--shadow) !important;
  margin-top: 2px !important;
}

.ts-dropdown .option {
  padding: 9px 14px !important;
  font-size: 14px !important;
  font-family: inherit !important;
  color: var(--ink) !important;
}

.ts-dropdown .option.active,
.ts-dropdown .option:hover {
  background: var(--teal-50) !important;
  color: var(--teal) !important;
}

.ts-dropdown .no-results {
  padding: 9px 14px !important;
  font-size: 14px !important;
  color: var(--muted) !important;
}

/* ─── Quill Overrides ────────────────────────────────────────────────────── */
.ql-toolbar {
  border: 1.5px solid var(--line) !important;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0 !important;
  background: var(--bg) !important;
}

.ql-container {
  border: 1.5px solid var(--line) !important;
  border-top: none !important;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm) !important;
  font-family: inherit !important;
  font-size: 14px !important;
}

.ql-editor {
  min-height: 280px;
  color: var(--ink);
}

.ql-editor.ql-blank::before {
  color: var(--muted);
  font-style: normal;
}

/* ─── Flatpickr Overrides ────────────────────────────────────────────────── */
.flatpickr-calendar {
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: var(--shadow) !important;
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover {
  background: var(--teal) !important;
  border-color: var(--teal) !important;
}

.flatpickr-day:hover {
  background: var(--teal-50) !important;
}

/* ─── Close Account ───────────────────────────────────────────────────────── */
.close-account-warning {
  background: var(--orange-50);
  border: 1px solid #fdd4c7;
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: 24px;
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-card-wrap {
    display: none;
  }

  .hero-headline {
    font-size: 34px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats-inner {
    flex-direction: column;
    gap: 20px;
  }

  .stat-card {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 16px 0;
    justify-content: center;
  }

  .stat-card:last-child {
    border-bottom: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
  }

  .dash-cards-row {
    grid-template-columns: 1fr;
  }

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

  .profile-tabs {
    display: none;
  }

  .profile-step-mobile {
    display: block;
  }

  .profile-tabs-wrap {
    display: block;
  }

  .tab-panel {
    grid-column: auto;
  }

  .admin-page-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  .admin-filter-search {
    grid-column: 1 / -1;
  }

  .admin-filter-reset {
    width: 100%;
  }

  .admin-pagination {
    flex-wrap: wrap;
    justify-content: center;
  }

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

  .analytics-metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .analytics-chart-grid,
  .analytics-lists-grid {
    grid-template-columns: 1fr;
  }

  .marketing-layout {
    grid-template-columns: 1fr;
  }

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

  .sidebar {
    position: fixed;
    left: -260px;
    z-index: 150;
    transition: left .3s;
    max-height: 100vh;
  }

  .sidebar.open {
    left: 0;
  }

  .sidebar-overlay.open {
    display: block;
  }

  .sidebar-close {
    display: flex;
  }

  .sidebar-toggle {
    display: flex;
  }

  .db-shell {
    flex-direction: column;
  }

  .filters {
    flex: none;
    width: 100%;
    height: auto;
    position: relative;
    top: 0;
    display: none;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .filters.open {
    display: block;
  }

  #filter-toggle-mobile {
    display: flex;
  }

  .msg-shell {
    height: auto;
    flex-direction: column;
  }

  .msg-list {
    flex: none;
    height: 250px;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .msg-thread {
    height: calc(100vh - 310px);
  }

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

  .refs-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    flex-direction: column;
  }

  .step-connector {
    width: 2px;
    height: 24px;
    margin: 0 auto;
  }

  .cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .form-grid-2,
  .form-grid-3 {
    grid-template-columns: 1fr;
  }

  .form-grid-2 [style*="grid-column:1/-1"],
  .form-grid-3 [style*="grid-column:1/-1"],
  .form-grid-3 [style*="grid-column:span 2"] {
    grid-column: auto;
  }

  .qual-institute-group,
  .qual-name-group,
  .qual-type-group,
  .exp-jobtitle-group,
  .exp-description-group,
  .exp-reason-group {
    grid-column: 1 / -1 !important;
  }

  .dual-card-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .nav-actions-desktop {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, .98);
    backdrop-filter: blur(12px);
    padding: 12px 20px 20px;
    box-shadow: 0 8px 32px rgba(12, 42, 53, .14);
    border-top: 1px solid var(--line);
    z-index: 999;
    gap: 2px;
    animation: navSlideDown .18s ease;
  }

  .nav-links.open li {
    width: 100%;
  }

  .nav-links.open .nav-link {
    display: block;
    padding: 13px 16px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 10px;
    width: 100%;
  }

  .nav-links.open .nav-actions-mobile {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  .nav-links.open .nav-actions-mobile .btn {
    width: 100%;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .nav-hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@keyframes navSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

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

@media (max-width: 540px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .hero-headline {
    font-size: 28px;
  }

  .section {
    padding: 48px 0;
  }

  .cv-paper {
    padding: 20px;
  }

  .cv-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .cv-meta-row {
    justify-content: center;
  }

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

  .dashboard-welcome {
    flex-direction: column;
  }

  .dashboard-header-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-header-actions .btn {
    width: 100%;
  }

  .cv-guide-card {
    padding: 18px;
  }

  .cv-guide-title {
    font-size: 21px;
  }

  .activity-chart-legend {
    grid-template-columns: 1fr;
  }

  .activity-legend-item {
    padding: 10px 12px;
  }

  .auth-side {
    display: none;
  }

  .auth-form-wrap {
    align-items: center;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 100vh;
    padding: 24px 20px;
  }

  .auth-mobile-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 420px;
    margin-bottom: 28px;
  }

  .auth-form .form-check .check-label {
    align-items: flex-start;
  }

  .auth-form .form-check .check-custom {
    margin-top: 1px;
  }

  .profile-tabs {
    flex-wrap: wrap;
  }

  .admin-summary-grid,
  .admin-filter-bar {
    grid-template-columns: 1fr;
  }

  .analytics-focus-grid,
  .analytics-metric-grid {
    grid-template-columns: 1fr;
  }

  .marketing-summary-grid,
  .marketing-form-grid,
  .marketing-audience-box,
  .marketing-actions-grid {
    grid-template-columns: 1fr;
  }

  .marketing-user-search,
  .marketing-test-send,
  .marketing-send-row {
    align-items: stretch;
    flex-direction: column;
  }

  .marketing-send-row .select {
    width: 100%;
  }

  .marketing-preview-frame {
    height: 520px;
  }

  .analytics-focus-card {
    min-height: 112px;
  }

  .analytics-focus-card strong {
    font-size: 32px;
  }

  .analytics-chart-box {
    height: 240px;
    padding: 12px;
  }

  .analytics-chart-box-tall {
    height: 320px;
  }

  .admin-users-table-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    flex-direction: column;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Print styles for CV */
@media print {

  .topnav,
  .site-footer,
  .cv-page-bar {
    display: none !important;
  }

  .cv-paper {
    box-shadow: none;
    border: none;
    padding: 0;
  }

  body {
    background: white;
  }
}
