:root {
    --bestcv-purple: #461082;
    --bestcv-purple-dark: #31075f;
    --bestcv-purple-light: #f3eafa;
    --bestcv-orange: #ff5a00;
    --bestcv-orange-light: #fff1e8;
    --bestcv-navy: #0b1739;
    --bestcv-muted: #667085;
    --bestcv-background: #f8f7fc;
    --bestcv-white: #ffffff;
    --bestcv-border: #e7e2ee;
}

.bestcv-site {
    min-width: 320px;
    background: var(--bestcv-background);
    color: var(--bestcv-navy);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.bestcv-site a {
    color: inherit;
}

.bestcv-header {
    position: relative;
    z-index: 10;
    min-height: 4.65rem;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--bestcv-border);
}

.bestcv-header__inner {
    display: flex;
    align-items: center;
    min-height: 4.65rem;
    gap: 1.35rem;
}

.bestcv-brand,
.bestcv-back-link,
.bestcv-header__actions,
.bestcv-header__nav,
.bestcv-reassurance,
.bestcv-start__privacy {
    display: flex;
    align-items: center;
}

.bestcv-brand {
    flex: 0 0 auto;
    gap: 0.48rem;
    color: var(--bestcv-purple) !important;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.065em;
    text-decoration: none;
}

.bestcv-brand:hover {
    color: var(--bestcv-purple-dark) !important;
}

.bestcv-brand img {
    display: block;
    width: 2.42rem;
    height: 2.42rem;
}

.bestcv-back-link {
    gap: 0.45rem;
    color: #4d5974;
    font-size: 0.93rem;
    font-weight: 650;
    text-decoration: none;
}

.bestcv-back-link:hover {
    color: var(--bestcv-purple);
}

.bestcv-header__nav {
    justify-content: center;
    gap: clamp(1rem, 2.5vw, 2.55rem);
    margin: 0 auto;
}

.bestcv-header__nav a {
    color: var(--bestcv-navy);
    font-size: 0.86rem;
    font-weight: 650;
    text-decoration: none;
}

.bestcv-header__nav a:hover {
    color: var(--bestcv-purple);
}

.bestcv-header__actions {
    flex: 0 0 auto;
    gap: 0.65rem;
    margin-left: auto;
}

.bestcv-header__actions form {
    margin: 0;
}

.bestcv-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 3.55rem;
    padding: 0.74rem 1.35rem;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

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

.bestcv-button:active {
    transform: translateY(0);
}

.bestcv-button--primary {
    background: var(--bestcv-purple);
    border-color: var(--bestcv-purple);
    color: var(--bestcv-white) !important;
}

.bestcv-button--primary:hover,
.bestcv-button--primary:focus-visible {
    background: var(--bestcv-purple-dark);
    border-color: var(--bestcv-purple-dark);
}

.bestcv-button--secondary {
    background: var(--bestcv-white);
    border-color: var(--bestcv-purple);
    color: var(--bestcv-purple) !important;
}

.bestcv-button--secondary:hover,
.bestcv-button--secondary:focus-visible {
    background: var(--bestcv-purple-light);
    color: var(--bestcv-purple-dark) !important;
}

.bestcv-button--compact {
    min-height: 2.95rem;
    padding: 0.55rem 1rem;
    border-radius: 0.45rem;
    font-size: 0.9rem;
}

.bestcv-button:focus-visible,
.bestcv-header a:focus-visible,
.bestcv-logout:focus-visible,
.bestcv-file-button:focus-within {
    outline: 3px solid rgba(70, 16, 130, 0.26);
    outline-offset: 3px;
}

.bestcv-logout {
    padding: 0.35rem;
    border: 0;
    background: transparent;
    color: var(--bestcv-muted);
    font-size: 0.86rem;
    font-weight: 650;
}

.bestcv-logout:hover {
    color: var(--bestcv-purple);
}

.bestcv-home {
    overflow: hidden;
}

.bestcv-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(circle at 92% 6%, rgba(216, 192, 255, 0.6) 0, rgba(216, 192, 255, 0.17) 23%, transparent 47%),
        linear-gradient(112deg, #fbfaff 0%, #f4efff 100%);
}

/* .bestcv-hero::before {
    position: absolute;
    z-index: -1;
    top: -16rem;
    right: -13rem;
    width: 42rem;
    height: 42rem;
    border-radius: 50%;
    background: rgba(230, 215, 255, 0.54);
    content: "";
} */

.bestcv-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 0.96fr) minmax(32rem, 1.04fr);
    align-items: center;
    min-height: 31.2rem;
    padding-top: 2.8rem;
    padding-bottom: 2.3rem;
}

.bestcv-hero__content {
    position: relative;
    z-index: 2;
    max-width: 40rem;
}

.bestcv-eyebrow,
.bestcv-choice-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    background: var(--bestcv-purple-light);
    color: var(--bestcv-purple);
    font-weight: 750;
}

.bestcv-eyebrow {
    gap: 0.5rem;
    padding: 0.47rem 0.85rem;
    font-size: 0.84rem;
}

.bestcv-eyebrow i {
    color: var(--bestcv-orange);
}

.bestcv-hero h1,
.bestcv-section-heading h2,
.bestcv-start__intro h1 {
    margin: 1.35rem 0 0;
    color: var(--bestcv-navy);
    font-weight: 800;
    letter-spacing: -0.065em;
}

.bestcv-hero h1 {
    max-width: 11.4ch;
    font-size: clamp(2.55rem, 4.1vw, 4.15rem);
    line-height: 1.035;
}

.bestcv-hero h1 span {
    color: var(--bestcv-purple);
}

.bestcv-hero__description {
    max-width: 35rem;
    margin: 1.35rem 0 0;
    color: #5e6b8b;
    font-size: clamp(1.04rem, 1.35vw, 1.22rem);
    line-height: 1.52;
    visibility: hidden;
}

.bestcv-barma-intro {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.72rem;
    max-width: 33rem;
    margin-top: 1.25rem;
    padding: 0.68rem 0.85rem;
    border: 1px solid rgba(70, 16, 130, 0.16);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.68);
}

.bestcv-barma-intro__icon {
    display: grid;
    width: 2.3rem;
    height: 2.3rem;
    place-items: center;
    border-radius: 0.65rem;
    background: var(--bestcv-purple-light);
    color: var(--bestcv-purple);
    font-size: 1.05rem;
}

.bestcv-barma-intro p {
    margin: 0;
    color: #64708e;
    font-size: 0.84rem;
    line-height: 1.35;
}

.bestcv-barma-intro strong,
.bestcv-barma-intro span {
    display: block;
}

.bestcv-barma-intro strong {
    margin-bottom: 0.1rem;
    color: var(--bestcv-navy);
    font-weight: 800;
}

.bestcv-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1.45rem;
    margin-top: 1.65rem;
}

.bestcv-text-action {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--bestcv-purple) !important;
    font-size: 1rem;
    font-weight: 750;
    text-decoration: none;
}

.bestcv-text-action:hover {
    color: var(--bestcv-purple-dark) !important;
    text-decoration: underline;
    text-underline-offset: 0.25rem;
}

.bestcv-reassurance {
    flex-wrap: wrap;
    gap: 0.8rem 1.15rem;
    margin: 1.25rem 0 0;
    padding: 0;
    color: #66708c;
    font-size: 0.88rem;
    list-style: none;
}

.bestcv-reassurance li {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
}

.bestcv-reassurance i {
    color: var(--bestcv-purple);
    font-size: 1.05rem;
}

.bestcv-hero__visual {
    position: relative;
    align-self: stretch;
    min-height: 27rem;
    margin-right: -4.1rem;
}

.bestcv-hero__visual img {
    display: block;
    position: absolute;
    max-width: none;
    object-fit: contain;
}

.bestcv-hero__models {
    z-index: 1;
    top: 1.6rem;
    right: -4.5rem;
    width: min(51rem, 104%);
    height: auto;
}

.bestcv-hero__barma {
    z-index: 2;
    bottom: -2.3rem;
    left: 1%;
    width: min(29rem, 60%);
    height: auto;
}

.bestcv-barma-nameplate {
    position: absolute;
    z-index: 4;
    bottom: 2rem;
    left: 1%;
    display: flex;
    flex-direction: column;
    padding: 0.48rem 0.72rem;
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 0.6rem;
    background: rgba(49, 7, 95, 0.94);
    box-shadow: 0 0.45rem 1.25rem rgba(49, 7, 95, 0.2);
    color: var(--bestcv-white);
    line-height: 1.1;
    display: none;
}

.bestcv-barma-nameplate strong {
    font-size: 0.84rem;
    font-weight: 800;
}

.bestcv-barma-nameplate span {
    margin-top: 0.15rem;
    font-size: 0.67rem;
    font-weight: 650;
}

.bestcv-speech {
    position: absolute;
    z-index: 3;
    top: 9.2rem;
    left: 46%;
    max-width: 13.6rem;
    margin: 0;
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(231, 226, 238, 0.95);
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 0.5rem 1.5rem rgba(55, 32, 93, 0.1);
    color: #5e5d87;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.4;
}

.bestcv-speech strong {
    color: var(--bestcv-purple);
}

.bestcv-speech::after {
    position: absolute;
    bottom: -0.46rem;
    left: 1.45rem;
    width: 0.82rem;
    height: 0.82rem;
    border-right: 1px solid rgba(231, 226, 238, 0.95);
    border-bottom: 1px solid rgba(231, 226, 238, 0.95);
    background: var(--bestcv-white);
    content: "";
    transform: rotate(45deg);
}

.bestcv-benefits {
    background: var(--bestcv-white);
    border-bottom: 1px solid var(--bestcv-border);
}

.bestcv-benefits__inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bestcv-benefit {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    padding: 1.6rem 1.05rem;
}

.bestcv-benefit+.bestcv-benefit {
    border-left: 1px solid var(--bestcv-border);
}

.bestcv-benefit__icon,
.bestcv-choice-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    background: var(--bestcv-purple-light);
    color: var(--bestcv-purple);
    font-size: 1.5rem;
}

.bestcv-benefit:nth-child(2) .bestcv-benefit__icon,
.bestcv-benefit:nth-child(3) .bestcv-benefit__icon {
    background: var(--bestcv-orange-light);
    color: var(--bestcv-orange);
}

.bestcv-benefit h3 {
    margin: 0 0 0.24rem;
    color: var(--bestcv-navy);
    font-size: 1rem;
    font-weight: 800;
}

.bestcv-benefit p {
    margin: 0;
    color: #687492;
    font-size: 0.91rem;
    line-height: 1.48;
}

.bestcv-models {
    padding: 2.75rem 0 3.6rem;
    background: #fbfaff;
}

.bestcv-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.bestcv-section-heading h2 {
    margin-top: 0;
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1.05;
}

.bestcv-section-heading p {
    margin: 0.45rem 0 0;
    color: #64708e;
    font-size: 1rem;
}

.bestcv-models-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
    color: var(--bestcv-purple) !important;
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
}

.bestcv-models-link:hover {
    color: var(--bestcv-purple-dark) !important;
    text-decoration: underline;
    text-underline-offset: 0.25rem;
}

.bestcv-template-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.bestcv-template-card {
    display: flex;
    flex-direction: column;
    min-height: 15rem;
    padding: 1.55rem;
    border: 1px solid var(--bestcv-border);
    border-radius: 0.9rem;
    background: var(--bestcv-white);
    box-shadow: 0 0.3rem 1rem rgba(47, 31, 77, 0.035);
}

.bestcv-template-card__topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: var(--bestcv-purple);
    font-size: 0.82rem;
    font-weight: 750;
}

.bestcv-template-card__topline i {
    color: var(--bestcv-orange);
    font-size: 1.1rem;
}

.bestcv-template-card h3 {
    margin: 1.65rem 0 0.55rem;
    color: var(--bestcv-navy);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.045em;
}

.bestcv-template-card p {
    margin: 0;
    color: var(--bestcv-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.bestcv-template-card__meta {
    margin-top: auto;
    padding-top: 1.2rem;
    color: #75648e;
    font-size: 0.82rem;
    font-weight: 700;
}

.bestcv-pricing-note {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 2rem auto 0;
    padding: 0.9rem 1rem;
    border: 1px solid var(--bestcv-border);
    border-radius: 0.7rem;
    background: var(--bestcv-white);
    color: #56637f;
    font-size: 0.91rem;
}

.bestcv-pricing-note i {
    color: var(--bestcv-purple);
}

.bestcv-start-page {
    position: relative;
    min-height: calc(100vh - 4.65rem);
    overflow: hidden;
    padding: clamp(2rem, 4.2vw, 3.8rem) 0 2.7rem;
    background:
        radial-gradient(circle at 4% 35%, rgba(224, 211, 255, 0.4), transparent 22rem),
        radial-gradient(circle at 92% 23%, rgba(231, 216, 255, 0.4), transparent 18rem),
        var(--bestcv-white);
}

.bestcv-start {
    position: relative;
}

.bestcv-start__intro {
    max-width: 49rem;
    margin: 0 auto 2.2rem;
    text-align: center;
}

.bestcv-start__eyebrow {
    margin: 0;
    color: var(--bestcv-purple);
    font-size: 0.9rem;
    font-weight: 800;
}

.bestcv-start__intro h1 {
    margin-top: 0.65rem;
    font-size: clamp(2.1rem, 4vw, 3.25rem);
    line-height: 1.07;
}

.bestcv-start__intro>p:last-child {
    margin: 0.75rem 0 0;
    color: #687492;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.bestcv-start__content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(10rem, 14.5rem);
    align-items: end;
    gap: 1.45rem;
    max-width: 69rem;
    margin: 0 auto;
}

.bestcv-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.bestcv-choice-card {
    display: flex;
    min-height: 26rem;
    flex-direction: column;
    align-items: center;
    padding: 1.7rem 1.75rem;
    border: 1px solid var(--bestcv-border);
    border-radius: 0.9rem;
    background: var(--bestcv-white);
    text-align: center;
    box-shadow: 0 0.4rem 1.4rem rgba(49, 34, 79, 0.04);
}

.bestcv-choice-card--featured {
    border: 2px solid var(--bestcv-purple);
    background: linear-gradient(145deg, #fff 0%, #fbf8ff 100%);
}

.bestcv-choice-badge {
    min-height: 2.1rem;
    padding: 0.36rem 0.9rem;
    font-size: 0.82rem;
}

.bestcv-choice-card--featured .bestcv-choice-badge {
    color: var(--bestcv-purple-dark);
}

.bestcv-choice-icon {
    width: 4.8rem;
    height: 4.8rem;
    margin: 1.35rem 0;
    border-radius: 1.1rem;
    font-size: 2.15rem;
}

.bestcv-choice-card h2 {
    margin: 0;
    color: var(--bestcv-navy);
    font-size: clamp(1.25rem, 2vw, 1.58rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.bestcv-choice-card p {
    max-width: 23rem;
    margin: 0.7rem 0 0;
    color: #687492;
    font-size: 0.95rem;
    line-height: 1.48;
}

.bestcv-choice-card .bestcv-button,
.bestcv-file-button,
.bestcv-file-loading {
    width: 100%;
    margin-top: auto;
}

.bestcv-file-button {
    position: relative;
    display: inline-flex;
    min-height: 3.55rem;
    align-items: center;
    justify-content: center;
    padding: 0.74rem 1.35rem;
    overflow: hidden;
    border: 1px solid var(--bestcv-purple);
    border-radius: 0.5rem;
    background: var(--bestcv-purple);
    color: var(--bestcv-white);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 750;
    line-height: 1.2;
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.bestcv-file-button:hover {
    border-color: var(--bestcv-purple-dark);
    background: var(--bestcv-purple-dark);
    transform: translateY(-1px);
}

.bestcv-file-button input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.bestcv-file-loading {
    display: inline-flex;
    min-height: 3.55rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: var(--bestcv-purple-light);
    color: var(--bestcv-purple);
    font-size: 0.95rem;
    font-weight: 750;
}

.bestcv-choice-card__hint {
    min-height: 1.3rem;
    margin-top: 0.6rem !important;
    color: #727c96 !important;
    font-size: 0.82rem !important;
}

.bestcv-import-error {
    width: 100%;
    margin: 0.65rem 0 0;
    color: #b42318 !important;
    font-size: 0.84rem !important;
}

.bestcv-start__notice {
    max-width: 49rem;
    margin: 0 auto 1.5rem;
    text-align: center;
}

.bestcv-start__barma {
    position: relative;
    align-self: end;
    margin: 0 -3.1rem -2.7rem -1.3rem;
}

.bestcv-start__barma::before {
    position: absolute;
    z-index: -1;
    right: 0;
    bottom: 1.6rem;
    width: 11.5rem;
    height: 11.5rem;
    border: 1.1rem solid rgba(225, 210, 255, 0.72);
    border-radius: 50%;
    content: "";
}

.bestcv-start__barma img {
    display: block;
    width: min(17rem, 100%);
    height: auto;
    object-fit: contain;
}

.bestcv-start__privacy {
    justify-content: center;
    gap: 0.6rem;
    margin: 1.9rem auto 0;
    color: #596680;
    font-size: 0.91rem;
}

.bestcv-start__privacy i {
    color: var(--bestcv-purple);
    font-size: 1.35rem;
}

.bestcv-auth-body {
    min-height: 100vh;
    background: var(--bestcv-background);
}

.bestcv-auth-page {
    position: relative;
    isolation: isolate;
    display: flex;
    min-height: calc(100vh - 4.65rem);
    align-items: center;
    overflow: hidden;
    padding: clamp(2.2rem, 5vw, 4.8rem) 0 4rem;
    background:
        radial-gradient(circle at 7% 8%, rgba(218, 196, 255, 0.7), transparent 23rem),
        radial-gradient(circle at 95% 92%, rgba(238, 222, 255, 0.72), transparent 26rem),
        linear-gradient(135deg, #fbfaff 0%, #f5efff 100%);
}

.bestcv-auth-page__glow {
    position: absolute;
    z-index: -1;
    top: 12%;
    left: 50%;
    width: min(76rem, 105vw);
    height: min(41rem, 64vw);
    border: 1px solid rgba(118, 63, 183, 0.1);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.38);
    transform: translateX(-50%);
}

.bestcv-auth-page__grid {
    display: grid;
    grid-template-columns: minmax(0, 33rem) minmax(23rem, 29rem);
    align-items: stretch;
    gap: clamp(1.3rem, 3.5vw, 3.8rem);
    width: 100%;
    max-width: 68rem;
    margin: auto;
}

.bestcv-auth-card {
    position: relative;
    z-index: 1;
    padding: clamp(1.65rem, 3vw, 2.65rem);
    border: 1px solid rgba(225, 218, 237, 0.96);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 1rem 3.5rem rgba(49, 20, 84, 0.11);
}

.bestcv-auth-card__heading {
    margin-bottom: 1.7rem;
}

.bestcv-auth-card__icon {
    display: inline-flex;
    width: 2.75rem;
    height: 2.75rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.05rem;
    border-radius: 0.85rem;
    background: var(--bestcv-purple-light);
    color: var(--bestcv-purple);
    font-size: 1.3rem;
}

.bestcv-auth-card h1 {
    margin: 0;
    color: var(--bestcv-navy);
    font-size: clamp(1.72rem, 3.2vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 1.1;
}

.bestcv-auth-card__heading p,
.bestcv-auth-copy {
    margin: 0.65rem 0 0;
    color: #66718c;
    font-size: 0.96rem;
    line-height: 1.55;
}

.bestcv-auth-copy {
    margin-top: -0.25rem;
    margin-bottom: 1.4rem;
}

.bestcv-auth-form {
    display: grid;
    gap: 1.05rem;
}

.bestcv-auth-field {
    display: grid;
    gap: 0.42rem;
}

.bestcv-auth-field label {
    color: #263455;
    font-size: 0.88rem;
    font-weight: 750;
}

.bestcv-auth-field input {
    width: 100%;
    min-height: 3.2rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid #dcd5e6;
    border-radius: 0.55rem;
    outline: 0;
    background: var(--bestcv-white);
    color: var(--bestcv-navy);
    font: inherit;
    font-size: 0.96rem;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.bestcv-auth-field input::placeholder {
    color: #9a9eb0;
}

.bestcv-auth-field input:hover {
    border-color: #ad9bc5;
}

.bestcv-auth-field input:focus {
    border-color: var(--bestcv-purple);
    box-shadow: 0 0 0 0.22rem rgba(70, 16, 130, 0.13);
}

.bestcv-auth-error {
    margin: 0.04rem 0 0;
    color: #b42318;
    font-size: 0.8rem;
    line-height: 1.35;
}

.bestcv-auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-top: 0.1rem;
}

.bestcv-auth-options a,
.bestcv-auth-switch a,
.bestcv-auth-text-button {
    color: var(--bestcv-purple) !important;
    font-size: 0.86rem;
    font-weight: 750;
    text-decoration: none;
}

.bestcv-auth-options a:hover,
.bestcv-auth-switch a:hover,
.bestcv-auth-text-button:hover {
    color: var(--bestcv-purple-dark) !important;
    text-decoration: underline;
}

.bestcv-auth-check {
    display: inline-flex;
    align-items: center;
    gap: 0.48rem;
    color: #606b84;
    font-size: 0.86rem;
    line-height: 1.25;
}

.bestcv-auth-check input {
    width: 1rem;
    height: 1rem;
    margin: 0;
    accent-color: var(--bestcv-purple);
}

.bestcv-auth-submit {
    display: inline-flex;
    width: 100%;
    min-height: 3.35rem;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin-top: 0.35rem;
    padding: 0.75rem 1.2rem;
    border: 1px solid var(--bestcv-purple);
    border-radius: 0.55rem;
    background: var(--bestcv-purple);
    color: var(--bestcv-white);
    cursor: pointer;
    font: inherit;
    font-size: 0.98rem;
    font-weight: 800;
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.bestcv-auth-submit:hover {
    border-color: var(--bestcv-purple-dark);
    background: var(--bestcv-purple-dark);
    transform: translateY(-1px);
}

.bestcv-auth-submit:focus-visible,
.bestcv-auth-text-button:focus-visible,
.bestcv-auth-options a:focus-visible,
.bestcv-auth-switch a:focus-visible,
.bestcv-auth-check:focus-within {
    outline: 3px solid rgba(70, 16, 130, 0.24);
    outline-offset: 3px;
}

.bestcv-auth-switch {
    margin: 1.35rem 0 0;
    color: #65708a;
    font-size: 0.87rem;
    text-align: center;
}

.bestcv-auth-alert {
    display: flex;
    align-items: flex-start;
    margin: -0.35rem 0 1.25rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid transparent;
    border-radius: 0.6rem;
    font-size: 0.87rem;
    line-height: 1.45;
}

.bestcv-auth-alert--success {
    border-color: #bce6ce;
    background: #f0fcf5;
    color: #146c3b;
}

.bestcv-auth-alert--info {
    border-color: #cbd8ff;
    background: #f3f6ff;
    color: #314c9a;
}

.bestcv-auth-alert--error {
    border-color: #f3c4c1;
    background: #fff5f4;
    color: #aa2720;
}

.bestcv-auth-actions {
    display: grid;
    gap: 1rem;
}

.bestcv-auth-actions form {
    margin: 0;
}

.bestcv-auth-text-button {
    display: block;
    width: fit-content;
    margin: 0 auto;
    padding: 0.25rem;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.bestcv-auth-showcase {
    position: relative;
    display: flex;
    min-height: 34rem;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
    padding: clamp(1.7rem, 3vw, 2.6rem);
    border: 1px solid rgba(119, 74, 166, 0.15);
    border-radius: 1.25rem;
    background:
        radial-gradient(circle at 83% 22%, rgba(255, 255, 255, 0.24), transparent 11rem),
        linear-gradient(148deg, #3c0875 0%, #6512ad 100%);
    box-shadow: 0 1rem 3.5rem rgba(49, 20, 84, 0.16);
}

.bestcv-auth-showcase::after {
    position: absolute;
    z-index: 0;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    height: auto;
    background: linear-gradient(180deg, rgba(31, 3, 59, 0.76) 0%, rgba(47, 5, 87, 0.16) 50%, rgba(34, 2, 65, 0.6) 100%);
    content: "";
    pointer-events: none;
}

.bestcv-auth-showcase__copy {
    position: relative;
    z-index: 2;
    max-width: 18rem;
    color: var(--bestcv-white);
}

.bestcv-auth-showcase__copy span {
    display: inline-flex;
    padding: 0.38rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    color: #f6ecff;
    font-size: 0.77rem;
    font-weight: 750;
}

.bestcv-auth-showcase h2 {
    margin: 1rem 0 0;
    font-size: clamp(1.65rem, 2.8vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 1.09;
}

.bestcv-auth-showcase p {
    margin: 0.8rem 0 0;
    color: #eadcff;
    font-size: 0.94rem;
    line-height: 1.5;
}

/* Barma is a transparent cut-out: anchor him to the bottom of the panel and
   lift his navy suit off the navy background with a soft light halo. */
.bestcv-auth-showcase__visual {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1 1 0;
    min-height: 14rem;
    align-items: flex-end;
    margin: 1.2rem 0 calc(-1 * clamp(1.7rem, 3vw, 2.6rem));
    justify-content: center;
    pointer-events: none;
}

.bestcv-auth-showcase__visual::before {
    position: absolute;
    bottom: -12%;
    left: 50%;
    width: min(32rem, 125%);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(255, 255, 255, 0.5), rgba(236, 240, 250, 0.18) 60%, transparent);
    content: "";
    transform: translateX(-50%);
}

.bestcv-auth-showcase__visual img {
    position: relative;
    display: block;
    max-width: 90%;
    max-height: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom center;
    filter: drop-shadow(0 0.9rem 1.4rem rgba(8, 14, 32, 0.35));
}

.bestcv-auth-page__privacy {
    position: absolute;
    right: 1rem;
    bottom: 0.7rem;
    left: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin: 0;
    color: #616d87;
    font-size: 0.82rem;
    text-align: center;
}

.bestcv-auth-page__privacy i {
    color: var(--bestcv-purple);
    font-size: 1rem;
}

@media (max-width: 1199.98px) {
    .bestcv-hero__inner {
        grid-template-columns: minmax(0, 0.93fr) minmax(28rem, 1.07fr);
    }

    .bestcv-hero__visual {
        margin-right: -2.2rem;
    }

    .bestcv-hero__models {
        right: -2.8rem;
    }

    .bestcv-hero__barma {
        left: -1%;
        width: min(25rem, 57%);
    }

    .bestcv-speech {
        top: 8.3rem;
        left: 48%;
    }

    .bestcv-start__content {
        max-width: 61rem;
        grid-template-columns: minmax(0, 1fr) minmax(8rem, 11rem);
    }

    .bestcv-start__barma {
        margin-right: -1.3rem;
    }
}

@media (max-width: 991.98px) {
    .bestcv-header__nav {
        gap: 1.25rem;
    }

    .bestcv-hero__inner {
        grid-template-columns: minmax(0, 0.9fr) minmax(23rem, 1.1fr);
        min-height: 29.2rem;
    }

    .bestcv-hero__visual {
        min-height: 24rem;
        margin-right: -2.5rem;
    }

    .bestcv-hero__models {
        top: 3.4rem;
        right: -4rem;
        width: 48rem;
    }

    .bestcv-hero__barma {
        bottom: -1.5rem;
        left: -5%;
        width: 20.5rem;
    }

    .bestcv-speech {
        top: 8.1rem;
        left: 43%;
        max-width: 10.7rem;
        font-size: 0.67rem;
    }

    .bestcv-barma-nameplate {
        bottom: 1.6rem;
        left: -2%;
    }

    .bestcv-benefit {
        padding-right: 0.8rem;
        padding-left: 0.8rem;
    }

    .bestcv-start__content {
        grid-template-columns: minmax(0, 1fr) 8.2rem;
        max-width: 47rem;
    }

    .bestcv-start__barma {
        display: block;
        margin: 0 -0.8rem -1.6rem -0.35rem;
    }

    .bestcv-start__barma::before {
        right: 0.4rem;
        bottom: 1.1rem;
        width: 7.5rem;
        height: 7.5rem;
        border-width: 0.75rem;
    }

    .bestcv-start__barma img {
        width: 9.3rem;
    }

    .bestcv-auth-page__grid {
        grid-template-columns: minmax(0, 30rem) minmax(17rem, 1fr);
        gap: 1.5rem;
    }

    .bestcv-auth-showcase {
        min-height: 32rem;
        padding: 1.6rem;
    }

    .bestcv-auth-showcase h2 {
        font-size: 1.7rem;
    }

    .bestcv-auth-showcase__visual {
        margin-bottom: -1.6rem;
    }
}

@media (max-width: 767.98px) {

    .bestcv-header,
    .bestcv-header__inner {
        min-height: 4.25rem;
    }

    .bestcv-header__inner {
        gap: 0.75rem;
    }

    .bestcv-brand {
        gap: 0.36rem;
        font-size: 1.28rem;
    }

    .bestcv-brand img {
        width: 2.1rem;
        height: 2.1rem;
    }

    .bestcv-header__nav,
    .bestcv-header__create,
    .bestcv-header__backoffice,
    .bestcv-logout {
        display: none;
    }

    .bestcv-header__actions {
        gap: 0.35rem;
    }

    .bestcv-button--compact {
        min-height: 2.55rem;
        padding: 0.45rem 0.72rem;
        font-size: 0.82rem;
    }

    .bestcv-back-link {
        overflow: hidden;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .bestcv-hero__inner {
        display: block;
        min-height: 0;
        padding-top: 2.35rem;
        padding-bottom: 1.2rem;
    }

    .bestcv-hero h1 {
        max-width: 12.5ch;
        font-size: clamp(2.48rem, 12vw, 3.3rem);
    }

    .bestcv-hero__description {
        font-size: 1rem;
    }

    .bestcv-barma-intro {
        margin-top: 1rem;
    }

    .bestcv-hero__actions {
        align-items: stretch;
        flex-direction: column;
        gap: 1rem;
    }

    .bestcv-hero__actions .bestcv-button,
    .bestcv-text-action {
        width: 100%;
    }

    .bestcv-text-action {
        justify-content: center;
    }

    .bestcv-reassurance {
        justify-content: center;
        font-size: 0.8rem;
    }

    .bestcv-hero__visual {
        width: min(34rem, calc(100% + 2rem));
        min-height: 22rem;
        margin: 0 -1rem;
    }

    .bestcv-hero__models {
        top: 3rem;
        right: -3.5rem;
        width: 37rem;
    }

    .bestcv-hero__barma {
        bottom: -0.8rem;
        left: 3%;
        width: min(19.2rem, 58%);
    }

    .bestcv-speech {
        top: 9rem;
        left: 47%;
        max-width: 9.5rem;
        padding: 0.65rem 0.72rem;
        font-size: 0.61rem;
    }

    .bestcv-barma-nameplate {
        bottom: 0.9rem;
        left: 1%;
        padding: 0.4rem 0.55rem;
    }

    .bestcv-benefits__inner,
    .bestcv-template-grid {
        grid-template-columns: 1fr;
    }

    .bestcv-benefit {
        padding: 1.3rem 0;
    }

    .bestcv-benefit+.bestcv-benefit {
        border-top: 1px solid var(--bestcv-border);
        border-left: 0;
    }

    .bestcv-models {
        padding-top: 2.25rem;
    }

    .bestcv-section-heading {
        display: block;
    }

    .bestcv-section-heading h2 {
        font-size: 2.1rem;
    }

    .bestcv-models-link {
        margin-top: 1rem;
    }

    .bestcv-template-card {
        min-height: 0;
    }

    .bestcv-pricing-note {
        align-items: flex-start;
    }

    .bestcv-start-page {
        min-height: calc(100vh - 4.25rem);
        padding-top: 2rem;
    }

    .bestcv-start__intro {
        margin-bottom: 1.65rem;
    }

    .bestcv-start__intro h1 {
        font-size: clamp(2rem, 10.5vw, 2.65rem);
    }

    .bestcv-choice-grid {
        grid-template-columns: 1fr;
    }

    .bestcv-start__content {
        grid-template-columns: 1fr;
    }

    .bestcv-start__barma {
        display: none;
    }

    .bestcv-choice-card {
        min-height: 0;
        padding: 1.45rem 1.2rem;
    }

    .bestcv-choice-card p {
        margin-bottom: 1.45rem;
    }

    .bestcv-start__privacy {
        margin-top: 1.35rem;
        text-align: center;
    }

    .bestcv-auth-page {
        display: block;
        min-height: calc(100vh - 4.25rem);
        padding: 2rem 0 1.5rem;
    }

    .bestcv-auth-page__glow {
        top: -10rem;
        width: 52rem;
        height: 35rem;
    }

    .bestcv-auth-page__grid {
        display: block;
        max-width: 34rem;
    }

    .bestcv-auth-card {
        padding: 1.5rem 1.2rem;
        border-radius: 1rem;
    }

    .bestcv-auth-card__heading {
        margin-bottom: 1.45rem;
    }

    .bestcv-auth-card__icon {
        width: 2.5rem;
        height: 2.5rem;
        margin-bottom: 0.85rem;
    }

    .bestcv-auth-card h1 {
        font-size: 1.78rem;
    }

    .bestcv-auth-showcase {
        display: block;
        min-height: 12rem;
        margin-top: 1rem;
        padding: 0;
        border-radius: 1rem;
    }

    .bestcv-auth-showcase__copy {
        display: none;
    }

    .bestcv-auth-showcase__visual {
        height: 12rem;
        min-height: 0;
        margin: 0;
        padding-top: 1rem;
    }

    .bestcv-auth-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.7rem;
    }

    .bestcv-auth-page__privacy {
        position: static;
        margin: 1.2rem auto 0;
        padding: 0 1rem;
    }
}

/* Account settings page (/profile) */

.bestcv-account {
    padding: clamp(2rem, 5vw, 3.5rem) 0 5rem;
}

.bestcv-account__header {
    max-width: 40rem;
    margin: 0 auto 2rem;
    text-align: center;
}

.bestcv-account__header h1 {
    margin: 0 0 0.5rem;
    color: var(--bestcv-navy);
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.045em;
}

.bestcv-account__header p {
    margin: 0;
    color: var(--bestcv-muted);
    font-size: 0.96rem;
}

.bestcv-account__panels {
    display: grid;
    gap: 1.25rem;
    max-width: 40rem;
    margin: 0 auto;
}

.bestcv-account-card {
    padding: clamp(1.4rem, 3vw, 1.9rem);
    border: 1px solid var(--bestcv-border);
    border-radius: 1.1rem;
    background: var(--bestcv-white);
    box-shadow: 0 0.75rem 2.25rem rgba(49, 20, 84, 0.06);
}

.bestcv-account-card--danger {
    border-color: #f3c4c1;
}

.bestcv-account-card h2 {
    margin: 0 0 0.35rem;
    color: var(--bestcv-navy);
    font-size: 1.15rem;
    font-weight: 750;
}

.bestcv-account-card__hint {
    margin: 0 0 1.3rem;
    color: var(--bestcv-muted);
    font-size: 0.87rem;
    line-height: 1.5;
}

.bestcv-account-card__actions {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-top: 0.3rem;
}

.bestcv-account-card__notice {
    margin: 0.6rem 0 0;
    color: #66718c;
    font-size: 0.85rem;
    line-height: 1.5;
}

.bestcv-account-card__success {
    margin: 0.4rem 0 0;
    color: #146c3b;
    font-size: 0.85rem;
    font-weight: 650;
}

.bestcv-account-card__saved {
    color: #146c3b;
    font-size: 0.87rem;
    font-weight: 650;
}

.bestcv-account-confirm {
    display: none;
    gap: 1.05rem;
    margin-top: 1.1rem;
    padding-top: 1.1rem;
    border-top: 1px dashed #f3c4c1;
}

.bestcv-account-confirm.is-open {
    display: grid;
}

.bestcv-account-confirm__actions {
    display: flex;
    gap: 0.7rem;
}

.bestcv-button--danger {
    background: var(--bestcv-white);
    border-color: #f3c4c1;
    color: #b42318 !important;
}

.bestcv-button--danger:hover,
.bestcv-button--danger:focus-visible {
    background: #fff5f4;
    border-color: #e2938d;
}

/* "Mes CV" page (/cv) */

.bestcv-cv {
    padding: clamp(2rem, 5vw, 3.5rem) 0 5rem;
}

.bestcv-cv__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.bestcv-cv__header h1 {
    margin: 0 0 0.4rem;
    color: var(--bestcv-navy);
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.045em;
}

.bestcv-cv__header p {
    margin: 0;
    color: var(--bestcv-muted);
    font-size: 0.96rem;
}

.bestcv-cv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
    gap: 1.5rem;
}

.bestcv-cv-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--bestcv-border);
    border-radius: 1rem;
    background: var(--bestcv-white);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.bestcv-cv-card:hover,
.bestcv-cv-card:focus-within {
    border-color: color-mix(in srgb, var(--bestcv-purple) 35%, var(--bestcv-border));
    box-shadow: 0 0.9rem 2rem rgba(23, 35, 63, 0.09);
}

/* The template thumbnail shown as a sheet of paper on a soft background. */
.bestcv-cv-card__preview {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    height: 12.5rem;
    padding: 1.4rem 1.4rem 0;
    overflow: hidden;
    border-radius: 1rem 1rem 0 0;
    background: var(--bestcv-purple-light);
    color: var(--bestcv-purple);
    font-size: 2.6rem;
    text-decoration: none;
}

.bestcv-cv-card__preview img {
    display: block;
    width: 72%;
    max-width: 10rem;
    height: auto;
    border-radius: 0.3rem 0.3rem 0 0;
    background: var(--bestcv-white);
    box-shadow: 0 0.4rem 1.2rem rgba(23, 35, 63, 0.14);
    transition: transform 200ms ease;
}

.bestcv-cv-card__preview i {
    align-self: center;
    margin-top: -1.4rem;
}

.bestcv-cv-card:hover .bestcv-cv-card__preview img {
    transform: translateY(-0.25rem);
}

.bestcv-cv-card__badge {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.bestcv-cv-card__badge--draft {
    background: var(--bestcv-white);
    color: #565a72;
    box-shadow: 0 0.15rem 0.5rem rgba(23, 35, 63, 0.08);
}

.bestcv-cv-card__badge--completed {
    background: #e2f6ec;
    color: #0f7a4c;
}

.bestcv-cv-card__body {
    padding: 1.1rem 1.2rem 0.9rem;
}

.bestcv-cv-card__title {
    margin: 0;
    color: var(--bestcv-navy);
    font-size: 1.05rem;
    font-weight: 750;
    line-height: 1.3;
}

.bestcv-cv-card__title a {
    text-decoration: none;
}

.bestcv-cv-card__title a:hover {
    color: var(--bestcv-purple);
}

.bestcv-cv-card__meta {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    margin: 0.35rem 0 0;
    color: var(--bestcv-muted);
    font-size: 0.82rem;
}

.bestcv-cv-card__actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: auto;
    padding: 0.85rem 1.2rem 1.1rem;
    border-top: 1px solid var(--bestcv-border);
}

.bestcv-cv-card__edit {
    flex: 1 1 auto;
    min-width: 0;
    gap: 0.4rem;
    justify-content: center;
}

.bestcv-cv-card__icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    flex: none;
    border: 1px solid var(--bestcv-border);
    border-radius: 0.6rem;
    background: var(--bestcv-white);
    color: var(--bestcv-navy);
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.bestcv-cv-card__icon-btn:hover,
.bestcv-cv-card__icon-btn[aria-expanded="true"] {
    border-color: var(--bestcv-purple);
    background: var(--bestcv-purple-light);
    color: var(--bestcv-purple-dark);
}

.bestcv-cv-card__menu {
    position: relative;
}

.bestcv-cv-card__menu-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 0.4rem);
    z-index: 5;
    display: grid;
    min-width: 11rem;
    padding: 0.35rem;
    border: 1px solid var(--bestcv-border);
    border-radius: 0.75rem;
    background: var(--bestcv-white);
    box-shadow: 0 0.9rem 2rem rgba(23, 35, 63, 0.14);
}

.bestcv-cv-card__menu-panel button {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.7rem;
    border: 0;
    border-radius: 0.5rem;
    background: transparent;
    color: var(--bestcv-navy);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.bestcv-cv-card__menu-panel button:hover,
.bestcv-cv-card__menu-panel button:focus-visible {
    background: var(--bestcv-purple-light);
}

.bestcv-cv-card__menu-panel button.is-danger {
    color: var(--bestcv-danger, #b42318);
}

.bestcv-cv-card__menu-panel button.is-danger:hover,
.bestcv-cv-card__menu-panel button.is-danger:focus-visible {
    background: var(--bestcv-danger-soft, #fff5f4);
}

.bestcv-cv-empty {
    display: grid;
    justify-items: center;
    gap: 0.9rem;
    padding: 2.5rem 1.5rem 3rem;
    border: 1px dashed var(--bestcv-border);
    border-radius: 1.1rem;
    background: var(--bestcv-white);
    text-align: center;
}

.bestcv-cv-empty__barma {
    display: block;
    width: auto;
    height: clamp(11rem, 26vh, 15rem);
    margin-bottom: 0.3rem;
    filter: drop-shadow(0 0.8rem 1rem rgba(23, 35, 63, 0.14));
}

.bestcv-cv-empty p {
    margin: 0;
    color: var(--bestcv-muted);
    max-width: 26rem;
}

/* Branded delete-confirmation modal (Livewire-toggled, no JS framework needed) */

.bestcv-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(11, 23, 57, 0.45);
}

.bestcv-modal {
    width: 100%;
    max-width: 26rem;
    padding: 1.75rem;
    border-radius: 1.1rem;
    background: var(--bestcv-white);
    box-shadow: 0 1.5rem 3.5rem rgba(11, 23, 57, 0.25);
}

.bestcv-modal h2 {
    margin: 0 0 0.6rem;
    color: var(--bestcv-navy);
    font-size: 1.15rem;
    font-weight: 750;
}

.bestcv-modal p {
    margin: 0;
    color: var(--bestcv-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.bestcv-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.7rem;
    margin-top: 1.5rem;
}

@media (max-width: 410px) {
    .bestcv-back-link span {
        display: none;
    }

    .bestcv-hero h1 {
        font-size: 2.3rem;
    }
}

@media (prefers-reduced-motion: reduce) {

    .bestcv-site *,
    .bestcv-site *::before,
    .bestcv-site *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* ------------------------------------------------------------------------
 * Content pages: blog (/conseils), FAQ and the shared site footer.
 * --------------------------------------------------------------------- */

.bestcv-header__nav a[aria-current="page"] {
    color: var(--bestcv-purple);
}

.bestcv-content {
    padding: 3rem 0 4rem;
}

.bestcv-content__narrow {
    max-width: 48rem;
}

.bestcv-content__intro {
    max-width: 46rem;
    margin-bottom: 2.25rem;
}

.bestcv-content__eyebrow {
    margin: 0 0 0.6rem;
    color: var(--bestcv-orange);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.bestcv-content__intro h1 {
    margin: 0;
    font-size: clamp(2.1rem, 4.2vw, 3.1rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.06;
}

.bestcv-content__intro>p:not(.bestcv-content__eyebrow) {
    margin: 0.9rem 0 0;
    color: var(--bestcv-muted);
    font-size: 1.08rem;
    line-height: 1.55;
}

.bestcv-content__empty {
    color: var(--bestcv-muted);
}

.bestcv-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.4rem;
    color: var(--bestcv-muted);
    font-size: 0.88rem;
}

.bestcv-breadcrumb a {
    text-decoration: none;
}

.bestcv-breadcrumb a:hover {
    color: var(--bestcv-purple);
    text-decoration: underline;
}

.bestcv-breadcrumb i {
    font-size: 0.7rem;
}

.bestcv-post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.bestcv-post-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.45rem;
    border: 1px solid var(--bestcv-border);
    border-radius: 0.9rem;
    background: var(--bestcv-white);
    box-shadow: 0 0.3rem 1rem rgba(47, 31, 77, 0.035);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bestcv-post-card:hover,
.bestcv-post-card:focus-within {
    border-color: var(--bestcv-purple);
    box-shadow: 0 0.5rem 1.4rem rgba(47, 31, 77, 0.08);
}

.bestcv-post-card__meta,
.bestcv-post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem 0.9rem;
    color: var(--bestcv-muted);
    font-size: 0.82rem;
}

.bestcv-post-card__category {
    color: var(--bestcv-purple);
    font-weight: 750;
}

.bestcv-post-card__draft {
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    background: var(--bestcv-orange-light);
    color: var(--bestcv-orange);
    font-weight: 750;
}

.bestcv-post-card__title {
    margin: 0.9rem 0 0.55rem;
    font-size: 1.28rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.25;
}

.bestcv-post-card__title a {
    text-decoration: none;
}

/* The whole card is clickable through the title link. */
.bestcv-post-card__title a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

.bestcv-post-card p {
    margin: 0;
    color: var(--bestcv-muted);
    font-size: 0.93rem;
    line-height: 1.5;
}

.bestcv-post-card__more {
    margin-top: auto;
    padding-top: 1.1rem;
    color: var(--bestcv-purple);
    font-size: 0.88rem;
    font-weight: 800;
}

.bestcv-post-meta {
    margin-top: 1.1rem;
}

.bestcv-prose {
    font-size: 1.06rem;
    line-height: 1.75;
}

.bestcv-prose h2 {
    margin: 2.4rem 0 0.8rem;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.bestcv-prose h3 {
    margin: 1.8rem 0 0.6rem;
    font-size: 1.22rem;
    font-weight: 800;
}

.bestcv-prose p,
.bestcv-prose ul,
.bestcv-prose ol {
    margin: 0 0 1.1rem;
}

.bestcv-prose li+li {
    margin-top: 0.35rem;
}

/* Markdown checklists ("- [ ] item") render as disabled checkboxes. */
.bestcv-prose li:has(> input[type="checkbox"]) {
    margin-left: -1.25rem;
    list-style: none;
}

.bestcv-prose li>input[type="checkbox"] {
    margin-right: 0.5rem;
    accent-color: var(--bestcv-purple);
}

.bestcv-prose a {
    color: var(--bestcv-purple);
    text-underline-offset: 0.2rem;
}

.bestcv-prose blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.2rem;
    border-left: 4px solid var(--bestcv-orange);
    border-radius: 0 0.6rem 0.6rem 0;
    background: var(--bestcv-orange-light);
}

.bestcv-prose blockquote p:last-child {
    margin-bottom: 0;
}

.bestcv-prose table {
    width: 100%;
    margin: 0 0 1.4rem;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.bestcv-prose th,
.bestcv-prose td {
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--bestcv-border);
    text-align: left;
    vertical-align: top;
}

.bestcv-prose th {
    background: var(--bestcv-purple-light);
}

.bestcv-content-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 2.75rem;
    padding: 1.6rem;
    border-radius: 1rem;
    background: var(--bestcv-purple-light);
}

.bestcv-content-cta h2 {
    margin: 0 0 0.35rem;
    font-size: 1.3rem;
    font-weight: 800;
}

.bestcv-content-cta p {
    margin: 0;
    color: var(--bestcv-muted);
}

.bestcv-content-cta .bestcv-button {
    flex: 0 0 auto;
}

.bestcv-related {
    margin-top: 3.5rem;
}

.bestcv-related>h2 {
    margin: 0 0 1.25rem;
    font-size: 1.6rem;
    font-weight: 800;
}

.bestcv-faq {
    display: grid;
    gap: 0.75rem;
}

.bestcv-faq__item {
    border: 1px solid var(--bestcv-border);
    border-radius: 0.8rem;
    background: var(--bestcv-white);
}

.bestcv-faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.05rem 1.25rem;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 750;
    list-style: none;
}

.bestcv-faq__item summary::-webkit-details-marker {
    display: none;
}

.bestcv-faq__item summary::after {
    content: "+";
    flex: 0 0 auto;
    color: var(--bestcv-purple);
    font-size: 1.4rem;
    line-height: 1;
}

.bestcv-faq__item[open] summary::after {
    content: "−";
}

.bestcv-faq__item p {
    margin: 0;
    padding: 0 1.25rem 1.15rem;
    color: #4d5875;
    line-height: 1.65;
}

.bestcv-footer {
    padding: 2.5rem 0 1.5rem;
    border-top: 1px solid var(--bestcv-border);
    background: var(--bestcv-white);
}

.bestcv-footer__inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem 3rem;
}

.bestcv-footer__brand p {
    margin: 0.5rem 0 0;
    color: var(--bestcv-muted);
    font-size: 0.92rem;
}

.bestcv-footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.6rem;
    font-size: 0.93rem;
    font-weight: 650;
}

.bestcv-footer__nav a {
    text-decoration: none;
}

.bestcv-footer__nav a:hover {
    color: var(--bestcv-purple);
    text-decoration: underline;
}

.bestcv-footer__legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.2rem;
    margin-top: 1.75rem;
    font-size: 0.82rem;
}

.bestcv-footer__legal-nav a {
    color: var(--bestcv-muted);
    text-decoration: none;
}

.bestcv-footer__legal-nav a:hover {
    color: var(--bestcv-purple);
    text-decoration: underline;
}

.bestcv-footer__legal {
    margin-top: 0.5rem;
    color: var(--bestcv-muted);
    font-size: 0.82rem;
}

/* Home page: latest articles as a mosaic (featured post + stacked cards). */
.bestcv-home-posts {
    padding: 3.2rem 0 3.8rem;
}

.bestcv-post-mosaic {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 1.25rem;
}

.bestcv-post-mosaic>.bestcv-post-card--featured {
    grid-row: span var(--mosaic-rows, 1);
}

.bestcv-post-mosaic>.bestcv-post-card--featured:only-child {
    grid-column: 1 / -1;
}

.bestcv-post-mosaic>.bestcv-post-card:not(.bestcv-post-card--featured) {
    padding: 1.15rem 1.35rem;
}

.bestcv-post-mosaic>.bestcv-post-card:not(.bestcv-post-card--featured) .bestcv-post-card__title {
    margin: 0.55rem 0 0.4rem;
    font-size: 1.08rem;
}

.bestcv-post-mosaic>.bestcv-post-card:not(.bestcv-post-card--featured) p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.bestcv-post-mosaic>.bestcv-post-card:not(.bestcv-post-card--featured) .bestcv-post-card__more {
    display: none;
}

.bestcv-post-card--featured {
    justify-content: flex-end;
    min-height: 20rem;
    padding: 2rem;
    overflow: hidden;
    border-color: transparent;
    background:
        radial-gradient(circle at 88% 12%, color-mix(in srgb, var(--bestcv-orange) 35%, transparent), transparent 42%),
        var(--bestcv-purple);
    color: var(--bestcv-white);
}

.bestcv-post-card--featured:hover,
.bestcv-post-card--featured:focus-within {
    border-color: transparent;
    box-shadow: 0 0.8rem 2rem rgba(23, 35, 63, 0.25);
}

.bestcv-post-card--featured .bestcv-post-card__image {
    width: calc(100% + 4rem);
    max-height: 15rem;
    margin: -2rem -2rem 1.5rem;
    object-fit: cover;
}

.bestcv-post-card--featured .bestcv-post-card__meta,
.bestcv-post-card--featured p {
    color: rgba(255, 255, 255, 0.78);
}

.bestcv-post-card--featured .bestcv-post-card__category,
.bestcv-post-card--featured .bestcv-post-card__more {
    color: var(--bestcv-white);
}

.bestcv-post-card--featured .bestcv-post-card__title {
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    line-height: 1.15;
}

.bestcv-post-card--featured .bestcv-post-card__more {
    margin-top: 1.4rem;
    padding-top: 0;
}

@media (max-width: 991.98px) {
    .bestcv-post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .bestcv-content {
        padding: 2rem 0 3rem;
    }

    .bestcv-post-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .bestcv-post-mosaic {
        grid-template-columns: minmax(0, 1fr);
    }

    .bestcv-post-mosaic>.bestcv-post-card--featured {
        grid-row: auto;
        min-height: 0;
        padding: 1.6rem;
    }

    .bestcv-post-card--featured .bestcv-post-card__image {
        width: calc(100% + 3.2rem);
        margin: -1.6rem -1.6rem 1.25rem;
    }

    .bestcv-prose {
        font-size: 1rem;
    }

    .bestcv-prose table {
        display: block;
        overflow-x: auto;
    }

    .bestcv-content-cta {
        align-items: stretch;
        flex-direction: column;
    }
}