/* 1CV site design (layout "main"), on top of Bootstrap 5 (RTL build for rtl pages).
   Only logical properties (inline-start / inline-end), so the same rules work in both directions. */

:root {
  --brand: #5b4bdb;
  --brand-600: #4b3cc4;
  --brand-2: #8b5cf6;
  --brand-soft: #efecff;
  --ink: #141627;
  --muted: #646b7f;
  --line: #e8e9f1;
  --bg: #ffffff;
  --bg-soft: #f6f6fb;
  --radius: 20px;
  --shadow-sm: 0 2px 10px rgba(24, 22, 60, .05);
  --shadow: 0 18px 50px rgba(36, 28, 110, .10);
  --bs-body-font-family: "Heebo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --bs-body-color: var(--ink);
  --bs-link-color-rgb: 91, 75, 219;
  --bs-link-hover-color-rgb: 75, 60, 196;
}
html[lang="ar"] { --bs-body-font-family: "Noto Sans Arabic", "Heebo", system-ui, Arial, sans-serif; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body.site { background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
.site h1, .site h2, .site h3 { letter-spacing: -.02em; }

/* ---------- buttons ---------- */
.btn-brand {
  --bs-btn-color: #fff; --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--brand-600); --bs-btn-hover-border-color: var(--brand-600);
  --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--brand-600); --bs-btn-active-border-color: var(--brand-600);
  --bs-btn-focus-shadow-rgb: 91, 75, 219;
  font-weight: 700; border-radius: 12px; padding-inline: 1.25rem;
  box-shadow: 0 8px 22px rgba(91, 75, 219, .28);
}
.btn-brand.btn-lg { padding: .8rem 1.6rem; border-radius: 14px; }
.btn-ghost {
  --bs-btn-color: var(--ink); --bs-btn-bg: #fff; --bs-btn-border-color: var(--line);
  --bs-btn-hover-color: var(--brand); --bs-btn-hover-bg: #fff; --bs-btn-hover-border-color: #cfc9ff;
  font-weight: 600; border-radius: 14px;
}
.btn-ghost.btn-lg { padding: .8rem 1.4rem; }

/* ---------- header ---------- */
.site-header { background: rgba(255, 255, 255, .86); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.site-header .navbar { min-height: 72px; }
.site-logo { font-size: 1.75rem; font-weight: 800; letter-spacing: -1px; color: var(--ink); text-decoration: none; direction: ltr; display: inline-flex; }
.site-logo:hover { color: var(--ink); }
.site-logo-one { color: var(--brand); }
.site-logo-light, .site-logo-light:hover { color: #fff; }
.site-logo-light .site-logo-one { color: #a99dff; }
.site-header .nav-link { color: #4b5064; font-weight: 600; font-size: .95rem; }
.site-header .nav-link:hover { color: var(--brand); }
.site-nav-account { color: #4b5064; font-weight: 600; text-decoration: none; padding-inline: .5rem; }
.site-nav-account:hover { color: var(--brand); }

/* ---------- hero ---------- */
.site-hero {
  position: relative; overflow: hidden; padding: 72px 0 88px;
  background:
    radial-gradient(600px 380px at 85% 10%, rgba(139, 92, 246, .16), transparent 70%),
    radial-gradient(520px 360px at 10% 90%, rgba(91, 75, 219, .12), transparent 70%),
    linear-gradient(180deg, #faf9ff 0%, #ffffff 100%);
}
.site-pill {
  display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .9rem; border-radius: 999px;
  background: var(--brand-soft); color: #4a3cc0; font-weight: 700; font-size: .875rem;
}
.site-hero-title { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; line-height: 1.08; margin: 1.25rem 0 1rem; }
.site-hero-lead { font-size: 1.2rem; color: var(--muted); max-width: 36rem; margin: 0; }
.site-checks li { display: flex; align-items: flex-start; gap: .55rem; color: #3f4457; margin-bottom: .55rem; font-weight: 500; }
.site-checks .bi { color: #22a06b; margin-top: .15rem; }

/* resume mock-up */
.hero-visual { position: relative; max-width: 460px; margin-inline: auto; padding: 28px 18px; }
.hero-cv {
  background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px; box-shadow: var(--shadow);
  transform: rotate(-2deg);
}
[dir="rtl"] .hero-cv { transform: rotate(2deg); }
.hero-cv-avatar { width: 58px; height: 58px; border-radius: 50%; background: linear-gradient(135deg, #c9c2ff, #8b5cf6); flex: none; }
.hero-cv-section { margin: 20px 0 10px; color: var(--brand); font-weight: 800; font-size: .8rem; }
.sk { height: 9px; border-radius: 6px; background: #eceef4; margin: 9px 0; }
.sk-title { height: 13px; width: 55%; background: #d9dcea; margin-top: 0; }
.sk-sub { width: 35%; margin-bottom: 0; }
.w-90 { width: 90%; } .w-80 { width: 80%; } .w-75 { width: 75%; } .w-60 { width: 60%; } .w-50 { width: 50%; }
.sk-tag { display: inline-block; height: 24px; width: 74px; border-radius: 999px; background: var(--brand-soft); }
.sk-tag.w-s { width: 52px; }
.hero-chip {
  position: absolute; display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .6rem .9rem;
  font-weight: 700; font-size: .875rem; box-shadow: 0 12px 30px rgba(36, 28, 110, .12);
  animation: chip-float 6s ease-in-out infinite;
}
.hero-chip .bi { color: var(--brand); font-size: 1.05rem; }
.hero-chip-1 { top: 6px; inset-inline-end: -8px; }
.hero-chip-2 { top: 46%; inset-inline-start: -22px; animation-delay: -2s; }
.hero-chip-3 { bottom: 4px; inset-inline-end: 12px; animation-delay: -4s; }
@keyframes chip-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .hero-chip { animation: none; } html { scroll-behavior: auto; } }

/* ---------- sections ---------- */
.site-section { padding: 88px 0; }
.site-section-soft { background: var(--bg-soft); }
.site-head { max-width: 46rem; margin: 0 auto 48px; text-align: center; }
.site-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 800; line-height: 1.15; margin: .5rem 0 .75rem; }
.site-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.site-kicker { color: var(--brand); font-weight: 800; font-size: .9rem; }

.site-card {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm); color: inherit; text-decoration: none; transition: transform .18s, box-shadow .18s, border-color .18s;
}
.site-card h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: .5rem; }
.site-card p { color: var(--muted); }
.site-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 15px;
  background: var(--brand-soft); color: var(--brand); font-size: 1.45rem; flex: none;
}
.site-icon-sm { width: 46px; height: 46px; font-size: 1.25rem; border-radius: 13px; }

/* steps */
.site-step-n { font-weight: 800; font-size: 2.2rem; color: #8a7fe6; line-height: 1; }

/* products */
.site-product { display: flex; flex-direction: column; }
.site-product .site-icon { margin-bottom: 1.25rem; }
.site-product p { flex-grow: 1; }
.site-product:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d9d4ff; color: inherit; }
.site-more { color: var(--brand); font-weight: 700; font-size: .95rem; }

/* features */
.site-feature { display: flex; gap: 1rem; align-items: flex-start; padding: 6px; }
.site-feature h3 { font-size: 1.1rem; font-weight: 800; margin: .2rem 0 .35rem; }
.site-feature p { color: var(--muted); }

/* ---------- registration ---------- */
.site-signup { background: #fff; border: 1px solid var(--line); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); }
.site-signup-side {
  padding: 48px 40px; color: #fff;
  background: radial-gradient(420px 260px at 0% 0%, rgba(255, 255, 255, .14), transparent 70%), linear-gradient(150deg, #5b4bdb 0%, #3d2fa8 100%);
}
.site-signup-side h2 { font-weight: 800; font-size: 2.1rem; margin-bottom: .75rem; }
.site-signup-side p { color: rgba(255, 255, 255, .82); font-size: 1.05rem; margin-bottom: 1.75rem; }
.site-checks-light li { color: #fff; }
.site-checks-light .bi { color: #b9f3d5; }
.site-signup-main { padding: 40px; }
.site-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; background: var(--bg-soft); border-radius: 14px; margin-bottom: 22px; }
.site-tabs .tab { border: 0; background: transparent; border-radius: 10px; padding: .7rem .5rem; font-weight: 700; color: var(--muted); }
.site-tabs .tab.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.site-signup .pane { display: none; }
.site-signup .pane.active { display: block; }
.upload-box {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: .35rem; cursor: pointer;
  border: 2px dashed #d5d1f5; border-radius: 18px; background: #fbfaff; padding: 34px 20px; transition: .18s;
}
.upload-box:hover, .upload-box.is-dragover { border-color: var(--brand); background: #f3f1ff; }
.upload-box.has-file { border-style: solid; border-color: var(--brand); }
.upload-icon { font-size: 2.4rem; color: var(--brand); }
.upload-title { font-size: 1.1rem; }
.upload-hint { color: var(--muted); font-size: .9rem; }
.upload-box { position: relative; }
/* the whole box opens the file dialog; the input stays focusable for the "required" check */
.upload-box input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-box:focus-within { outline: 3px solid rgba(91, 75, 219, .25); outline-offset: 2px; }
.site-fine { color: var(--muted); font-size: .8rem; text-align: center; margin: .75rem 0 0; }
.site-signup .form-control { border-radius: 12px; border-color: var(--line); }
.site-signup .form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 .25rem rgba(91, 75, 219, .15); }
/* email / phone are typed left-to-right, but the placeholder follows the page */
[dir="rtl"] .site-signup input[dir="ltr"]:placeholder-shown { direction: rtl; }

/* ---------- FAQ ---------- */
.site-faq { --bs-accordion-border-color: var(--line); --bs-accordion-active-bg: #fff; --bs-accordion-active-color: var(--ink); --bs-accordion-btn-focus-box-shadow: none; }
.site-faq .accordion-item { border-radius: 16px !important; overflow: hidden; margin-bottom: 12px; border: 1px solid var(--line); }
.site-faq .accordion-button { font-weight: 700; font-size: 1.05rem; padding: 1.15rem 1.35rem; }
.site-faq .accordion-body { color: var(--muted); padding: 0 1.35rem 1.25rem; }

/* ---------- call to action ---------- */
.site-cta {
  border-radius: 28px; padding: 64px 24px; color: #fff;
  background: radial-gradient(500px 300px at 90% 0%, rgba(255, 255, 255, .18), transparent 70%), linear-gradient(135deg, #6a5ae6 0%, #4434b8 60%, #2f2391 100%);
}
.site-cta h2 { font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.site-cta p { color: rgba(255, 255, 255, .85); font-size: 1.1rem; margin-bottom: 1.75rem; }

/* ---------- inner pages: heading band ---------- */
.site-page-head {
  padding: 56px 0 48px; border-bottom: 1px solid var(--line);
  background: radial-gradient(520px 300px at 85% 0%, rgba(139, 92, 246, .12), transparent 70%), linear-gradient(180deg, #faf9ff, #fff);
}
.site-page-head h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin: 1rem 0 .75rem; }
.site-page-head-sm { padding: 40px 0 32px; }
.site-page-head-sm h1 { margin-top: 0; }
.site-page-lead { color: var(--muted); font-size: 1.15rem; max-width: 46rem; }
.site-page-meta { color: var(--muted); font-size: .9rem; }

/* privacy: table of contents + document */
.site-toc { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 2px; border-inline-start: 2px solid var(--line); }
.site-toc a { color: var(--muted); text-decoration: none; padding: .45rem 1rem; font-size: .95rem; margin-inline-start: -2px; border-inline-start: 2px solid transparent; }
.site-toc a:hover { color: var(--brand); border-inline-start-color: var(--brand); }
.site-doc section { padding-bottom: 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.site-doc section:last-child { border-bottom: 0; }
.site-doc h2 { font-size: 1.35rem; font-weight: 800; margin-bottom: .9rem; }
.site-doc p, .site-doc li { color: #454a5c; font-size: 1.05rem; line-height: 1.8; }
.site-doc ul { padding-inline-start: 1.25rem; }

/* ---------- auth / message pages ---------- */
.site-auth {
  padding: 72px 0; min-height: calc(100vh - 72px - 260px);
  background: radial-gradient(520px 340px at 50% 0%, rgba(139, 92, 246, .14), transparent 70%), var(--bg-soft);
}
.site-auth-card {
  max-width: 470px; margin: 0 auto; text-align: center; background: #fff; border: 1px solid var(--line);
  border-radius: 26px; padding: 44px 36px; box-shadow: var(--shadow);
}
.site-auth-card h1 { font-size: 1.9rem; font-weight: 800; margin-bottom: .6rem; }
.site-auth-lead { color: var(--muted); font-size: 1.05rem; margin-bottom: 1.5rem; }
.site-auth-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 68px; height: 68px; border-radius: 20px;
  background: #e7f8ef; color: #1da858; font-size: 2rem; margin-bottom: 1.25rem;
}
.site-auth-icon .bi-shield-lock { color: var(--brand); }
.site-auth-icon:has(.bi-shield-lock) { background: var(--brand-soft); }
.site-auth-icon-success { background: #e7f8ef; color: #1da858; }
.site-auth-icon-error { background: #fdecec; color: #c62828; }
.site-auth-input { text-align: center; border-radius: 14px; border-color: var(--line); }
.site-auth-input:focus { border-color: var(--brand); box-shadow: 0 0 0 .25rem rgba(91, 75, 219, .15); }
.site-auth-code { font-size: 1.6rem; letter-spacing: .5em; font-weight: 700; }
.site-auth-switch { margin: 1.5rem 0 0; color: var(--muted); font-size: .95rem; }
.site-auth-switch a, .site-auth-switch .btn-link { font-weight: 700; color: var(--brand); text-decoration: none; font-size: .95rem; }
.site-auth .alert { text-align: start; border-radius: 12px; }
.site-error-code { font-size: 4.5rem; font-weight: 800; line-height: 1; color: #8a7fe6; margin-bottom: .75rem; }

/* ---------- dashboard ---------- */
.site-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.site-panel-title { font-size: 1.25rem; font-weight: 800; margin-bottom: 1.25rem; }
.site-panel-title .bi { color: var(--brand); }
.site-panel .form-control { border-radius: 12px; border-color: var(--line); }
.site-panel .form-label { font-weight: 600; font-size: .9rem; color: #4b5064; }
.site-dash-list { margin: 0; }
.site-dash-item { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.site-dash-item:first-child { border-top: 0; }
.site-dash-name { display: block; font-weight: 700; color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.site-dash-name:hover { color: var(--brand); }
.site-dash-date { color: var(--muted); font-size: .85rem; }
.min-w-0 { min-width: 0; }

/* ---------- resume editor (markup from resume-editor.css) ---------- */
.rs { background: var(--bg-soft); }
.rs .alert { border-radius: 14px; }
.rs h1, .rs .rs-card > h2, .rs .rs-custom-head h2 { font-weight: 800; }

/* ---------- accessibility ---------- */
.site-skip { position: absolute; top: 8px; inset-inline-start: 8px; z-index: 2000; background: #fff; color: var(--brand); font-weight: 700; padding: .6rem 1rem; border-radius: 10px; box-shadow: var(--shadow); }
#main:focus { outline: none; }
/* clear focus indication for keyboard users */
.site a:focus-visible, .site button:focus-visible, .site summary:focus-visible, .site .btn:focus-visible,
.site input:focus-visible, .site select:focus-visible, .site textarea:focus-visible, .site .accordion-button:focus-visible {
  outline: 3px solid #4b3cc4; outline-offset: 2px; box-shadow: 0 0 0 5px rgba(255, 255, 255, .9);
}
.site-footer a:focus-visible { outline-color: #fff; box-shadow: none; }

/* consent checkbox */
.site-consent { margin-top: 1rem; text-align: start; font-size: .9rem; color: #4b5064; }
.site-consent .form-check-input { border-color: #767d93; }
.site-consent .form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.site-consent a { color: var(--brand); font-weight: 600; }

/* ---------- footer ---------- */
.site-footer { background: #121325; color: #fff; }
.site-footer-muted { color: #a3a6bd; }
.site-footer-title { font-weight: 800; font-size: .95rem; margin-bottom: 1rem; }
.site-footer-links li { margin-bottom: .55rem; color: #c9cbe0; }
.site-footer-links a, .site-footer-langs a { color: #c9cbe0; text-decoration: none; }
.site-footer-links a:hover, .site-footer-langs a:hover { color: #fff; }
.site-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); font-size: .9rem; }
.site-footer-note { margin: 0; padding-bottom: 1.25rem; font-size: .8rem; }
.site-footer-langs { align-items: center; column-gap: 1rem !important; }
.site-footer-langs .active { color: #fff; font-weight: 700; }

/* ---------- small screens ---------- */
@media (max-width: 991.98px) {
  .site-hero { padding: 40px 0 56px; }
  .site-section { padding: 64px 0; }
  .site-signup-side, .site-signup-main { padding: 32px 24px; }
  .hero-chip-2 { inset-inline-start: 0; }
}
@media (max-width: 575.98px) {
  .site-tabs { grid-template-columns: 1fr; }
  .hero-chip { font-size: .8rem; padding: .5rem .7rem; }
  .hero-chip-1 { inset-inline-end: 0; }
}

/* account menu in the header */
.site-account-toggle { display: inline-flex; align-items: center; gap: .55rem; border: 1px solid var(--line); border-radius: 999px; padding: .3rem .8rem .3rem .3rem; background: #fff; font-weight: 600; color: var(--ink); }
[dir="rtl"] .site-account-toggle { padding: .3rem .3rem .3rem .8rem; }
.site-account-toggle:hover, .site-account-toggle[aria-expanded="true"] { border-color: #cfc9ff; color: var(--brand); }
.site-account-avatar { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: .95rem; }
.site-account-name { max-width: 12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-account-menu { border: 1px solid var(--line); border-radius: 14px; padding: .4rem; box-shadow: var(--shadow); min-width: 13rem; }
.site-account-menu .dropdown-item { border-radius: 10px; padding: .55rem .75rem; font-weight: 600; display: flex; align-items: center; gap: .6rem; }
.site-account-menu .dropdown-item .bi { color: var(--brand); }
.site-account-menu .dropdown-item.active, .site-account-menu .dropdown-item:active { background: var(--brand-soft); color: var(--ink); }
.site-account-logout, .site-account-logout .bi { color: #b42318 !important; }

/* dashboard: resume rows, old files, plan */
.site-dash-meta { display: block; color: var(--muted); font-size: .85rem; }
.site-dash-meta a { color: var(--brand); text-decoration: none; font-weight: 600; }
.site-dash-meta a:hover { text-decoration: underline; }
.site-dash-subtitle { font-size: 1rem; font-weight: 800; color: #4b5064; }
.site-dash-files li { margin-bottom: .4rem; color: var(--muted); font-size: .9rem; }
.site-dash-files a { color: var(--ink); font-weight: 600; text-decoration: none; }
.site-dash-files a:hover { color: var(--brand); }
.site-plan-name { display: inline-block; background: var(--brand-soft); color: #4a3cc0; font-weight: 800; border-radius: 999px; padding: .3rem .9rem; margin-bottom: 1.25rem; }
.site-plan-label { font-weight: 600; font-size: .95rem; margin-bottom: .4rem; }
.site-plan-progress { height: 8px; border-radius: 99px; background: #eceef4; margin-bottom: 1.1rem; }
.site-plan-progress .progress-bar { background: var(--brand); border-radius: 99px; }
.site-plan-note { color: var(--muted); font-size: .85rem; margin-top: 1rem; }
/* dashboard: add a resume, one card per resume with its versions */
.site-add-title { font-size: 1.05rem; font-weight: 800; margin-bottom: .4rem; }
.site-add-title .bi { color: var(--brand); }
.site-add-text { color: var(--muted); font-size: .9rem; }
.site-add-manual { display: flex; flex-direction: column; }
.upload-box-sm { padding: 22px 16px; }
.upload-box-sm .upload-icon { font-size: 1.8rem; }
.site-resume-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-bottom: 1rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.site-resume-title { font-size: 1.15rem; font-weight: 800; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-resume-name { display: flex; align-items: center; gap: .35rem; min-width: 0; }
.site-rename-toggle { color: var(--muted); padding: .15rem .4rem; flex-shrink: 0; }
.site-rename-toggle:hover, .site-rename-toggle[aria-expanded="true"] { color: var(--brand); }
.site-rename-saved { color: #157347; font-size: .85rem; font-weight: 600; white-space: nowrap; }
.site-rename-form { gap: .4rem; margin: .4rem 0; max-width: 460px; }
.site-rename-form.show, .site-rename-form.collapsing { display: flex; }
.site-rename-form .form-control { flex: 1; min-width: 0; }
.site-resume-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.site-resume-sub { font-size: .9rem; font-weight: 800; color: #4b5064; margin: 0 0 .6rem; }
.site-resume-empty { color: var(--muted); font-size: .9rem; margin-bottom: 1.25rem; }
.site-generations { margin-bottom: 1.25rem; }
.site-generations li { display: flex; align-items: center; gap: .5rem; padding: .45rem 0; border-top: 1px solid var(--line); font-weight: 600; }
.site-generations li:first-child { border-top: 0; }
.site-generations .bi { color: var(--brand); }
.site-version {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; text-align: center;
  border: 1px solid var(--line); border-radius: 14px; background: #fbfaff; color: var(--ink); padding: .9rem .5rem; font-weight: 700; font-size: .9rem;
}
.site-version .bi { font-size: 1.4rem; color: var(--brand); }
.site-version:not(:disabled):hover { border-color: var(--brand); background: var(--brand-soft); }
.site-version:disabled { cursor: not-allowed; opacity: 1; color: #5c6276; }
.site-soon { display: inline-block; font-size: .72rem; font-weight: 700; color: #4a3cc0; background: var(--brand-soft); border-radius: 999px; padding: .1rem .55rem; }

/* plans page */
.site-plan-card { display: flex; flex-direction: column; }
.site-plan-card h2 { font-weight: 800; }
.site-plan-card.is-current { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(91, 75, 219, .15), var(--shadow); }
.site-plan-card .site-plan-price { font-size: 2rem; font-weight: 800; margin: .5rem 0 .25rem; color: var(--ink); }
.site-plan-card .site-plan-price small { font-size: .9rem; font-weight: 600; color: var(--muted); }
.site-plan-duration { color: var(--muted); margin-bottom: 1rem; }
.site-plans-note { color: var(--muted); max-width: 46rem; margin-inline: auto; }
.site-plans-note a { color: var(--brand); font-weight: 600; }
.site-plan-until { color: var(--muted); font-size: .9rem; margin-top: -.75rem; margin-bottom: 1.1rem; }
/* template gallery (/resume/templates) */
.site-back { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-decoration: none; margin-bottom: .75rem; color: var(--brand); }
.site-back:hover { text-decoration: underline; }
[dir="ltr"] .site-back-icon { transform: scaleX(-1); }
.site-tpl-filters { display: grid; gap: .75rem; margin-bottom: 1.25rem; }
.site-tpl-filter { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.site-tpl-filter-label { font-weight: 700; margin-inline-end: .35rem; }
.site-tpl-chip { display: inline-block; padding: .3rem .8rem; border-radius: 99px; border: 1px solid var(--line); background: #fff; color: #2b2f3d; font-size: .9rem; text-decoration: none; }
.site-tpl-chip:hover { border-color: var(--brand); color: var(--brand); }
.site-tpl-chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.site-tpl-found { color: var(--muted); font-size: .95rem; margin-bottom: 1rem; }
.site-tpl { height: 100%; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); }
.site-tpl.is-current { border: 2px solid var(--brand); }
.site-tpl-img { position: relative; background: #f3f4f8; border-bottom: 1px solid var(--line); }
.site-tpl-img img { display: block; width: 100%; height: auto; aspect-ratio: 397 / 561; }
.site-tpl-level { position: absolute; inset-block-start: .6rem; inset-inline-start: .6rem; padding: .2rem .65rem; border-radius: 99px; font-size: .8rem; font-weight: 700; background: #fff; color: #2b2f3d; box-shadow: 0 2px 8px rgba(20, 20, 60, .15); }
.site-tpl-level-premium { background: #2b2350; color: #fff; }
.site-tpl-body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.site-tpl-name { font-size: 1.05rem; font-weight: 800; margin: 0; }
.site-tpl-tags { font-size: .85rem; color: var(--muted); margin: 0; }
.site-tpl-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; padding-top: .5rem; }
.site-tpl-current { font-size: .9rem; color: var(--muted); }
a.site-version { text-decoration: none; color: #2b2f3d; }
a.site-version:hover { border-color: var(--brand); background: var(--brand-soft); }
.site-version-go { font-size: .75rem; font-weight: 700; color: var(--brand); }

.site-btn-danger { color: #b02a37; }
.site-btn-danger:hover, .site-btn-danger:focus-visible { color: #fff; background: #b02a37; border-color: #b02a37; }

/* confirmation of a generation, generations list */
.site-generate-data { margin: 0 0 1rem; padding: .75rem 1rem; background: var(--brand-soft); border-radius: 12px; }
.site-generate-data div { display: flex; gap: .5rem; }
.site-generate-data dt { color: var(--muted); font-weight: 600; min-width: 6.5rem; }
.site-generate-data dd { margin: 0; font-weight: 700; }
.site-tpl-current { margin: 0; font-size: .85rem; font-weight: 700; color: var(--brand); }
.site-generations li { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.site-generations li.is-new { font-weight: 700; }
.site-generation-pdf { margin-inline-start: auto; }

/* pages of a new version (/resume/version, /resume/generate) */
.site-version-form { max-width: 980px; }
.site-version-resume { color: var(--muted); margin-bottom: 1.25rem; }
.site-version-resume strong { color: #1d2030; }
.site-optional { font-weight: 400; color: var(--muted); font-size: .9em; }
[dir="ltr"] .site-next-icon { display: inline-block; transform: scaleX(-1); }
.site-generate-template { display: flex; gap: 1rem; align-items: flex-start; padding: .9rem; border: 1px solid var(--line); border-radius: 14px; background: #fafaff; }
.site-generate-template img { width: 120px; height: auto; border: 1px solid var(--line); border-radius: 6px; background: #fff; flex-shrink: 0; }
.site-generate-template-name { font-weight: 800; margin-bottom: .5rem; }
.site-generate-template .form-text { margin-top: .6rem; }
.site-generation-state { margin-inline-start: auto; font-size: .9rem; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: .4rem; }
.site-generation-failed { color: #b02a37; }
.site-generation-actions { margin-inline-start: auto; display: inline-flex; flex-wrap: wrap; gap: .4rem; }

/* the resume wizard (/wizard): a chat with the AI */
.site-wizard { max-width: 820px; margin-inline: auto; }
.site-wizard .site-panel + .site-panel { margin-top: 1.25rem; }
.site-chat-log { display: flex; flex-direction: column; gap: .6rem; max-height: 55vh; min-height: 220px; overflow-y: auto; padding: .25rem .25rem 1rem; }
.site-chat-msg { max-width: 85%; padding: .65rem .9rem; border-radius: 16px; line-height: 1.5; }
.site-chat-msg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.site-chat-msg.is-assistant { align-self: flex-start; background: var(--brand-soft); color: #1d2030; border-start-start-radius: 4px; }
.site-chat-msg.is-user { align-self: flex-end; background: var(--brand); color: #fff; border-end-end-radius: 4px; }
.site-chat-thinking { color: var(--muted); font-size: .9rem; margin: 0 0 .75rem; }
.site-chat-form { display: flex; gap: .6rem; align-items: flex-end; margin-top: .25rem; }
.site-chat-form textarea { resize: vertical; border-radius: 14px; }
.site-chat-form .btn { white-space: nowrap; }
.site-chat .form-text { margin-top: .5rem; }
.site-wizard-finish.is-ready { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.site-wizard-finish-form { display: grid; gap: 1rem; max-width: 26rem; }
.site-wizard-restart { margin-top: .75rem; text-align: center; }
.site-wizard-link { margin: 1.25rem 0 0; font-size: .95rem; color: var(--muted); }
.site-wizard-link .bi { color: var(--brand); }
.site-wizard-link a { font-weight: 700; }
@media (max-width: 575.98px) {
  .site-chat-form { flex-direction: column; align-items: stretch; }
  .site-chat-msg { max-width: 94%; }
}