/* ═══════════════════════════════════════════
   CV TVŮRCE — Brand-aligned styly
   Glejt.cz design system — tokeny z :root
   ═══════════════════════════════════════════ */

/* ── Layout & reset ──────────────────────── */
#cv-app {
  font-family: 'IBM Plex Sans', sans-serif;
  background: var(--light, #F8F6FF);
  color: var(--text, #1A0A2E);
  min-height: 100vh;
}

/* ── Hlavička ────────────────────────────── */
/* Kopie .ps-header z homepage — background sage, zlatý border */
.cv-header {
  background: var(--sage, #3D1A6B);
  border-bottom: 2px solid rgba(201,168,76,0.35);
  height: 80px;
  display: flex;
  align-items: center;
  padding: 0 48px;
  gap: 12px;
  position: relative;
  z-index: 10;
  overflow: hidden;
}
/* Subtilní hexagonový brand motiv */
.cv-header::before {
  content: '⬡';
  position: absolute;
  right: 200px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 160px;
  opacity: .04;
  pointer-events: none;
  line-height: 1;
  color: #fff;
}
.cv-header::after {
  content: '⬡';
  position: absolute;
  right: 40px;
  top: -40px;
  font-size: 110px;
  opacity: .03;
  pointer-events: none;
  line-height: 1;
  color: #fff;
}
/* Logo vlevo — odkaz na homepage */
.cv-header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: 1;
  position: relative;
  z-index: 1;
  transition: opacity 0.2s;
}
.cv-header-logo:hover { opacity: 0.8; }
.cv-header-brand      { display: flex; flex-direction: column; }
.cv-header-brand-name {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
  line-height: 1.2;
}
.cv-header-brand-sub {
  font-size: 9px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.8px;
  margin-top: 1px;
}
/* Název produktu — střed */
.cv-header-center {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}
.cv-header-h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 21px;
  font-weight: 700;
  color: var(--gold, #C9A84C);
  margin: 0;
  white-space: nowrap;
}
/* Pravá část — prázdná (dávka 3: login) */
.cv-header-right {
  flex: 1;
  position: relative;
  z-index: 1;
}

/* ── Stepper — desktop ───────────────────── */
.cv-stepper-wrap {
  background: #FFFFFF;
  border-bottom: 1px solid var(--sand, #E8E0F5);
  padding: 18px 40px 16px;
}
.cv-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  max-width: 840px;
  margin: 0 auto;
}
.cv-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}
/* Spojovací čára mezi kroky */
.cv-step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 13px;
  left: calc(50% + 16px);
  right: calc(-50% + 16px);
  height: 2px;
  background: var(--sand, #E8E0F5);
  z-index: 0;
  transition: background 0.3s;
}
.cv-step-item.done:not(:last-child)::after {
  background: var(--gold, #C9A84C);
}
/* Kruh */
.cv-step-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #C5B8E0;
  background: #fff;
  color: #C5B8E0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  position: relative;
  z-index: 1;
  transition: all 0.25s;
  flex-shrink: 0;
}
.cv-step-item.done .cv-step-circle {
  background: var(--gold, #C9A84C);
  border-color: var(--gold, #C9A84C);
  color: var(--forest, #1A0A2E);
  font-size: 12px;
}
.cv-step-item.active .cv-step-circle {
  border-color: var(--gold, #C9A84C);
  border-width: 2.5px;
  color: var(--gold, #C9A84C);
  box-shadow: 0 0 0 4px rgba(201,168,76,0.15);
}
/* Popisek */
.cv-step-label {
  font-size: 10px;
  color: #C5B8E0;
  margin-top: 6px;
  text-align: center;
  white-space: nowrap;
}
.cv-step-item.active .cv-step-label {
  color: var(--sage, #3D1A6B);
  font-weight: 600;
}
.cv-step-item.done .cv-step-label {
  color: #9B8AB8;
}
/* Stepper — navigace klikem na hotové kroky */
.cv-step-item.clickable         { cursor: pointer; }
.cv-step-item.future            { cursor: not-allowed; }
.cv-step-item.clickable:hover .cv-step-circle {
  box-shadow: 0 0 0 5px rgba(201,168,76,0.28);
  transition: box-shadow 0.2s;
}

/* ── Stepper — mobil ─────────────────────── */
.cv-stepper-mobile {
  display: none;
  padding: 12px 20px;
  background: #fff;
  border-bottom: 1px solid var(--sand, #E8E0F5);
}
.cv-stepper-mobile-text {
  font-size: 13px;
  color: #6B5B8A;
  margin-bottom: 8px;
}
.cv-stepper-mobile-text strong {
  color: var(--sage, #3D1A6B);
}
.cv-stepper-progress {
  height: 3px;
  background: var(--sand, #E8E0F5);
  border-radius: 2px;
  overflow: hidden;
}
.cv-stepper-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold, #C9A84C), #e8c97a);
  border-radius: 2px;
  transition: width 0.4s ease;
}

/* ── Tělo stránky ────────────────────────── */
.cv-body {
  max-width: 800px;
  margin: 36px auto;
  padding: 0 20px 80px;
}

/* ── Karta (form container) ──────────────── */
.cv-card {
  background: #FFFFFF;
  border-radius: 14px;
  border: 1px solid var(--sand, #E8E0F5);
  box-shadow: 0 4px 24px rgba(61,26,107,0.07);
  padding: 36px;
}
.cv-card-title {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--gold, #C9A84C);
  margin-bottom: 6px;
}
.cv-card-subtitle {
  font-size: 13px;
  color: #6B5B8A;
  margin-bottom: 28px;
  line-height: 1.55;
}

/* ── Formulářové řádky ───────────────────── */
.cv-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.cv-row.full   { grid-template-columns: 1fr; }
.cv-row.triple { grid-template-columns: 1fr 1fr 1fr; }

.cv-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.cv-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text, #1A0A2E);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Inputy — stejný styl jako ve styly.css */
.cv-input,
.cv-select,
.cv-textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid #C5B8E0;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'IBM Plex Sans', sans-serif;
  color: var(--text, #1A0A2E);
  background: #FFFFFF;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  box-sizing: border-box;
}
.cv-input:focus,
.cv-select:focus,
.cv-textarea:focus {
  border-color: var(--sage, #3D1A6B);
  box-shadow: 0 0 0 3px rgba(61,26,107,0.12);
}
.cv-textarea {
  min-height: 100px;
  resize: vertical;
}

/* ── AI tlačítko ─────────────────────────── */
.cv-ai-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 6px 13px;
  border-radius: 6px;
  background: var(--pu-pale, #f3eeff);
  color: var(--sage, #3D1A6B);
  border: 1px solid #C5B8E0;
  cursor: pointer;
  margin-top: 6px;
  transition: all 0.15s;
  font-family: 'IBM Plex Sans', sans-serif;
}
.cv-ai-btn:hover {
  background: var(--sand, #E8E0F5);
  border-color: var(--sage, #3D1A6B);
}

/* ── Upload zóna ─────────────────────────── */
.cv-upload {
  border: 2px dashed #C5B8E0;
  border-radius: 10px;
  padding: 22px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
  background: var(--light, #F8F6FF);
}
.cv-upload:hover {
  border-color: var(--sage, #3D1A6B);
  background: var(--pu-pale, #f3eeff);
}
.cv-upload-icon { font-size: 28px; margin-bottom: 8px; }
.cv-upload-text { font-size: 13px; color: #6B5B8A; }
.cv-upload.verified {
  border-color: #3B6D11;
  background: rgba(59,109,17,0.05);
}
.cv-verified-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.82em;
  font-weight: 600;
  background: #f0ead8;
  color: #5a4a2a;
  border: 1px solid #d4b96a;
  margin-top: 4px;
}

/* ── Foto upload ─────────────────────────── */
.cv-foto-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.cv-foto-preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--light, #F8F6FF);
  border: 2px dashed #C5B8E0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s;
}
.cv-foto-preview:hover { border-color: var(--sage, #3D1A6B); }
.cv-foto-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ── Navigace ────────────────────────────── */
.cv-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--sand, #E8E0F5);
}
.cv-btn-back {
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  background: transparent;
  border: 1.5px solid #C5B8E0;
  color: #6B5B8A;
  cursor: pointer;
  font-family: 'IBM Plex Sans', sans-serif;
  transition: all 0.2s;
}
.cv-btn-back:hover {
  border-color: var(--sage, #3D1A6B);
  color: var(--sage, #3D1A6B);
}
/* Zlaté CTA — stejné jako .btn-g ve styly.css */
.cv-btn-next,
.cv-btn-generate {
  padding: 11px 30px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  background: var(--gold, #C9A84C);
  color: var(--forest, #1A0A2E);
  border: none;
  cursor: pointer;
  font-family: 'IBM Plex Sans', sans-serif;
  transition: background 0.2s, transform 0.15s;
}
.cv-btn-next:hover,
.cv-btn-generate:hover {
  background: #b8923e;
  transform: translateY(-1px);
}
.cv-btn-generate {
  font-size: 15px;
  padding: 13px 36px;
}

/* ── Entry blok (zkušenost, vzdělání) ────── */
.cv-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--sage, #3D1A6B);
  background: none;
  border: 1.5px dashed #C5B8E0;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  width: 100%;
  margin-top: 8px;
  font-family: 'IBM Plex Sans', sans-serif;
  box-sizing: border-box;
  transition: border-color 0.2s, color 0.2s;
}
.cv-add-btn:hover {
  border-color: var(--sage, #3D1A6B);
}
.cv-entry {
  background: var(--light, #F8F6FF);
  border: 1px solid var(--sand, #E8E0F5);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 14px;
  position: relative;
}
.cv-entry-remove {
  position: absolute;
  right: 12px;
  top: 12px;
  background: none;
  border: none;
  color: #C5B8E0;
  cursor: pointer;
  font-size: 16px;
  transition: color 0.15s;
  line-height: 1;
}
.cv-entry-remove:hover { color: #c0392b; }

/* ── Design picker ───────────────────────── */
.cv-design-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.cv-design-card {
  border: 2px solid var(--sand, #E8E0F5);
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}
.cv-design-card:hover { border-color: #C5B8E0; }
.cv-design-card.selected {
  border-color: var(--gold, #C9A84C);
  background: rgba(201,168,76,0.05);
}
.cv-design-thumb {
  height: 80px;
  border-radius: 6px;
  margin-bottom: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cv-design-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text, #1A0A2E);
}

/* ── Shrnutí box ─────────────────────────── */
.cv-summary-box {
  background: var(--light, #F8F6FF);
  border: 1px solid var(--sand, #E8E0F5);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 24px;
  font-size: 13px;
  line-height: 2.2;
  color: var(--text, #1A0A2E);
}
.cv-summary-box strong {
  font-weight: 600;
  color: var(--text, #1A0A2E);
  min-width: 140px;
  display: inline-block;
}

/* ── Cena / platba ───────────────────────── */
.cv-price-box {
  background: linear-gradient(135deg, #3D1A6B 0%, #2d1a5e 60%, #1A0A2E 100%);
  border-radius: 14px;
  padding: 28px;
  text-align: center;
  color: #fff;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.cv-price-box::after {
  content: '⬡';
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 110px;
  opacity: .05;
  pointer-events: none;
  line-height: 1;
}
.cv-price {
  font-family: 'DM Serif Display', serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--gold, #C9A84C);
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}
.cv-price-note {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  position: relative;
  z-index: 1;
}

/* ── Responzivita ────────────────────────── */
@media (max-width: 768px) {
  .cv-header          { padding: 0 16px; height: 60px; }
  .cv-header-h1       { font-size: 16px; }
  .cv-header-brand-sub { display: none; }
  .cv-header::before,
  .cv-header::after   { display: none; }
  .cv-header-title    { font-size: 15px; }
  .cv-header-sub      { display: none; }

  /* Stepper — skryj desktop, zobraz mobile */
  .cv-stepper-wrap    { display: none; }
  .cv-stepper-mobile  { display: block; }

  .cv-body   { margin: 16px auto; padding: 0 12px 60px; }
  .cv-card   { padding: 20px 16px; border-radius: 10px; }
  .cv-card-title { font-size: 18px; }

  .cv-row        { grid-template-columns: 1fr; }
  .cv-row.triple { grid-template-columns: 1fr; }
  .cv-design-grid { grid-template-columns: 1fr; }

  .cv-btn-save { font-size: 12px; padding: 6px 12px; }
}

@media (max-width: 480px) {
  .cv-nav { flex-direction: column-reverse; gap: 10px; }
  .cv-btn-back,
  .cv-btn-next { width: 100%; justify-content: center; text-align: center; }
}

/* ── Validační chybové stavy ─────────────────────────────── */
.cv-input-error {
  border-color: #e05c5c !important;
  box-shadow: 0 0 0 2px rgba(224, 92, 92, 0.18) !important;
}
.cv-field-error {
  display: block;
  color: #e05c5c;
  font-size: 12px;
  margin-top: 4px;
  font-style: italic;
}

/* ── AI "Přečetl jsem" checkbox ─────────────────────────── */
.cv-ai-verify {
  margin-top: 8px;
  padding: 10px 14px;
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 6px;
  transition: background 0.2s, border-color 0.2s;
}
.cv-ai-verify-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text, #1A0A2E);
}
.cv-ai-verify input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--gold, #C9A84C);
  flex-shrink: 0;
}
.cv-ai-verify-highlight {
  border-color: #e05c5c !important;
  background: rgba(224, 92, 92, 0.08) !important;
  animation: cv-shake 0.35s ease;
}
.cv-ai-verified-badge {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  color: #5cb85c;
  font-style: italic;
}
@keyframes cv-shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-5px); }
  60%       { transform: translateX(5px); }
}
/* ── Vzdělání — autocomplete ─────────────────────────────── */
.cv-ac-wrap { position: relative; }
.cv-ac-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: #fff;
  max-height: 360px;
  overflow-y: auto;
  border: 1px solid rgba(201,168,76,0.35);
  border-top: none;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 4px 12px rgba(26,10,46,0.12);
  z-index: 100;
  max-height: 220px;
  overflow-y: auto;
}
.cv-ac-item {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text, #1A0A2E);
  border-bottom: 1px solid rgba(201,168,76,0.1);
}
.cv-ac-item:hover { background: rgba(201,168,76,0.08); }
.cv-ac-item:last-child { border-bottom: none; }
.cv-ac-manual {
  font-style: italic;
  color: var(--gold, #C9A84C);
  font-size: 12px;
}
.cv-ac-back-btn {
  background: none;
  border: none;
  color: var(--gold, #C9A84C);
  font-size: 12px;
  cursor: pointer;
  padding: 2px 0;
  margin-top: 4px;
}
.cv-ac-back-btn:hover { text-decoration: underline; }
.cv-navrh-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #7a6a9a;
  margin-top: 4px;
  cursor: pointer;
}
.cv-navrh-label input[type="checkbox"] { accent-color: var(--gold, #C9A84C); }
.cv-field-grow { flex: 2; }
.cv-edu-entry { border-bottom: 1px solid rgba(201,168,76,0.15); padding-bottom: 20px; margin-bottom: 20px; }
.cv-edu-entry:last-of-type { border-bottom: none; }
/* ── Jazyky — řádky ─────────────────────────────────────── */
.cv-lang-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 10px;
}
.cv-lang-row .cv-field { min-width: 0; }
.cv-lang-row .cv-field-grow { flex: 2; }
.cv-lang-remove {
  flex-shrink: 0;
  background: none;
  border: 1px solid rgba(224,92,92,0.4);
  color: #e05c5c;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  padding: 0;
}
.cv-lang-remove:hover { background: rgba(224,92,92,0.08); }
.cv-lang-remove-placeholder { width: 28px; flex-shrink: 0; display: inline-block; }
/* ── Design picker — thumbnail PNG ──────────────────────── */
.cv-design-thumb { overflow: hidden; border-radius: 6px 6px 0 0; background: #eee; height: 120px; display: flex; align-items: center; justify-content: center; }
.cv-design-thumb-img { width: 100%; height: 120px; object-fit: cover; object-position: top; display: block; }

/* ── Stupeň hint ─────────────────────────────────────────── */
.cv-stupen-hint {
  font-size: 12px;
  color: #9B8AB8;
  margin-top: 5px;
  padding: 5px 10px;
  background: rgba(155,138,184,0.10);
  border-radius: 5px;
  border-left: 3px solid #9B8AB8;
}
/* ── Dropdown info row ─────────────────────────────── */
.cv-dd-info {
  font-size: 12px;
  color: #9B8AB8;
  text-align: center;
  padding: 7px 10px;
  border-top: 1px solid rgba(155,138,184,0.18);
  cursor: default;
  background: #fafafa;
  pointer-events: none;
  user-select: none;
}

/* ══════════════════════════════════════════
   CV AUTH MODAL — povinné přihlášení
   ══════════════════════════════════════════ */

/* Overlay */
#cv-auth-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 4, 30, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 16px;
}
#cv-auth-modal.open { display: flex; }

/* Wizard za modalem — blur */
body.cv-blur-bg #cv-app {
  filter: blur(3px);
  pointer-events: none;
  user-select: none;
}
body.cv-blur-bg .cv-header {
  filter: blur(3px);
  pointer-events: none;
}

/* Karta modalu */
.cv-auth-card {
  background: #fff;
  border-radius: 18px;
  padding: 32px 28px 28px;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
  position: relative;
}

/* Logo */
.cv-auth-logo {
  text-align: center;
  margin-bottom: 12px;
}

/* Titulek */
.cv-auth-title {
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  color: #1A0A2E;
  text-align: center;
  line-height: 1.4;
  margin-bottom: 20px;
}
.cv-auth-reset-title {
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  color: #1A0A2E;
  margin-bottom: 6px;
}
.cv-auth-sub {
  font-size: 13px;
  color: #6B5B8A;
  margin-bottom: 18px;
  line-height: 1.5;
}

/* Záložky */
.cv-auth-tabs {
  display: flex;
  border-bottom: 2px solid #E8E0F5;
  margin-bottom: 20px;
  gap: 0;
}
.cv-auth-tab {
  flex: 1;
  background: none;
  border: none;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'IBM Plex Sans', sans-serif;
  color: #6B5B8A;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
}
.cv-auth-tab:hover { color: #3D1A6B; }
.cv-auth-tab.active {
  color: #1A0A2E;
  border-bottom-color: #C9A84C;
}

/* Formuláře */
.cv-auth-form { /* display block by default, display none when hidden */ }

/* Label */
.cv-auth-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #6B5B8A;
  margin-bottom: 5px;
}

/* Field wrapper */
.cv-auth-field {
  position: relative;
  margin-bottom: 14px;
}

/* Input */
.cv-auth-input {
  width: 100%;
  padding: 11px 38px 11px 13px;
  border: 1.5px solid #C5B8E0;
  border-radius: 10px;
  font-size: 14px;
  font-family: 'IBM Plex Sans', sans-serif;
  color: #1A0A2E;
  outline: none;
  background: #F8F6FF;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.cv-auth-input:focus {
  border-color: #3D1A6B;
  box-shadow: 0 0 0 3px rgba(61, 26, 107, 0.12);
  background: #fff;
}

/* Eye toggle */
.cv-auth-eye {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #6B5B8A;
  display: flex;
  align-items: center;
  padding: 2px;
  transition: color 0.15s;
}
.cv-auth-eye:hover { color: #3D1A6B; }

/* Zapomenuté heslo */
.cv-auth-forgot {
  display: block;
  text-align: right;
  font-size: 12px;
  color: #3D1A6B;
  font-weight: 500;
  cursor: pointer;
  margin-top: -6px;
  margin-bottom: 16px;
  background: none;
  border: none;
  font-family: inherit;
  padding: 0;
}
.cv-auth-forgot:hover { text-decoration: underline; }

/* Chyba */
.cv-auth-err {
  background: #FCEBEB;
  border: 1px solid #F09595;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  color: #A32D2D;
  margin-bottom: 12px;
}

/* Neověřeno box */
.cv-auth-nevereno {
  background: #FEF3CD;
  border: 1px solid #E8B84B;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  color: #7A5200;
  margin-bottom: 12px;
  line-height: 1.5;
}
.cv-auth-nevereno-btn {
  background: none;
  border: none;
  color: #3D1A6B;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-size: 13px;
  font-family: inherit;
}
.cv-auth-nevereno-btn:hover { text-decoration: underline; }

/* Success box */
.cv-auth-success {
  background: #EAF3DE;
  border: 1px solid #97C459;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  color: #27500A;
  margin-bottom: 12px;
}

/* Tlačítko */
.cv-auth-btn {
  width: 100%;
  padding: 13px;
  background: #3D1A6B;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'IBM Plex Sans', sans-serif;
  transition: background 0.2s;
  margin-bottom: 12px;
}
.cv-auth-btn:hover:not(:disabled) { background: #5B2D9A; }
.cv-auth-btn:disabled {
  background: #C5B8E0;
  cursor: not-allowed;
}

/* Zpět tlačítko */
.cv-auth-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: #3D1A6B;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  margin-bottom: 14px;
}
.cv-auth-back:hover { text-decoration: underline; }

/* Přepnutí tab odkaz */
.cv-auth-switch {
  text-align: center;
  font-size: 13px;
  color: #6B5B8A;
}
.cv-auth-switch a {
  color: #3D1A6B;
  font-weight: 600;
  text-decoration: none;
}
.cv-auth-switch a:hover { text-decoration: underline; }

/* Dvousloupcové řádky */
.cv-auth-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.cv-auth-grp { margin-bottom: 2px; }
.cv-auth-grp .cv-auth-input { margin-bottom: 0; }
.cv-auth-grp .cv-auth-field { margin-bottom: 12px; }

/* Checkboxy - souhlasy */
.cv-auth-terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 13px;
  color: #1A0A2E;
  line-height: 1.5;
}
.cv-auth-terms input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #3D1A6B;
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.cv-auth-terms a {
  color: #3D1A6B;
  font-weight: 600;
  text-decoration: none;
}
.cv-auth-terms a:hover { text-decoration: underline; }

/* ── Header uživatel ───────────────────── */
.cv-header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 1;
  position: relative;
  z-index: 1;
  font-size: 13px;
}
.cv-hu-name {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}
.cv-hu-sep {
  color: rgba(255, 255, 255, 0.3);
}
.cv-hu-link {
  color: #C9A84C;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.cv-hu-link:hover { opacity: 0.8; text-decoration: underline; }
.cv-hu-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  padding: 0;
}

/* Mobilní úpravy */
@media (max-width: 480px) {
  .cv-auth-row2 { grid-template-columns: 1fr; }
  .cv-auth-card { padding: 24px 18px 20px; }
  .cv-hu-name   { display: none; }
  .cv-hu-sep:first-of-type { display: none; }
}
