:root {
    --bg: #f5efe6;
    --surface: rgba(255, 252, 247, 0.9);
    --surface-strong: #fffdfa;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #ddd4c8;
    --accent: #c75c2b;
    --accent-dark: #9f431b;
    --accent-soft: rgba(199, 92, 43, 0.12);
    --success: #1f8f5f;
    --success-soft: rgba(31, 143, 95, 0.12);
    --shadow: 0 24px 60px rgba(68, 44, 24, 0.12);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
    --focus-ring: 0 0 0 4px rgba(199, 92, 43, 0.18);
    --page-background:
        radial-gradient(circle at 12% 8%, rgba(199, 92, 43, 0.09), transparent 34%),
        radial-gradient(circle at 88% 18%, rgba(38, 84, 124, 0.07), transparent 36%),
        linear-gradient(180deg, #fbf7f1 0%, #f5efe6 48%, #f7f1e8 100%);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: #f5efe6;
    background-image: var(--page-background);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    overscroll-behavior-y: auto;
    -webkit-text-size-adjust: 100%;
}

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    font-family: "Segoe UI", "Helvetica Neue", sans-serif;
    color: var(--text);
    background: transparent;
}

@media (max-width: 760px) {
    html {
        background-color: #f5efe6;
        background-image: var(--page-background);
    }

    body {
        background: transparent;
    }
}

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

.page-shell {
    width: min(1060px, calc(100% - 44px));
    margin: 0 auto;
    padding: 28px 0 72px;
}

.site-header {
    position: sticky;
    top: 14px;
    z-index: 28;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    margin-bottom: 34px;
    padding: 12px;
    border: 1px solid rgba(221, 212, 200, 0.82);
    border-radius: 999px;
    background: rgba(255, 253, 250, 0.82);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 42px rgba(68, 44, 24, 0.08);
    transition:
        padding 420ms cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 420ms ease,
        background 420ms ease,
        transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.is-compact {
    padding: 8px 10px;
    background: rgba(255, 253, 250, 0.92);
    box-shadow: 0 16px 42px rgba(68, 44, 24, 0.12);
    transform: translateY(-2px);
}

.brand-cluster {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 8px;
}

.site-brand {
    border: 0;
    padding: 7px 0 8px 14px;
    color: #493621;
    background: transparent;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.brand-wordmark {
    display: inline-flex;
    align-items: baseline;
    gap: 0.18em;
    white-space: nowrap;
    font-family: "Muli", "Mulish", "Avenir Next", "Segoe UI", sans-serif;
    font-size: clamp(1.48rem, 2.18vw, 1.94rem);
    font-weight: 400;
    letter-spacing: -0.055em;
}

.brand-main {
    color: #493621;
}

.brand-ai {
    color: #D4831E;
}

.site-nav,
.top-account,
.saved-cv-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.site-nav {
    justify-content: center;
}

.site-nav a,
.nav-link {
    border: 0;
    padding: 10px 12px;
    border-radius: 999px;
    color: var(--muted);
    background: transparent;
    text-decoration: none;
    cursor: pointer;
}

.site-nav a:hover,
.nav-link:hover,
.nav-link.active {
    color: var(--accent-dark);
    background: rgba(199, 92, 43, 0.08);
}

.top-account {
    justify-content: flex-end;
}

.top-account strong {
    color: var(--muted);
    font-size: 0.92rem;
}

.language-switcher {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.language-switcher select {
    appearance: none;
    border: 1px solid rgba(221, 212, 200, 0.82);
    border-radius: 999px;
    padding: 9px 28px 9px 12px;
    color: var(--accent-dark);
    background:
        linear-gradient(45deg, transparent 50%, currentColor 50%) right 13px center / 5px 5px no-repeat,
        linear-gradient(135deg, currentColor 50%, transparent 50%) right 8px center / 5px 5px no-repeat,
        rgba(250, 246, 240, 0.9);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
}

.billing-banner {
    margin: -18px 0 22px;
    padding: 13px 16px;
    border: 1px solid rgba(31, 143, 95, 0.22);
    border-radius: 18px;
    color: #176b49;
    background: rgba(31, 143, 95, 0.1);
    font-weight: 700;
    line-height: 1.45;
}

.billing-banner-error {
    border-color: rgba(199, 92, 43, 0.26);
    color: var(--accent-dark);
    background: rgba(199, 92, 43, 0.1);
}

.inline-validation-error {
    grid-column: 1 / -1;
    margin: 2px 0 0;
    padding: 11px 13px;
    border: 1px solid rgba(199, 92, 43, 0.28);
    border-radius: 14px;
    color: #8f3413;
    background: rgba(199, 92, 43, 0.1);
    font-weight: 800;
    line-height: 1.45;
}

.validation-highlight {
    border-color: rgba(199, 92, 43, 0.36) !important;
    box-shadow: 0 18px 50px rgba(199, 92, 43, 0.13);
}

.credit-packages {
    display: grid;
    grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.6fr);
    gap: 18px;
    align-items: center;
    margin: -10px 0 22px;
    padding: 18px;
    border: 1px solid rgba(221, 212, 200, 0.86);
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(31, 143, 95, 0.1), transparent 36%),
        rgba(255, 253, 250, 0.86);
    box-shadow: 0 18px 46px rgba(68, 44, 24, 0.08);
}

.credit-packages[hidden] {
    display: none;
}

.credit-packages h2 {
    margin: 0;
    font-size: clamp(1.25rem, 2vw, 1.7rem);
    letter-spacing: -0.03em;
}

.credit-packages p:not(.eyebrow) {
    margin: 6px 0 0;
    color: var(--muted);
    line-height: 1.5;
}

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

.credit-package-card {
    display: grid;
    gap: 7px;
    width: 100%;
    padding: 16px;
    border: 1px solid rgba(221, 212, 200, 0.92);
    border-radius: 18px;
    color: var(--text);
    background:
        linear-gradient(180deg, rgba(255, 253, 250, 0.98), rgba(247, 240, 231, 0.78));
    text-align: left;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.credit-package-card:hover {
    transform: translateY(-2px);
    border-color: rgba(31, 143, 95, 0.35);
    box-shadow: 0 18px 34px rgba(68, 44, 24, 0.1);
}

.credit-package-card span {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 800;
}

.credit-package-card strong {
    color: var(--success);
    font-size: 1.45rem;
    line-height: 1;
}

.credit-package-card small {
    color: var(--muted);
}

.landing-page {
    display: grid;
    gap: 18px;
    margin-bottom: 24px;
}

.landing-page[hidden] {
    display: none;
}

.landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.72fr);
    gap: 42px;
    align-items: center;
    padding: 42px;
    border: 1px solid rgba(221, 212, 200, 0.9);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255, 253, 250, 0.98), rgba(250, 246, 239, 0.94));
    box-shadow: 0 22px 52px rgba(68, 44, 24, 0.1);
    overflow: hidden;
}

.landing-copy {
    display: grid;
    align-content: center;
    gap: 16px;
    max-width: 610px;
}

.landing-copy .eyebrow {
    margin-bottom: 0;
}

.landing-copy h1 {
    max-width: 560px;
    margin: 0;
    color: #172033;
    font-size: 3.05rem;
    line-height: 1.08;
    letter-spacing: 0;
}

.landing-lead {
    max-width: 540px;
    margin: 0;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.58;
}

.landing-ats-brief {
    display: grid;
    gap: 5px;
    max-width: 520px;
    padding: 12px 14px;
    border: 1px solid rgba(30, 108, 137, 0.14);
    border-left: 4px solid #1e6c89;
    border-radius: 8px;
    background: rgba(237, 247, 251, 0.72);
}

.landing-ats-brief strong {
    color: #12364f;
    font-size: 0.9rem;
}

.landing-ats-brief p {
    margin: 0;
    color: #46586e;
    font-size: 0.92rem;
    line-height: 1.48;
}

.landing-actions {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}

.landing-actions {
    margin-top: 4px;
}

.landing-actions .landing-cta,
.landing-actions .landing-secondary {
    width: auto;
    margin-top: 0;
    min-height: 46px;
    padding-inline: 22px;
}

.landing-actions .landing-cta {
    min-width: 252px;
    border-radius: 14px;
}

.landing-actions .landing-secondary {
    min-width: 124px;
    border: 1px solid rgba(199, 92, 43, 0.1);
    background: rgba(199, 92, 43, 0.09);
}

.landing-proof {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-width: 560px;
    margin-top: 2px;
}

.landing-proof span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 10px;
    border: 1px solid rgba(221, 212, 200, 0.78);
    border-radius: 999px;
    color: #5e6878;
    text-align: center;
    background: rgba(255, 253, 250, 0.78);
    font-size: 0.78rem;
    font-weight: 800;
}

.landing-preview {
    display: grid;
    align-items: center;
    justify-items: center;
}

.landing-preview-card {
    display: grid;
    align-content: start;
    gap: 14px;
    width: min(100%, 430px);
    min-height: 0;
    padding: 20px;
    border: 1px solid rgba(221, 212, 200, 0.9);
    border-radius: 18px;
    background: rgba(255, 253, 250, 0.95);
    box-shadow: 0 18px 38px rgba(68, 44, 24, 0.1);
}

.landing-preview-head {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 36px;
}

.landing-preview-dot {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--success);
}

.landing-preview-head span:not(.landing-preview-dot) {
    display: block;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.landing-preview-head strong {
    display: block;
    margin-top: 2px;
    color: #12364f;
    font-size: 0.98rem;
}

.landing-score-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    align-items: center;
}

.landing-score-row > div:not(.score-arrow) {
    padding: 12px;
    border: 1px solid rgba(221, 212, 200, 0.9);
    border-radius: 12px;
    background: #ffffff;
}

.landing-score-row span {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.landing-score-row strong {
    display: block;
    margin-top: 4px;
    color: #172033;
    font-size: 1.9rem;
    letter-spacing: 0;
}

.landing-score-row .score-after {
    border-color: rgba(31, 143, 95, 0.24);
    background: rgba(31, 143, 95, 0.08);
}

.score-arrow {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    color: var(--accent-dark);
    background: var(--accent-soft);
    font-size: 1.22rem;
    font-weight: 900;
}

.landing-mini-cv {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid rgba(221, 212, 200, 0.9);
    border-radius: 14px;
    background: #ffffff;
}

.landing-mini-profile {
    display: flex;
    align-items: center;
    gap: 9px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(221, 212, 200, 0.86);
}

.landing-mini-avatar {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    color: #ffffff;
    background: linear-gradient(135deg, #1e6c89, #2f7f9d);
    font-size: 0.77rem;
    font-weight: 900;
}

.landing-mini-profile strong {
    display: block;
    color: #12364f;
    font-size: 0.86rem;
}

.landing-mini-profile small {
    color: #687385;
    font-size: 0.72rem;
}

.landing-mini-heading {
    margin: 1px 0 0;
    color: var(--accent-dark);
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
}

.landing-mini-role {
    color: #172033;
    font-size: 0.83rem;
}

.landing-mini-detail {
    margin: 0;
    color: #687385;
    font-size: 0.75rem;
    line-height: 1.42;
}

.landing-mini-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.landing-mini-tags span {
    padding: 4px 7px;
    border-radius: 999px;
    color: #1e5169;
    background: rgba(30, 108, 137, 0.1);
    font-size: 0.67rem;
    font-weight: 800;
}

.landing-preview-card p {
    padding-top: 2px;
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.5;
}

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

.landing-grid article,
.landing-section,
.faq-list details {
    border: 1px solid rgba(221, 212, 200, 0.86);
    background: rgba(255, 253, 250, 0.78);
}

.landing-grid article {
    padding: 20px;
    border-radius: 24px;
}

.landing-grid h2,
.landing-grid h3 {
    margin: 0;
    letter-spacing: -0.03em;
}

.landing-grid p {
    margin: 9px 0 0;
    color: var(--muted);
    line-height: 1.58;
}

.landing-section {
    display: grid;
    gap: 18px;
    padding: 24px;
    border-radius: 30px;
}

.landing-section-head {
    max-width: 780px;
}

.landing-section-head h2 {
    margin: 0;
    font-size: clamp(1.55rem, 2.8vw, 2.55rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.landing-section-head p:not(.eyebrow) {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.landing-benefits article {
    background:
        linear-gradient(180deg, rgba(255, 253, 250, 0.96), rgba(248, 243, 236, 0.86));
}

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

.landing-price-grid article {
    display: grid;
    gap: 6px;
    padding: 18px;
    border: 1px solid rgba(31, 143, 95, 0.18);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 253, 250, 0.98), rgba(237, 244, 241, 0.78));
}

.landing-price-grid strong {
    color: var(--success);
    font-size: 1.8rem;
    letter-spacing: -0.04em;
}

.landing-price-grid span {
    color: var(--muted);
    font-weight: 800;
}

.contact-section {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    border: 1px solid rgba(199, 92, 43, 0.22);
    border-radius: 999px;
    color: var(--accent-dark);
    background: rgba(199, 92, 43, 0.08);
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.contact-email:hover {
    background: rgba(199, 92, 43, 0.14);
}

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

.contact-honeypot {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.contact-form label {
    display: grid;
    gap: 7px;
    color: var(--text);
    font-weight: 800;
}

.contact-form span {
    color: var(--muted);
    font-size: 0.92rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 1px solid rgba(221, 212, 200, 0.92);
    border-radius: 16px;
    padding: 13px 14px;
    color: var(--text);
    background: rgba(255, 253, 250, 0.96);
    outline: none;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: rgba(199, 92, 43, 0.42);
    box-shadow: 0 0 0 4px rgba(199, 92, 43, 0.08);
}

.contact-form-wide,
.contact-submit,
.contact-form .auth-status {
    grid-column: 1 / -1;
}

.contact-submit {
    justify-self: start;
}

.faq-list {
    display: grid;
    gap: 10px;
}

.faq-list h2 {
    margin: 18px 0 2px;
    color: #a84d22;
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.faq-list h2:first-child {
    margin-top: 0;
}

.faq-list details {
    padding: 16px 18px;
    border-radius: 18px;
}

.faq-list summary {
    color: #172033;
    font-weight: 900;
    cursor: pointer;
}

.faq-list p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.58;
}

.quick-start {
    margin-bottom: 22px;
    padding: 22px;
    border: 1px solid rgba(221, 212, 200, 0.82);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(199, 92, 43, 0.08), transparent 42%),
        rgba(255, 253, 250, 0.74);
}

.quick-start[hidden] {
    display: none;
}

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

.eyebrow {
    margin: 0 0 12px;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.quick-start-title {
    margin: 0;
    font-size: clamp(1.6rem, 2.4vw, 2.35rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

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

.quick-steps article {
    padding: 16px;
    border: 1px solid rgba(221, 212, 200, 0.82);
    border-radius: 20px;
    background: rgba(255, 253, 250, 0.78);
}

.quick-steps span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-bottom: 10px;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, var(--accent-dark), var(--accent));
    font-weight: 900;
}

.quick-steps strong {
    display: block;
}

.quick-steps p {
    margin: 7px 0 0;
    color: var(--muted);
    line-height: 1.5;
}

.scroll-reveal {
    --reveal-x: 0;
    opacity: 0;
    transform: translate(var(--reveal-x), 28px);
    will-change: opacity, transform;
    transition:
        opacity 900ms cubic-bezier(0.16, 1, 0.3, 1),
        transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translate(var(--reveal-x), 0);
    will-change: auto;
}

.scroll-reveal .stagger-item {
    opacity: 0;
    transform: translateY(24px);
    will-change: opacity, transform;
    transition:
        opacity 760ms cubic-bezier(0.16, 1, 0.3, 1),
        transform 760ms cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 420ms ease,
        border-color 420ms ease,
        color 420ms ease,
        background 420ms ease;
    transition-delay: calc(var(--stagger-index, 0) * 90ms);
}

.scroll-reveal.is-visible .stagger-item {
    opacity: 1;
    transform: translateY(0);
    will-change: auto;
}

.premium-why-section {
    position: relative;
    isolation: isolate;
    grid-template-columns: minmax(0, 0.96fr) minmax(430px, 1.04fr);
    column-gap: clamp(32px, 3.5vw, 46px);
    row-gap: 30px;
    align-items: center;
    margin-bottom: 18px;
    padding: clamp(28px, 4vw, 46px);
    border-radius: 24px;
    background: rgba(255, 253, 250, 0.94);
    box-shadow:
        0 26px 70px rgba(68, 44, 24, 0.075),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
    overflow: hidden;
}

.premium-why-copy {
    display: grid;
    align-content: center;
    gap: 0;
    min-width: 0;
}

.premium-why-visual {
    display: grid;
    align-self: center;
    min-width: 0;
    opacity: 0;
    transform: translateX(28px) scale(0.985);
    transition:
        opacity 900ms cubic-bezier(0.16, 1, 0.3, 1) 120ms,
        transform 900ms cubic-bezier(0.16, 1, 0.3, 1) 120ms;
}

.premium-why-section.is-visible .premium-why-visual {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.premium-why-copy > .eyebrow,
.premium-why-copy > h1,
.premium-why-copy > .premium-section-lead,
.premium-why-copy > .premium-hero-actions,
.premium-why-copy > .premium-proof-list {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 760ms cubic-bezier(0.16, 1, 0.3, 1),
        transform 760ms cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-why-copy > h1 {
    transition-delay: 70ms;
}

.premium-why-copy > .premium-section-lead {
    transition-delay: 140ms;
}

.premium-why-copy > .premium-hero-actions {
    transition-delay: 210ms;
}

.premium-why-copy > .premium-proof-list {
    transition-delay: 280ms;
}

.premium-why-section.is-visible .premium-why-copy > * {
    opacity: 1;
    transform: translateY(0);
}

.premium-why-copy h1,
.premium-why-copy h2 {
    max-width: 650px;
    margin: 0;
    color: #142134;
    font-size: clamp(2.6rem, 3.95vw, 3.15rem);
    line-height: 1.03;
    letter-spacing: 0;
    text-wrap: balance;
}

.premium-section-lead {
    max-width: 620px;
    margin: 18px 0 0;
    color: #607084;
    font-size: clamp(1.02rem, 1.45vw, 1.18rem);
    line-height: 1.52;
}

.premium-hero-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 26px;
    flex-wrap: wrap;
}

.generate-btn.premium-hero-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: auto;
    min-height: 52px;
    margin: 0;
    padding: 14px 22px;
    border-radius: 14px;
    box-shadow: 0 16px 32px rgba(199, 92, 43, 0.22);
}

.premium-hero-primary span:last-child {
    transition: transform 240ms ease;
}

.premium-hero-primary:hover span:last-child {
    transform: translateX(4px);
}

.premium-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    color: var(--accent-dark);
    font-weight: 800;
    text-decoration: none;
    text-underline-offset: 4px;
}

.premium-hero-secondary svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 240ms ease;
}

.premium-hero-secondary:hover {
    text-decoration: underline;
}

.premium-hero-secondary:hover svg {
    transform: translateX(4px);
}

.premium-proof-list {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 22px;
    color: #5d6d80;
    font-size: 0.9rem;
    font-weight: 800;
    flex-wrap: wrap;
}

.premium-proof-list > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.premium-proof-list svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    border-radius: 999px;
    color: #ffffff;
    background: var(--success);
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.premium-benefit-band {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-top: 24px;
    border-top: 1px solid rgba(221, 212, 200, 0.82);
}

.premium-benefit-band article {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 13px;
    align-items: start;
    min-width: 0;
    padding: 0 24px;
}

.premium-benefit-band article:first-child {
    padding-left: 0;
}

.premium-benefit-band article:last-child {
    padding-right: 0;
}

.premium-benefit-band article + article {
    border-left: 1px solid rgba(221, 212, 200, 0.78);
}

.premium-benefit-number {
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.premium-benefit-band strong {
    display: block;
    color: #18263a;
    font-size: 1rem;
    font-weight: 900;
}

.premium-benefit-band p {
    margin: 4px 0 0;
    color: #667587;
    line-height: 1.42;
}

@media (min-width: 841px) {
    .premium-why-section {
        grid-template-areas:
            "copy visual"
            "band visual";
        grid-template-rows: auto 1fr;
        align-items: start;
        row-gap: 22px;
    }

    .premium-why-copy {
        grid-area: copy;
        align-content: start;
    }

    .premium-why-visual {
        grid-area: visual;
        align-self: stretch;
    }

    .premium-benefit-band {
        grid-area: band;
        grid-column: auto;
        grid-template-columns: 1fr;
        padding-top: 14px;
    }

    .premium-benefit-band article,
    .premium-benefit-band article:first-child,
    .premium-benefit-band article:last-child {
        grid-template-columns: 38px minmax(0, 1fr);
        padding: 12px 0;
    }

    .premium-benefit-band article + article {
        border-top: 1px solid rgba(221, 212, 200, 0.78);
        border-left: 0;
    }
}

.process-trust-bar article {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

.process-trust-bar strong {
    margin: 0;
    color: #18263a;
    font-size: 1.12rem;
    font-weight: 900;
}

.process-trust-bar p {
    margin: 5px 0 0;
    color: #667587;
    line-height: 1.5;
}

.premium-icon,
.ats-briefcase,
.process-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: var(--accent);
    background: rgba(199, 92, 43, 0.09);
    box-shadow: inset 0 0 0 1px rgba(199, 92, 43, 0.04);
}

.premium-icon {
    width: 56px;
    height: 56px;
    border-radius: 999px;
}

.premium-icon svg,
.ats-briefcase svg,
.process-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.process-account-btn span:last-child {
    transition: transform 240ms ease;
}

.process-account-btn:hover span:last-child {
    transform: translateX(4px);
}

.ats-panel {
    position: relative;
    display: grid;
    gap: 21px;
    min-height: 390px;
    padding: clamp(22px, 2.7vw, 30px);
    border: 1px solid rgba(221, 212, 200, 0.9);
    border-radius: 14px;
    background: rgba(255, 252, 248, 0.98);
    box-shadow:
        0 24px 58px rgba(68, 44, 24, 0.095),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
    transition:
        transform 420ms cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 420ms ease,
        border-color 420ms ease;
}

.ats-panel-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
}

.ats-briefcase {
    width: 60px;
    height: 60px;
    border-radius: 999px;
}

.ats-panel-head span:not(.ats-briefcase) {
    color: #607084;
    font-weight: 800;
}

.ats-panel-head strong {
    display: block;
    margin-top: 2px;
    color: #142134;
    font-size: clamp(1.16rem, 2vw, 1.42rem);
    letter-spacing: 0;
}

.ats-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #607084;
    font-weight: 800;
    white-space: nowrap;
}

.ats-status span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(31, 143, 95, 0.1);
}

.premium-why-section.is-visible .ats-status span {
    animation: atsStatusConfirm 620ms cubic-bezier(0.16, 1, 0.3, 1) 520ms both;
}

.ats-divider {
    height: 1px;
    background: rgba(221, 212, 200, 0.78);
}

.ats-section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #18263a;
    font-weight: 900;
}

.ats-section-label span {
    color: rgba(96, 112, 132, 0.55);
    font-size: 1rem;
}

.ats-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ats-chip-row span {
    padding: 10px 16px;
    border-radius: 999px;
    color: #607084;
    background: rgba(199, 92, 43, 0.075);
    font-size: 0.9rem;
    font-weight: 800;
}

.ats-score-block {
    display: grid;
    gap: 18px;
}

.ats-score-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

.ats-score {
    display: grid;
    justify-items: center;
    gap: 4px;
}

.ats-score strong {
    color: #142134;
    font-size: clamp(2.35rem, 4.4vw, 3.3rem);
    line-height: 1;
    letter-spacing: 0;
}

.ats-score span {
    color: #607084;
    font-weight: 800;
}

.ats-score-after strong {
    color: var(--success);
}

.ats-score-arrow {
    color: var(--accent);
    opacity: 0.82;
    transform: translateY(8px);
}

.ats-score-arrow svg {
    width: 100%;
    height: auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ats-progress {
    --ats-progress: 42%;
    position: relative;
    height: 12px;
    border-radius: 999px;
    background: rgba(221, 212, 200, 0.76);
    overflow: visible;
}

.ats-progress-fill {
    width: var(--ats-progress);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent) 0%, #d9783f 46%, var(--success) 100%);
    transition: width 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.ats-progress-thumb {
    position: absolute;
    top: 50%;
    left: var(--ats-progress);
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255, 253, 250, 0.98);
    border-radius: 999px;
    background: #fffefa;
    box-shadow: 0 8px 18px rgba(68, 44, 24, 0.16);
    transform: translate(-50%, -50%);
    transition: left 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.ats-progress-scale {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    color: #667587;
    font-weight: 800;
}

.ats-progress-scale span:nth-child(2) {
    text-align: center;
}

.ats-progress-scale span:last-child {
    text-align: right;
}

.ats-improvement-badge {
    display: inline-flex;
    align-items: center;
    justify-self: center;
    gap: 7px;
    padding: 12px 20px;
    border-radius: 15px;
    color: #607084;
    background: rgba(255, 250, 244, 0.92);
    box-shadow: 0 18px 38px rgba(68, 44, 24, 0.065);
    opacity: 0;
    transform: scale(0.96) translateY(8px);
    transition:
        opacity 700ms cubic-bezier(0.16, 1, 0.3, 1) 900ms,
        transform 700ms cubic-bezier(0.16, 1, 0.3, 1) 900ms;
}

.premium-why-section.is-visible .ats-improvement-badge {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.ats-improvement-badge span:first-child,
.ats-improvement-badge strong {
    color: var(--success);
}

@keyframes atsStatusConfirm {
    0% {
        opacity: 0;
        transform: scale(0.45);
        box-shadow: 0 0 0 0 rgba(31, 143, 95, 0);
    }

    65% {
        opacity: 1;
        transform: scale(1.2);
        box-shadow: 0 0 0 7px rgba(31, 143, 95, 0.11);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 4px rgba(31, 143, 95, 0.1);
    }
}

.process-section {
    --process-progress: 0;
    display: grid;
    gap: 28px;
    margin-bottom: 22px;
    padding: clamp(26px, 4vw, 36px);
    border: 1px solid rgba(221, 212, 200, 0.86);
    border-radius: 30px;
    background:
        radial-gradient(circle at 34% 0%, rgba(199, 92, 43, 0.045), transparent 30%),
        rgba(255, 253, 250, 0.84);
    box-shadow:
        0 28px 72px rgba(68, 44, 24, 0.075),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.process-header {
    display: block;
    margin-bottom: 0;
}

.process-header .eyebrow {
    margin-left: 16px;
}

.process-header .quick-start-title {
    max-width: 760px;
    margin-left: 16px;
    color: #142134;
    font-size: clamp(1.85rem, 3.2vw, 2.55rem);
}

.premium-process {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    padding: 8px 18px 2px;
}

.process-line {
    position: absolute;
    z-index: 0;
    top: 46px;
    left: calc(12.5% + 44px);
    right: calc(12.5% + 44px);
    height: 2px;
    border-radius: 999px;
    background: repeating-linear-gradient(
        90deg,
        rgba(199, 92, 43, 0.55) 0 8px,
        transparent 8px 15px
    );
    transform: scaleX(var(--process-progress));
    transform-origin: left center;
    transition: transform 1000ms cubic-bezier(0.16, 1, 0.3, 1);
}

.process-line::after {
    content: "→";
    position: absolute;
    right: -6px;
    top: 50%;
    color: var(--accent);
    font-size: 1.2rem;
    font-weight: 900;
    transform: translate(100%, -53%);
}

.process-step {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    align-content: start;
    min-height: 168px;
    padding: 0 8px 12px;
    text-align: center;
}

.process-number {
    position: absolute;
    top: 0;
    left: calc(50% - 48px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 3px solid rgba(255, 253, 250, 0.95);
    border-radius: 999px;
    color: #fffefa;
    background: var(--accent);
    box-shadow: 0 8px 18px rgba(199, 92, 43, 0.22);
    font-size: 0.82rem;
    font-weight: 900;
    transform: translateY(-8px);
}

.process-icon {
    position: relative;
    z-index: 2;
    width: 72px;
    height: 72px;
    margin-bottom: 15px;
    border: 1px solid rgba(221, 212, 200, 0.74);
    border-radius: 999px;
    color: #18334d;
    background: #fffaf4;
    box-shadow: 0 16px 38px rgba(68, 44, 24, 0.06);
    transition:
        color 420ms ease,
        background 420ms ease,
        border-color 420ms ease,
        box-shadow 420ms ease,
        transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.process-step strong {
    color: #18263a;
    font-size: 1rem;
    font-weight: 900;
    transition: color 360ms ease;
}

.process-step p {
    max-width: 190px;
    margin: 8px 0 0;
    color: #6c7888;
    line-height: 1.48;
    transition: color 360ms ease;
}

.process-step.is-active .process-icon,
.process-step:hover .process-icon {
    color: var(--accent);
    border-color: rgba(199, 92, 43, 0.24);
    background: #faeee7;
    box-shadow:
        0 18px 42px rgba(199, 92, 43, 0.14),
        0 0 0 8px rgba(199, 92, 43, 0.035);
    transform: translateY(-4px) scale(1.02);
}

.process-step.is-active strong,
.process-step:hover strong {
    color: #142134;
}

.process-step.is-active p,
.process-step:hover p {
    color: #566476;
}

.process-step-featured .process-icon {
    color: var(--accent);
}

.process-trust-bar {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.05fr) minmax(0, 1.15fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid rgba(221, 212, 200, 0.82);
    border-radius: 18px;
    background: rgba(255, 250, 244, 0.9);
    box-shadow: 0 18px 42px rgba(68, 44, 24, 0.05);
}

.process-trust-bar article + article {
    padding-left: 18px;
    border-left: 1px solid rgba(221, 212, 200, 0.78);
}

.process-account-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 148px;
    min-height: 46px;
    color: var(--accent);
    border-color: rgba(199, 92, 43, 0.58);
    background: rgba(255, 253, 250, 0.78);
    font-weight: 900;
}

.process-account-btn:hover {
    color: #fffefa;
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: 0 16px 32px rgba(199, 92, 43, 0.18);
}

@keyframes atsPanelFloat {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-6px);
    }
}

.app-container {
    padding: 24px;
    border: 1px solid rgba(221, 212, 200, 0.85);
    border-radius: 32px;
    background: rgba(255, 253, 250, 0.8);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
}

.app-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.app-topbar h2 {
    margin: 0;
    font-size: clamp(1.4rem, 2.4vw, 2.2rem);
    letter-spacing: -0.03em;
}

.app-topbar p:not(.eyebrow) {
    max-width: 420px;
    margin: 6px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.account-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--success);
    background: var(--success-soft);
    font-weight: 800;
}

.buy-credits-btn {
    color: #176b49;
    background: rgba(31, 143, 95, 0.1);
}

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

.mode-switch {
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
    margin-bottom: 28px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(244, 237, 228, 0.85);
}

.toggle-btn {
    border: 0;
    padding: 13px 20px;
    border-radius: 999px;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
    transition: 0.2s ease;
}

.toggle-btn.active {
    color: white;
    background: linear-gradient(135deg, var(--accent) 0%, #b86b32 100%);
    box-shadow: 0 10px 24px rgba(199, 92, 43, 0.25);
}

.step-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    min-height: 30px;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, var(--accent-dark), var(--accent));
    font-size: 0.82rem;
    font-weight: 800;
}

.view-panel {
    display: none;
}

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

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

.section-heading h2,
.section-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.section-heading p,
.section-header p,
.helper-text,
.info,
.secure,
.file-meta span,
.result-label,
#score-summary {
    margin: 6px 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.panel,
.results-panel {
    margin-bottom: 18px;
    padding: 24px;
    border: 1px solid rgba(221, 212, 200, 0.9);
    border-radius: var(--radius-xl);
    background: var(--surface);
}

.generation-loading-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    margin-bottom: 18px;
    padding: 24px;
    border: 1px solid rgba(221, 212, 200, 0.9);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at top left, rgba(199, 92, 43, 0.13), transparent 35%),
        rgba(255, 253, 250, 0.9);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(14px) scale(0.985);
    transition: opacity 0.38s ease, transform 0.38s ease;
}

.generation-loading-panel[hidden] {
    display: none;
}

.generation-loading-panel.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.generation-loading-panel h2 {
    margin: 0;
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    letter-spacing: -0.03em;
}

.generation-loading-panel p:not(.eyebrow) {
    margin: 7px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.loading-orb {
    position: relative;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    background:
        conic-gradient(from 0deg, var(--accent), rgba(199, 92, 43, 0.12), var(--success), var(--accent));
    animation: spinOrb 1.1s linear infinite;
}

.loading-orb::after {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: inherit;
    background: #fffdfa;
}

@keyframes spinOrb {
    to {
        transform: rotate(360deg);
    }
}

.results-panel {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
}

.results-panel.results-panel-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.trial-lock-banner {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 18px;
    padding: 18px 20px;
    border: 1px solid rgba(30, 108, 137, 0.18);
    border-radius: 12px;
    background: #edf7fb;
    box-shadow: 0 18px 44px rgba(87, 61, 38, 0.08);
}

.trial-lock-banner[hidden] {
    display: none;
}

.trial-lock-banner strong {
    display: block;
    color: var(--text);
    font-size: 1.02rem;
}

.trial-lock-banner .result-label {
    margin: 0 0 5px;
    color: #1e6c89;
}

.trial-lock-banner #trial-lock-copy {
    margin: 5px 0 0;
    color: var(--muted);
    line-height: 1.5;
}

.trial-lock-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.trial-results .score-comparison strong,
.trial-results .score-breakdown strong,
.trial-results .score-breakdown small,
.trial-results .score-track span {
    filter: blur(7px);
    user-select: none;
}

.quick-actions-card[hidden] {
    display: none !important;
}

.panel.stack {
    display: grid;
    gap: 14px;
}

.account-section {
    margin-bottom: 22px;
}

.account-section[hidden] {
    display: none;
}

.account-section-card {
    padding: 24px;
    border: 1px solid rgba(221, 212, 200, 0.9);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(135deg, rgba(38, 84, 124, 0.08), transparent 45%),
        var(--surface);
    box-shadow: var(--shadow);
}

.saved-cv-list {
    display: grid;
    gap: 10px;
}

.candidate-profile-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid rgba(31, 143, 95, 0.16);
    border-radius: 18px;
    background: rgba(31, 143, 95, 0.055);
}

.candidate-profile-card[hidden],
[data-build-profile-form][hidden] {
    display: none;
}

.candidate-profile-card strong {
    display: block;
}

.build-profile-card {
    margin-bottom: 18px;
}

.candidate-profile-editor {
    display: grid;
    gap: 16px;
    margin: 0 0 16px;
    padding: 18px;
    border: 1px solid rgba(221, 212, 200, 0.9);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(31, 143, 95, 0.08), transparent 34%),
        rgba(255, 253, 250, 0.94);
    scroll-margin-top: 112px;
}

.candidate-profile-editor[hidden] {
    display: none;
}

.profile-import-panel {
    display: grid;
    gap: 16px;
    margin: 2px -18px 4px;
    padding: 22px 18px;
    border-top: 1px solid rgba(199, 92, 43, 0.18);
    border-bottom: 1px solid rgba(199, 92, 43, 0.18);
    background: rgba(199, 92, 43, 0.035);
}

.profile-import-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
}

.profile-import-heading h3,
.profile-setup-panel h3 {
    margin: 3px 0 5px;
    font-size: 1.28rem;
}

.profile-import-heading > div:first-child > p:last-child,
.profile-setup-panel > div > p:last-child {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.profile-import-tabs {
    flex: 0 0 auto;
}

.profile-import-dropzone {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-height: 92px;
    padding: 16px;
    border: 1px dashed rgba(199, 92, 43, 0.48);
    border-radius: 8px;
    background: rgba(255, 253, 250, 0.88);
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-import-dropzone:hover,
.profile-import-dropzone.is-dragging {
    border-color: var(--accent);
    background: #fffaf6;
    box-shadow: inset 0 0 0 1px rgba(199, 92, 43, 0.08);
}

.profile-import-dropzone[hidden],
.profile-import-file-result[hidden],
.profile-photo-saved-preview[hidden],
.profile-setup-panel[hidden],
[data-build-job-flow][hidden] {
    display: none !important;
}

.profile-import-file-mark,
.profile-import-ready-mark {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: rgba(199, 92, 43, 0.11);
    color: var(--accent-dark);
    font-size: 0.82rem;
    font-weight: 900;
}

.profile-import-ready-mark {
    width: 38px;
    height: 38px;
    background: rgba(31, 143, 95, 0.12);
    color: var(--success);
    font-size: 1rem;
}

.profile-import-file-copy,
.profile-import-file-result > span:nth-child(2) {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.profile-import-file-copy small,
.profile-import-file-result small {
    color: var(--muted);
    line-height: 1.45;
}

.profile-import-file-result {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 72px;
    padding: 14px 16px;
    border: 1px solid rgba(31, 143, 95, 0.2);
    border-radius: 8px;
    background: rgba(31, 143, 95, 0.055);
}

.profile-import-file-result strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-import-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.profile-import-action .helper-text {
    margin: 0;
    max-width: 720px;
}

.profile-import-action .import-btn {
    flex: 0 0 auto;
}

.profile-photo-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    padding: 14px 0;
    border-top: 1px solid rgba(221, 212, 200, 0.68);
    border-bottom: 1px solid rgba(221, 212, 200, 0.68);
}

.profile-photo-copy {
    display: grid;
    gap: 3px;
}

.profile-photo-copy span {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.profile-photo-saved-preview {
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-photo-saved-preview img {
    width: 52px;
    height: 52px;
    border: 1px solid rgba(28, 38, 56, 0.12);
    border-radius: 8px;
    object-fit: cover;
}

.profile-setup-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 18px;
    padding: 24px;
    border: 1px solid rgba(38, 84, 124, 0.16);
    border-left: 4px solid #26547c;
    border-radius: 8px;
    background: rgba(237, 247, 251, 0.66);
}

.profile-setup-actions {
    display: flex;
    gap: 10px;
    flex: 0 0 auto;
}

.profile-editor-label {
    color: var(--accent-dark);
    font-weight: 800;
}

.profile-editor-section {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(221, 212, 200, 0.72);
    border-radius: 18px;
    background: rgba(255, 253, 250, 0.72);
}

.account-settings-card {
    display: grid;
    gap: 14px;
    margin-bottom: 14px;
    padding: 16px;
    border: 1px solid rgba(221, 212, 200, 0.9);
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(38, 84, 124, 0.06), transparent 42%),
        rgba(255, 253, 250, 0.86);
}

.account-settings-card[hidden] {
    display: none;
}

.account-settings-card summary,
.admin-details-card summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    list-style: none;
}

.account-settings-card summary::-webkit-details-marker,
.admin-details-card summary::-webkit-details-marker {
    display: none;
}

.account-settings-card summary strong,
.admin-details-card summary h3 {
    display: block;
    margin: 3px 0 0;
}

.account-settings-card summary small,
.admin-details-card summary > span {
    border-radius: 999px;
    padding: 8px 12px;
    color: var(--accent-dark);
    background: rgba(199, 92, 43, 0.08);
    font-weight: 800;
}

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

.account-settings-box {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(221, 212, 200, 0.78);
    border-radius: 18px;
    background: rgba(255, 253, 250, 0.78);
}

.account-settings-box h4 {
    margin: 0;
}

.account-marketing-box {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 0.8fr) auto;
    align-items: center;
    background:
        linear-gradient(135deg, rgba(31, 143, 95, 0.08), transparent 46%),
        rgba(255, 253, 250, 0.82);
}

.account-marketing-box .helper-text,
.account-marketing-box .auth-status {
    margin: 4px 0 0;
}

.account-marketing-box .auth-status {
    grid-column: 1 / -1;
}

.danger-zone {
    border-color: rgba(181, 74, 55, 0.26);
    background: rgba(181, 74, 55, 0.055);
}

.danger-btn {
    color: #9b2f1d;
    background: rgba(181, 74, 55, 0.1);
}

.account-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.account-overview-grid[hidden] {
    display: none;
}

.account-overview-grid article {
    display: grid;
    gap: 4px;
    padding: 13px 14px;
    border: 1px solid rgba(221, 212, 200, 0.78);
    border-radius: 17px;
    background: rgba(255, 253, 250, 0.72);
}

.account-overview-grid span {
    color: var(--muted);
    font-size: 0.85rem;
}

.account-list-header {
    margin: 18px 0 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(221, 212, 200, 0.72);
}

.account-list-header h3 {
    margin: 3px 0 4px;
}

.compact-action-panel {
    margin-top: 4px;
}

.saved-cv-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(221, 212, 200, 0.9);
    border-radius: 18px;
    background: rgba(255, 253, 250, 0.74);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.saved-cv-card:hover,
.saved-cv-card:focus-visible {
    border-color: rgba(199, 92, 43, 0.28);
    box-shadow: 0 14px 30px rgba(68, 44, 24, 0.08);
    transform: translateY(-1px);
    outline: none;
}

.saved-cv-card-active {
    border-color: rgba(199, 92, 43, 0.48);
    background:
        linear-gradient(135deg, rgba(199, 92, 43, 0.11), rgba(255, 253, 250, 0.9));
    box-shadow: inset 4px 0 0 var(--accent), 0 16px 34px rgba(68, 44, 24, 0.08);
}

.account-preview-panel {
    margin-top: 18px;
    padding: 20px;
    border: 1px solid rgba(221, 212, 200, 0.9);
    border-radius: 24px;
    background: rgba(255, 253, 250, 0.92);
}

.account-preview-panel[hidden] {
    display: none;
}

.admin-section {
    margin-bottom: 22px;
}

.admin-section[hidden] {
    display: none;
}

.admin-shell {
    display: grid;
    gap: 18px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 24px;
    border: 1px solid rgba(221, 212, 200, 0.9);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at top right, rgba(31, 143, 95, 0.1), transparent 34%),
        linear-gradient(135deg, rgba(38, 84, 124, 0.08), transparent 45%),
        var(--surface);
    box-shadow: var(--shadow);
}

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

.admin-metric-card,
.admin-card {
    border: 1px solid rgba(221, 212, 200, 0.88);
    border-radius: 20px;
    background: rgba(255, 253, 250, 0.84);
}

.admin-metric-card {
    display: grid;
    gap: 6px;
    padding: 16px;
}

.admin-metric-card span,
.admin-metric-card small,
.admin-card p {
    color: var(--muted);
}

.admin-metric-card strong {
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    letter-spacing: -0.04em;
}

.admin-metric-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.admin-metric-split span {
    display: grid;
    gap: 2px;
    padding: 9px 10px;
    border-radius: 14px;
    color: var(--text);
    background: rgba(244, 237, 228, 0.75);
}

.admin-metric-split span strong {
    font-size: 1.15rem;
}

.admin-metric-split span small {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-panels-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    min-width: 0;
}

.admin-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    min-width: 0;
}

.admin-details-card {
    align-content: start;
    overflow: hidden;
}

.admin-details-card summary h3,
.admin-details-card summary p {
    margin: 0;
}

.admin-details-card summary > div {
    flex: 1 1 auto;
    min-width: 0;
}

.admin-details-card summary p,
.admin-card p {
    overflow-wrap: anywhere;
}

.admin-filter-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    min-width: 0;
}

.admin-filter-row select {
    width: 100%;
}

.admin-filter-row:has(select) {
    grid-template-columns: minmax(0, 1fr) minmax(160px, 0.7fr) auto;
}

.admin-credit-form {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(180px, 1fr) minmax(120px, 0.55fr) minmax(220px, 1fr) auto;
    gap: 10px;
    align-items: end;
    margin: 14px 0;
    padding: 14px;
    border: 1px solid rgba(221, 212, 200, 0.82);
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(31, 143, 95, 0.08), transparent 46%),
        rgba(255, 253, 250, 0.82);
}

.admin-credit-form > div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.admin-credit-form > input,
.admin-credit-form > button {
    min-width: 0;
}

.admin-credit-form strong {
    color: #172033;
}

.admin-credit-form p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.35;
}

.admin-credit-form .auth-status {
    grid-column: 1 / -1;
    margin: 0;
}

.admin-package-list {
    display: grid;
    gap: 10px;
}

.admin-funnel-list {
    display: grid;
    gap: 10px;
}

.admin-checklist-list {
    display: grid;
    gap: 10px;
}

.admin-package-row {
    display: grid;
    grid-template-columns: minmax(140px, 0.65fr) minmax(180px, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(244, 237, 228, 0.55);
}

.admin-funnel-row {
    display: grid;
    grid-template-columns: minmax(170px, 0.75fr) minmax(180px, 1fr) minmax(88px, auto);
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(244, 237, 228, 0.55);
}

.admin-checklist-row {
    display: grid;
    grid-template-columns: minmax(140px, 0.45fr) minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(244, 237, 228, 0.55);
}

.admin-checklist-row[data-status="warning"] {
    background: rgba(199, 92, 43, 0.08);
}

.admin-checklist-row small {
    color: var(--muted);
    line-height: 1.45;
}

.admin-checklist-badge {
    border-radius: 999px;
    padding: 7px 10px;
    color: #1f8f5f;
    background: rgba(31, 143, 95, 0.12);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.admin-checklist-row[data-status="warning"] .admin-checklist-badge {
    color: var(--accent-dark);
    background: var(--accent-soft);
}

.admin-package-progress {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(221, 212, 200, 0.8);
}

.admin-funnel-progress {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(221, 212, 200, 0.8);
}

.admin-package-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), #1f8f5f);
}

.admin-funnel-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #26547c, #1f8f5f);
}

.admin-package-row small {
    color: var(--muted);
    white-space: nowrap;
}

.admin-funnel-row small {
    color: var(--muted);
    text-align: right;
    white-space: nowrap;
}

.admin-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-table {
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.admin-table th,
.admin-table td {
    padding: 10px 8px;
    border-bottom: 1px solid rgba(221, 212, 200, 0.72);
    text-align: left;
    white-space: nowrap;
}

.admin-table th {
    color: var(--accent-dark);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.admin-event-list {
    display: grid;
    gap: 8px;
}

.admin-event-item {
    display: grid;
    gap: 3px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(244, 237, 228, 0.55);
}

.admin-event-item span {
    color: var(--muted);
    font-size: 0.86rem;
}

.admin-event-item small {
    color: var(--muted);
}

.admin-newsletter-card {
    gap: 18px;
    overflow: hidden;
}

.admin-newsletter-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

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

.newsletter-metrics article {
    display: grid;
    gap: 5px;
    padding: 14px;
    border: 1px solid rgba(31, 143, 95, 0.15);
    border-radius: 17px;
    background:
        linear-gradient(135deg, rgba(31, 143, 95, 0.08), transparent 64%),
        rgba(255, 253, 250, 0.8);
}

.newsletter-metrics span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.newsletter-metrics strong {
    color: #176b49;
    font-size: 1.45rem;
}

.newsletter-editor-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.75fr);
    gap: 16px;
    align-items: start;
}

.newsletter-editor {
    display: grid;
    gap: 12px;
    min-width: 0;
    padding: 16px;
    border: 1px solid rgba(221, 212, 200, 0.82);
    border-radius: 20px;
    background: rgba(255, 253, 250, 0.76);
}

.newsletter-template-picker {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
    padding: 13px;
    border: 1px solid rgba(199, 92, 43, 0.17);
    border-radius: 17px;
    background:
        linear-gradient(135deg, rgba(199, 92, 43, 0.075), rgba(255, 253, 250, 0.74));
}

.newsletter-template-picker label {
    display: grid;
    gap: 7px;
    min-width: 0;
    color: var(--text);
    font-weight: 800;
}

.newsletter-template-picker label > span {
    font-size: 0.88rem;
}

.newsletter-template-picker select {
    min-width: 0;
}

.newsletter-template-picker .ghost-btn {
    min-height: 46px;
    white-space: nowrap;
}

.newsletter-template-note {
    margin: -3px 2px 2px;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.newsletter-editor > label,
.newsletter-cta-fields label {
    display: grid;
    gap: 7px;
    color: var(--text);
    font-weight: 800;
}

.newsletter-editor > label > span,
.newsletter-cta-fields label > span {
    font-size: 0.88rem;
}

.newsletter-editor textarea {
    min-height: 190px;
}

.newsletter-cta-fields {
    display: grid;
    grid-template-columns: minmax(160px, 0.65fr) minmax(0, 1fr);
    gap: 10px;
}

.newsletter-send-confirm {
    padding: 11px 12px;
    border: 1px solid rgba(199, 92, 43, 0.16);
    border-radius: 15px;
    background: rgba(199, 92, 43, 0.06);
}

.newsletter-editor-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    flex-wrap: wrap;
}

.newsletter-editor-actions .generate-btn {
    width: auto;
    margin-top: 0;
}

.newsletter-preview-shell {
    position: sticky;
    top: 104px;
    display: grid;
    gap: 10px;
    min-width: 0;
}

.newsletter-preview {
    display: grid;
    gap: 12px;
    padding: clamp(22px, 3vw, 34px);
    border: 1px solid #e7dbce;
    border-radius: 24px;
    color: #1f2937;
    background:
        radial-gradient(circle at top left, rgba(199, 92, 43, 0.1), transparent 36%),
        #fffdf9;
    box-shadow: 0 20px 44px rgba(68, 44, 24, 0.1);
}

.newsletter-preview > small:first-child {
    color: var(--accent);
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.newsletter-preview h4 {
    margin: 2px 0 4px;
    color: #172033;
    font-size: clamp(1.45rem, 3vw, 2rem);
    letter-spacing: -0.04em;
}

.newsletter-preview-greeting {
    margin: 0;
    color: #172033;
    font-weight: 800;
}

.newsletter-preview-body {
    color: #5f6878;
    line-height: 1.65;
}

.newsletter-preview-body p {
    margin: 0 0 12px;
    color: inherit;
}

.newsletter-preview-cta {
    display: inline-flex;
    justify-content: center;
    justify-self: center;
    padding: 12px 20px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent-dark), var(--accent));
    box-shadow: 0 12px 26px rgba(199, 92, 43, 0.22);
    font-weight: 900;
}

.newsletter-preview-footer {
    padding-top: 14px;
    border-top: 1px solid #e7dbce;
    color: #8a93a3;
    line-height: 1.45;
}

.newsletter-data-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 14px;
}

.newsletter-data-grid > .admin-details-card {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(221, 212, 200, 0.82);
    border-radius: 18px;
    background: rgba(255, 253, 250, 0.7);
}

.newsletter-history {
    display: grid;
    gap: 9px;
}

.newsletter-history-item {
    display: grid;
    gap: 11px;
    padding: 13px;
    border: 1px solid rgba(221, 212, 200, 0.74);
    border-radius: 16px;
    background: rgba(244, 237, 228, 0.48);
}

.newsletter-history-item[data-status="failed"] {
    border-color: rgba(181, 74, 55, 0.22);
    background: rgba(181, 74, 55, 0.055);
}

.newsletter-history-item > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.newsletter-history-item > div:first-child span {
    color: var(--muted);
    font-size: 0.82rem;
    text-align: right;
}

.newsletter-history-metrics {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 7px;
}

.newsletter-history-metrics span {
    display: grid;
    gap: 2px;
    padding: 8px;
    border-radius: 12px;
    background: rgba(255, 253, 250, 0.78);
}

.newsletter-history-metrics strong {
    font-size: 1rem;
}

.newsletter-history-metrics small {
    color: var(--muted);
    font-size: 0.72rem;
}

#account-preview-title {
    margin: 4px 0 0;
    font-size: 1.15rem;
}

.account-analysis-panel {
    display: grid;
    gap: 14px;
    margin: 12px 0 16px;
    padding: 16px;
    border: 1px solid rgba(221, 212, 200, 0.86);
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(31, 143, 95, 0.07), transparent 42%),
        rgba(255, 253, 250, 0.78);
}

.account-analysis-panel[hidden] {
    display: none;
}

.compact-score-comparison {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.account-analysis-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(180px, 0.9fr) minmax(180px, 0.9fr);
    gap: 12px;
}

.saved-cv-meta {
    display: grid;
    gap: 4px;
}

.saved-cv-meta span,
.empty-state {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.input-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.step-panel {
    position: relative;
}

.step-panel .step-pill {
    margin-bottom: 8px;
    padding: 6px 10px;
    min-width: auto;
    min-height: 28px;
}

.section-header,
.result-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.section-header.compact {
    margin-bottom: 12px;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tab {
    border: 1px solid var(--line);
    padding: 9px 12px;
    border-radius: 999px;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
    transition: 0.2s ease;
}

.tab.active {
    color: var(--accent-dark);
    border-color: rgba(199, 92, 43, 0.3);
    background: var(--accent-soft);
}

.input-panel {
    display: none;
}

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

textarea,
input,
select,
.job-link {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface-strong);
    padding: 15px 16px;
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

textarea {
    min-height: 132px;
    resize: vertical;
}

textarea[readonly] {
    min-height: 320px;
}

textarea:focus,
input:focus,
select:focus,
.job-link:focus {
    outline: none;
    border-color: rgba(199, 92, 43, 0.55);
    box-shadow: 0 0 0 4px rgba(199, 92, 43, 0.12);
    transform: translateY(-1px);
}

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

.styles,
.results-grid {
    display: grid;
    gap: 12px;
}

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

.results-grid {
    grid-template-columns: 1fr;
    margin-bottom: 12px;
}

.results-grid .result-card:not(.score-card) {
    padding: 18px;
}

.style-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px;
    text-align: left;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(247, 240, 232, 0.95) 100%);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.style-card span {
    color: var(--muted);
    line-height: 1.5;
}

.style-card strong {
    color: #172033;
}

.style-card:hover,
.style-card.active {
    transform: translateY(-3px);
    border-color: rgba(199, 92, 43, 0.4);
    box-shadow: 0 14px 30px rgba(79, 52, 32, 0.12);
}

.style-card:hover strong,
.style-card.active strong {
    color: var(--accent-dark);
}

.style-card.active {
    background: linear-gradient(180deg, rgba(255, 244, 238, 1) 0%, rgba(255, 249, 243, 1) 100%);
}

.style-template-preview {
    margin-top: 14px;
}

.template-preview-shell {
    display: grid;
    grid-template-columns: minmax(220px, 0.66fr) minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
    padding: 18px;
    border: 1px solid rgba(221, 212, 200, 0.76);
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(199, 92, 43, 0.08), transparent 36%),
        rgba(255, 253, 250, 0.88);
}

.template-preview-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.template-preview-copy strong {
    color: var(--text);
    font-size: 1.02rem;
}

.template-preview-copy span {
    color: var(--muted);
    line-height: 1.55;
}

.template-mini {
    min-height: 210px;
    padding: 16px;
    border: 1px solid rgba(213, 205, 195, 0.9);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(68, 44, 24, 0.08);
    overflow: hidden;
}

.template-mini-head {
    display: grid;
    gap: 8px;
    margin-bottom: 13px;
}

.template-mini-name {
    width: 54%;
    height: 18px;
    border-radius: 999px;
    background: #182235;
}

.template-mini-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.template-mini-contact span,
.template-mini-line,
.template-mini-chip {
    display: block;
    border-radius: 999px;
    background: rgba(100, 116, 139, 0.14);
}

.template-mini-contact span {
    width: 58px;
    height: 9px;
}

.template-mini-sections {
    display: grid;
    gap: 9px;
}

.template-mini-section {
    padding: 10px;
    border: 1px solid rgba(221, 212, 200, 0.76);
    border-radius: 14px;
    background: rgba(255, 253, 250, 0.9);
}

.template-mini-title {
    width: 34%;
    height: 8px;
    margin-bottom: 8px;
    border-radius: 999px;
    background: rgba(199, 92, 43, 0.68);
}

.template-mini-line {
    height: 7px;
    margin-bottom: 6px;
}

.template-mini-line.short {
    width: 68%;
}

.template-mini-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.template-mini-chip {
    width: 52px;
    height: 11px;
}

.style-preview-minimal .template-mini {
    border-color: rgba(199, 92, 43, 0.3);
    border-top: 7px solid #c75c2b;
    background: #fffdfa;
    box-shadow: 0 18px 42px rgba(103, 58, 30, 0.12);
}

.style-preview-minimal .template-mini-head {
    padding-bottom: 11px;
    border-bottom: 1px solid rgba(159, 67, 27, 0.24);
}

.style-preview-minimal .template-mini-name {
    background: #493621;
}

.style-preview-minimal .template-mini-contact span,
.style-preview-minimal .template-mini-line,
.style-preview-minimal .template-mini-chip {
    background: rgba(159, 67, 27, 0.16);
}

.style-preview-minimal .template-mini-section {
    border-radius: 10px;
    border-color: rgba(199, 92, 43, 0.2);
    border-left: 4px solid #c75c2b;
    background: #fffaf5;
}

.style-preview-minimal .template-mini-title {
    background: #a84d22;
}

.style-preview-minimal .template-preview-shell {
    border-color: rgba(199, 92, 43, 0.2);
    background: rgba(255, 250, 244, 0.92);
}

.style-preview-modern .template-mini {
    display: grid;
    grid-template-columns: 0.42fr 0.58fr;
    gap: 10px;
    background: linear-gradient(90deg, #10243b 0 34%, #f3f7f8 34% 100%);
    box-shadow: inset 5px 0 0 #1e9b98;
}

.style-preview-modern .template-mini-head {
    align-content: start;
    margin: 0;
}

.style-preview-modern .template-mini-name,
.style-preview-modern .template-mini-contact span {
    background: rgba(255, 255, 255, 0.82);
}

.style-preview-modern .template-mini-sections {
    gap: 7px;
}

.style-preview-modern .template-mini-section {
    border-color: rgba(30, 108, 137, 0.16);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.92);
}

.style-preview-modern .template-mini-title {
    background: #1e6c89;
}

.style-preview-creative .template-mini {
    position: relative;
    display: grid;
    grid-template-columns: 0.36fr 0.64fr;
    gap: 10px;
    border-color: rgba(23, 63, 61, 0.28);
    border-top: 7px solid #c9a45d;
    background: linear-gradient(90deg, #173f3d 0 36%, #fbfcfa 36% 100%);
    box-shadow: 0 18px 42px rgba(23, 63, 61, 0.14);
}

.style-preview-creative .template-mini::before {
    content: none;
}

.style-preview-creative .template-mini-head {
    align-content: start;
    margin: 0;
    padding: 10px 8px 10px 10px;
    border-radius: 4px;
    background: transparent;
}

.style-preview-creative .template-mini-head::before {
    content: "";
    width: 58%;
    aspect-ratio: 0.82;
    border: 2px solid rgba(255, 255, 255, 0.78);
    border-radius: 4px;
    background: linear-gradient(145deg, #d9dcda, #f5f2ea);
    box-shadow: 5px 5px 0 #c9a45d;
}

.style-preview-creative .template-mini-name {
    width: 80%;
    height: 24px;
    background: rgba(255, 255, 255, 0.88);
}

.style-preview-creative .template-mini-contact span {
    background: rgba(238, 223, 181, 0.78);
}

.style-preview-creative .template-mini-section {
    border-radius: 4px;
    border-color: rgba(23, 63, 61, 0.18);
    background: rgba(255, 255, 255, 0.9);
}

.style-preview-creative .template-mini-sections {
    gap: 7px;
}

.style-preview-creative .template-mini-title {
    background: #c9a45d;
}

.style-preview-creative .template-preview-shell {
    border-color: rgba(23, 63, 61, 0.2);
    background: linear-gradient(135deg, rgba(238, 223, 181, 0.18), rgba(250, 252, 249, 0.96));
}

.build-guided-form {
    gap: 18px;
}

.guided-section {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid rgba(221, 212, 200, 0.75);
    border-radius: 22px;
    background: rgba(255, 253, 250, 0.58);
}

.dynamic-list {
    display: grid;
    gap: 12px;
}

.compact-list {
    gap: 10px;
}

.structured-entry {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(199, 92, 43, 0.14);
    border-radius: 18px;
    background: rgba(255, 249, 243, 0.72);
}

.entry-header,
.inline-add {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.entry-header strong {
    color: var(--accent-dark);
}

.compact-entry {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.inline-add {
    align-items: stretch;
}

.inline-add input {
    flex: 1;
}

.value-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 40px;
}

.value-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px 7px 12px;
    border-radius: 999px;
    color: var(--accent-dark);
    background: var(--accent-soft);
    font-size: 0.92rem;
}

.value-chip button {
    border: 0;
    border-radius: 999px;
    padding: 4px 8px;
    color: var(--accent-dark);
    background: rgba(255, 255, 255, 0.72);
    cursor: pointer;
}

.compact-btn {
    padding: 8px 12px;
    font-size: 0.88rem;
    white-space: nowrap;
}

.upload-box {
    display: block;
    border: 1.5px dashed rgba(159, 67, 27, 0.28);
    border-radius: 22px;
    padding: 22px;
    background: rgba(255, 249, 243, 0.9);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.upload-box:hover {
    border-color: rgba(159, 67, 27, 0.52);
    background: rgba(255, 246, 238, 1);
    transform: translateY(-1px);
}

.upload-content p {
    margin: 0;
    font-weight: 600;
}

.upload-content span {
    display: inline-block;
    margin-top: 6px;
    color: var(--muted);
    line-height: 1.6;
}

.file-preview {
    display: flex;
    align-items: center;
    gap: 14px;
}

.file-preview img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 16px;
}

.file-meta {
    display: grid;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.file-meta strong,
.file-meta span {
    overflow-wrap: anywhere;
}

.photo-picker {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.photo-picker-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 13px;
    border: 1px solid rgba(221, 212, 200, 0.92);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255, 253, 250, 0.72);
    font-weight: 800;
    cursor: pointer;
}

.photo-picker-icon {
    position: relative;
    display: inline-block;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, var(--accent-dark), var(--accent));
    color: transparent;
    font-size: 0;
}

.photo-picker-icon::before,
.photo-picker-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 2px;
    border-radius: 999px;
    background: #ffffff;
    transform: translate(-50%, -50%);
}

.photo-picker-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.photo-preview {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px;
    border: 1px solid rgba(221, 212, 200, 0.92);
    border-radius: 999px;
    background: rgba(255, 253, 250, 0.88);
}

.photo-preview[hidden] {
    display: none;
}

.photo-preview img {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    object-fit: cover;
}

.ghost-btn,
.import-btn,
.generate-btn {
    border: 0;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.ghost-btn {
    padding: 11px 16px;
    border-radius: 999px;
    color: var(--accent-dark);
    background: rgba(199, 92, 43, 0.1);
}

.ghost-btn.active {
    color: white;
    background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
}

.job-link {
    margin-bottom: 12px;
}

.import-btn,
.generate-btn {
    color: white;
    background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
}

.import-btn {
    padding: 12px 16px;
    border-radius: 14px;
}

.generate-btn {
    width: 100%;
    margin-top: 8px;
    padding: 16px 18px;
    border-radius: 18px;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 18px 34px rgba(199, 92, 43, 0.25);
}

.action-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    align-items: center;
    gap: 18px;
    padding: 18px;
    border: 1px solid rgba(199, 92, 43, 0.18);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(199, 92, 43, 0.12), transparent 38%),
        rgba(255, 253, 250, 0.92);
}

.final-step-panel {
    position: relative;
    overflow: hidden;
    padding: 20px;
    border-color: rgba(199, 92, 43, 0.22);
    background:
        radial-gradient(circle at top left, rgba(199, 92, 43, 0.16), transparent 34%),
        linear-gradient(135deg, rgba(255, 249, 242, 0.96), rgba(255, 253, 250, 0.96));
    box-shadow: 0 18px 42px rgba(76, 55, 37, 0.08);
}

.final-step-panel .step-pill {
    min-width: auto;
    min-height: 28px;
    margin: 0 0 9px;
    padding: 6px 10px;
    font-size: 0.78rem;
}

.action-panel strong {
    display: block;
    font-size: 1.05rem;
}

.final-step-panel strong {
    color: var(--text);
    font-size: 1.12rem;
    letter-spacing: -0.015em;
}

.action-panel .generate-btn {
    margin-top: 0;
}

.ghost-btn:hover,
.import-btn:hover,
.generate-btn:hover {
    transform: translateY(-2px);
}

.ghost-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.generate-btn:disabled,
.import-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

.secure {
    text-align: center;
    font-size: 0.92rem;
}

.result-dashboard {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
    gap: 14px;
    align-items: stretch;
}

.result-dashboard .result-card-wide {
    margin-top: 0;
}

.score-card {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(31, 143, 95, 0.08), transparent 42%),
        rgba(255, 253, 250, 0.94);
}

.score-card h3 {
    margin: 4px 0 0;
    font-size: clamp(1.25rem, 2.4vw, 1.7rem);
    letter-spacing: 0;
}

.score-comparison {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
}

.score-metric {
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(221, 212, 200, 0.82);
    border-radius: 12px;
    background: rgba(255, 253, 250, 0.72);
}

.score-metric span {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.score-metric strong {
    display: block;
    margin-top: 6px;
    font-size: clamp(1.45rem, 3vw, 2.35rem);
    line-height: 1;
}

.score-metric-main {
    border-color: rgba(31, 143, 95, 0.24);
    background: rgba(31, 143, 95, 0.08);
}

.score-delta-positive {
    color: var(--success);
}

.score-delta-negative {
    color: #b42318;
}

#generation-mode-note {
    display: block;
    margin-top: 10px;
}

.score-summary {
    display: block;
    margin-top: 14px;
    color: var(--text);
    font-weight: 700;
    line-height: 1.55;
}

.score-breakdown {
    display: grid;
    gap: 10px;
    margin-top: 14px;
    padding: 14px;
    border: 1px solid rgba(221, 212, 200, 0.8);
    border-radius: 16px;
    background: rgba(255, 253, 250, 0.74);
}

.score-breakdown-row {
    display: grid;
    grid-template-columns: minmax(130px, 0.45fr) minmax(140px, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.score-breakdown-row div:first-child {
    min-width: 0;
}

.score-breakdown-row span {
    display: block;
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 750;
}

.score-breakdown-row strong {
    display: block;
    margin-top: 2px;
    color: var(--text);
    font-size: 1.22rem;
}

.score-breakdown-row small {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 750;
}

.score-track {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(221, 212, 200, 0.58);
}

.score-track span {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--success));
    transition: width 0.4s ease;
}

.result-card {
    padding: 20px;
    border: 1px solid rgba(221, 212, 200, 0.9);
    border-radius: 18px;
    background: rgba(255, 253, 250, 0.92);
}

.result-card-wide {
    margin-top: 12px;
}

.result-insight-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.insight-card {
    display: grid;
    align-content: start;
    gap: 12px;
}

.result-bullet-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.result-bullet-list li {
    position: relative;
    padding: 12px 12px 12px 34px;
    border: 1px solid rgba(221, 212, 200, 0.72);
    border-radius: 16px;
    color: var(--text);
    background: rgba(255, 253, 250, 0.72);
    line-height: 1.5;
}

.result-bullet-list li::before {
    content: "";
    position: absolute;
    top: 17px;
    left: 14px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent);
}

.success-list li::before {
    background: var(--success);
}

.warning-list li::before {
    background: #b42318;
}

.result-next-card {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 14px;
    background:
        linear-gradient(135deg, rgba(30, 108, 137, 0.08), transparent 42%),
        rgba(255, 253, 250, 0.92);
}

.result-next-card h3 {
    margin: 4px 0 0;
    font-size: 1.18rem;
}

.result-meta-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.result-meta-list div,
.result-meta-action {
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(221, 212, 200, 0.82);
    border-radius: 12px;
    background: rgba(255, 253, 250, 0.76);
}

.result-meta-action {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.result-meta-list > div > span,
.result-meta-action > span > span {
    display: block;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.result-meta-list > div > strong,
.result-meta-action strong {
    display: block;
    margin-top: 4px;
    color: var(--text);
}

.result-meta-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(199, 92, 43, 0.1);
    box-shadow:
        inset 0 0 0 1px rgba(199, 92, 43, 0.14),
        0 8px 18px rgba(159, 67, 27, 0.08);
    transition:
        background-color 280ms ease,
        box-shadow 320ms var(--ease-premium),
        transform 320ms var(--ease-premium);
}

.result-meta-chevron::before {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid var(--accent-dark);
    border-bottom: 2px solid var(--accent-dark);
    transform: translateY(-1px) rotate(45deg);
}

.result-meta-action.is-working {
    cursor: progress;
    opacity: 0.72;
}

.result-meta-action.is-working .result-meta-chevron {
    background: rgba(199, 92, 43, 0.16);
    animation: metaChevronPulse 900ms var(--ease-premium) infinite alternate;
}

@keyframes metaChevronPulse {
    from {
        transform: translateY(0);
        box-shadow:
            inset 0 0 0 1px rgba(199, 92, 43, 0.14),
            0 8px 18px rgba(159, 67, 27, 0.08);
    }
    to {
        transform: translateY(-1px);
        box-shadow:
            inset 0 0 0 1px rgba(199, 92, 43, 0.2),
            0 12px 22px rgba(159, 67, 27, 0.12);
    }
}

.result-meta-action:hover {
    transform: translateY(-2px);
    border-color: rgba(199, 92, 43, 0.28);
    background: rgba(255, 253, 250, 0.92);
    box-shadow: 0 12px 24px rgba(68, 44, 24, 0.08);
}

.result-meta-action:hover .result-meta-chevron {
    background: rgba(199, 92, 43, 0.16);
    transform: translateY(-1px);
}

.result-primary-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.result-primary-actions .generate-btn,
.result-primary-actions .ghost-btn {
    width: 100%;
    margin-top: 0;
    min-height: 42px;
    border-radius: 12px;
}

.result-primary-actions .ghost-btn {
    border: 1px solid rgba(199, 92, 43, 0.12);
    background: rgba(199, 92, 43, 0.08);
}

.quick-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.quick-action-btn {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    min-height: 0;
    padding: 13px;
    border: 1px solid rgba(199, 92, 43, 0.18);
    border-radius: 14px;
    color: var(--text);
    text-align: left;
    background:
        linear-gradient(135deg, rgba(199, 92, 43, 0.08), rgba(255, 253, 250, 0.94));
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.quick-action-btn::before {
    content: "+";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: 900;
    background: rgba(199, 92, 43, 0.1);
    box-shadow: inset 0 0 0 1px rgba(199, 92, 43, 0.08);
    transition:
        transform 420ms var(--ease-premium),
        color 280ms ease,
        background-color 280ms ease,
        box-shadow 420ms var(--ease-premium);
}

.quick-action-btn strong {
    font-size: 1rem;
    line-height: 1.2;
}

.quick-action-btn span {
    display: block;
    grid-column: 2;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.4;
}

.quick-action-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(199, 92, 43, 0.34);
    box-shadow: 0 14px 28px rgba(68, 44, 24, 0.09);
}

.quick-action-btn:hover::before {
    transform: scale(1.06);
    color: #fff;
    background: linear-gradient(135deg, var(--accent-dark), var(--accent));
    box-shadow: 0 10px 20px rgba(159, 67, 27, 0.16);
}

.quick-action-btn:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.competency-followup-panel {
    background:
        radial-gradient(circle at top right, rgba(30, 108, 137, 0.08), transparent 30%),
        rgba(255, 253, 250, 0.88);
}

.competency-followup-panel[hidden] {
    display: none;
}

.competency-followup-panel h3 {
    margin: 3px 0 6px;
    color: var(--text);
    font-size: clamp(1.15rem, 2.2vw, 1.55rem);
    letter-spacing: -0.025em;
}

.competency-question-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.competency-question {
    padding: 16px;
    border: 1px solid rgba(213, 205, 195, 0.68);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.78);
}

.competency-question.needs-detail {
    border-color: rgba(180, 35, 24, 0.34);
    background: rgba(180, 35, 24, 0.045);
}

.competency-empty-state {
    padding: 18px;
    border: 1px solid rgba(213, 205, 195, 0.72);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--muted);
    line-height: 1.6;
}

.competency-question-title {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--text);
}

.choice-modal-card {
    position: relative;
    display: grid;
    gap: 14px;
    width: min(520px, calc(100vw - 28px));
    padding: 28px;
    border: 1px solid rgba(221, 212, 200, 0.95);
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(199, 92, 43, 0.12), transparent 38%),
        var(--surface-strong);
    box-shadow: 0 28px 90px rgba(31, 41, 55, 0.24);
}

.choice-modal-card h2 {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    letter-spacing: -0.04em;
}

.language-choice-list {
    display: grid;
    gap: 10px;
}

.language-choice {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.language-choice:hover {
    border-color: rgba(199, 92, 43, 0.28);
    background: rgba(255, 250, 244, 0.94);
}

.language-choice.is-active {
    border-color: rgba(185, 91, 43, 0.5);
    background: rgba(255, 244, 235, 0.9);
    box-shadow: inset 0 0 0 1px rgba(185, 91, 43, 0.14);
}

.language-choice input {
    accent-color: var(--accent);
}

.language-choice span {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.language-choice strong {
    min-width: 0;
    overflow-wrap: anywhere;
}

.language-choice small {
    color: var(--muted);
    font-weight: 800;
    white-space: nowrap;
}

.modal-action-row {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.competency-question-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    color: white;
    background: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
}

.competency-choice-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 12px 0;
}

.competency-choice {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 8px 11px;
    border: 1px solid rgba(213, 205, 195, 0.68);
    border-radius: 999px;
    background: rgba(248, 244, 238, 0.72);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}

.competency-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.competency-choice:has(input:checked) {
    color: white;
    border-color: rgba(199, 92, 43, 0.76);
    background: var(--accent);
    box-shadow: 0 12px 24px rgba(199, 92, 43, 0.14);
}

.competency-note {
    min-height: 52px;
    padding: 12px 14px;
    font-size: 0.92rem;
}

.competency-followup-footer {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
}

.cv-preview-card {
    margin-top: 14px;
}

.compact-helper {
    font-size: 0.88rem;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.92rem;
}

.chip-with-type {
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.58);
}

.chip-type {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-height: 22px;
    padding: 3px 7px;
    border-radius: 999px;
    color: #475569;
    background: rgba(255, 255, 255, 0.72);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.chip-type-hard {
    color: #8a2f19;
    background: rgba(199, 92, 43, 0.14);
}

.chip-type-experience {
    color: #155e75;
    background: rgba(30, 108, 137, 0.12);
}

.chip-type-application {
    color: #166534;
    background: rgba(31, 143, 95, 0.14);
}

.chip-type-soft {
    color: #5b4b16;
    background: rgba(218, 165, 32, 0.15);
}

.ats-evidence-item {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(221, 212, 200, 0.76);
    border-radius: 16px;
    background: rgba(255, 253, 250, 0.82);
}

.ats-evidence-item + .ats-evidence-item {
    margin-top: 8px;
}

.ats-evidence-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.ats-evidence-head strong {
    color: var(--text);
    line-height: 1.3;
}

.ats-evidence-item p {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.ats-evidence-hard {
    border-color: rgba(180, 35, 24, 0.16);
    background: rgba(180, 35, 24, 0.045);
}

.ats-evidence-experience {
    border-color: rgba(30, 108, 137, 0.16);
    background: rgba(30, 108, 137, 0.055);
}

.ats-evidence-application {
    border-color: rgba(31, 143, 95, 0.16);
    background: rgba(31, 143, 95, 0.055);
}

.chip-success {
    color: var(--success);
    background: var(--success-soft);
}

.chip-muted {
    color: var(--accent-dark);
    background: var(--accent-soft);
}

.chip-neutral {
    color: #334155;
    background: rgba(100, 116, 139, 0.12);
}

.chip-warning {
    color: #b42318;
    background: rgba(180, 35, 24, 0.1);
}

.mode-badge {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
}

.mode-badge-ai {
    color: var(--success);
    background: var(--success-soft);
}

.mode-badge-fallback {
    color: var(--accent-dark);
    background: var(--accent-soft);
}

.cv-document {
    position: relative;
    overflow: hidden;
    min-height: 560px;
    padding: clamp(22px, 3.2vw, 34px);
    border: 1px solid rgba(213, 205, 195, 0.76);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 253, 250, 0.98), rgba(255, 251, 246, 0.98)),
        #fffdfa;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.84),
        0 24px 70px rgba(76, 55, 37, 0.09);
}

.cv-document-empty {
    display: grid;
    place-items: center;
    min-height: 260px;
    color: var(--muted);
    text-align: center;
}

.cv-document-trial .cv-preview-sections {
    filter: blur(5px);
    user-select: none;
}

.cv-document-trial::after {
    content: attr(data-trial-watermark);
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    place-items: center;
    color: rgba(122, 50, 23, 0.18);
    font-size: clamp(2.4rem, 8vw, 5.8rem);
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transform: rotate(-18deg);
    pointer-events: none;
    text-align: center;
}

.cv-document-trial::before {
    z-index: 4;
}

.cv-edit-panel {
    margin-top: 16px;
    padding: 18px;
    border: 1px solid rgba(199, 92, 43, 0.16);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(199, 92, 43, 0.08), transparent 38%),
        rgba(255, 250, 244, 0.92);
}

.cv-preview-download-actions {
    justify-content: center;
    margin-top: 18px;
}

.cv-preview-download-actions .generate-btn {
    width: min(100%, 360px);
}

.cv-edit-panel[hidden] {
    display: none;
}

.cv-edit-panel textarea {
    min-height: 360px;
    border-color: rgba(199, 92, 43, 0.22);
    background: rgba(255, 253, 250, 0.96);
    line-height: 1.65;
}

.cv-preview-header {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 0 0 16px;
    margin-bottom: 16px;
    border-bottom: 2px solid rgba(23, 32, 51, 0.12);
}

.cv-preview-header.has-photo {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
}

.cv-preview-photo {
    width: 124px;
    height: 124px;
    border: 4px solid rgba(255, 253, 250, 0.86);
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 12px 26px rgba(31, 41, 55, 0.13);
}

.cv-preview-photo.cv-preview-photo-round {
    border-radius: 50%;
}

.cv-preview-photo.cv-preview-photo-square {
    border-radius: 16px;
}

.cv-preview-photo.cv-preview-photo-portrait {
    width: 104px;
    height: 132px;
    border-radius: 16px;
}

.cv-preview-photo.cv-preview-photo-landscape {
    width: 148px;
    height: 100px;
    border-radius: 14px;
}

.cv-preview-title-block {
    min-width: 0;
}

.cv-preview-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px 16px;
    min-width: 0;
}

.cv-preview-kicker {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.cv-preview-name {
    flex: 1 1 260px;
    margin: 0;
    color: #121a2a;
    font-size: 2.35rem;
    line-height: 1.02;
    letter-spacing: 0;
}

.cv-preview-contact {
    flex: 1 1 280px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-start;
    align-content: flex-start;
    min-width: 0;
}

.cv-preview-contact span,
.cv-preview-contact a {
    display: inline-flex;
    max-width: min(100%, 280px);
    min-height: 27px;
    align-items: center;
    padding: 4px 9px;
    border: 1px solid rgba(108, 119, 134, 0.24);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.72);
    color: #536174;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.cv-preview-sections {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
}

.cv-preview-section {
    break-inside: avoid;
    padding: 12px 13px;
    border: 1px solid rgba(221, 212, 200, 0.68);
    border-radius: 10px;
    background: rgba(255, 253, 250, 0.84);
    box-shadow: 0 8px 18px rgba(87, 61, 38, 0.03);
}

.cv-preview-section-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    color: var(--accent-dark);
    font-size: 0.76rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.cv-preview-section-title::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: currentColor;
}

.cv-preview-body {
    color: #293445;
    line-height: 1.5;
    font-size: 0.92rem;
}

.cv-preview-body p {
    margin: 0 0 6px;
}

.cv-preview-body ul {
    margin: 0;
    padding-left: 20px;
}

.cv-preview-body li + li {
    margin-top: 4px;
}

.cv-preview-entries {
    display: grid;
    gap: 8px;
}

.cv-preview-entry {
    position: relative;
    padding: 10px 11px 10px 12px;
    border: 1px solid rgba(221, 212, 200, 0.62);
    border-left: 4px solid rgba(199, 92, 43, 0.72);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 8px 18px rgba(87, 61, 38, 0.035);
}

.cv-preview-entry-title {
    margin: 0;
    color: #182235;
    font-size: 0.96rem;
    letter-spacing: 0;
}

.cv-preview-entry-meta {
    margin: 3px 0 7px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 650;
}

.cv-preview-entry-note {
    margin: 0 0 6px;
}

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

.cv-preview-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 8px;
    border: 1px solid rgba(126, 139, 155, 0.18);
    border-radius: 8px;
    background: rgba(246, 248, 250, 0.92);
    color: #334155;
    font-size: 0.8rem;
    font-weight: 700;
}

.cv-preview-section-rodo .cv-preview-body {
    color: var(--muted);
    font-size: 0.78rem;
}

.cv-preview-profile {
    padding: 13px 14px;
    border-radius: 11px;
    background:
        linear-gradient(135deg, rgba(199, 92, 43, 0.12), rgba(255, 253, 250, 0.92));
    border-color: rgba(199, 92, 43, 0.22);
    box-shadow: inset 4px 0 0 rgba(199, 92, 43, 0.72);
}

.cv-document-minimal {
    background: #fffdfa;
    border-color: rgba(199, 92, 43, 0.28);
    box-shadow:
        inset 0 6px 0 #c75c2b,
        0 24px 70px rgba(103, 58, 30, 0.1);
}

.cv-document-minimal .cv-preview-header {
    border-bottom-color: rgba(159, 67, 27, 0.26);
}

.cv-document-minimal .cv-preview-name {
    color: #322519;
}

.cv-document-minimal .cv-preview-section-title {
    color: #a84d22;
}

.cv-document-minimal .cv-preview-profile {
    background: #fff6ef;
    border-color: #edcbb8;
    box-shadow: inset 4px 0 0 #c75c2b;
}

.cv-document-minimal .cv-preview-section,
.cv-document-minimal .cv-preview-entry {
    border-color: rgba(199, 92, 43, 0.2);
    background: rgba(255, 253, 250, 0.96);
}

.cv-document-minimal .cv-preview-entry {
    border-left-color: #c75c2b;
}

.cv-document-minimal .cv-preview-chip,
.cv-document-minimal .cv-preview-contact span,
.cv-document-minimal .cv-preview-contact a {
    border-color: #e7c9b7;
    background: #fff5ed;
    color: #5d3b29;
}

.cv-document-modern {
    background: #f7fbfa;
    border-color: rgba(18, 91, 87, 0.2);
    box-shadow:
        inset 5px 0 0 #138d82,
        0 24px 70px rgba(15, 54, 54, 0.1);
}

.cv-document-modern .cv-preview-header {
    padding: 18px 20px 20px;
    border: 0;
    border-top: 7px solid #138d82;
    border-bottom: 1px solid #cddedb;
    border-radius: 0;
    color: #153638;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 54, 54, 0.08);
}

.cv-document-modern .cv-preview-name {
    color: #102f33;
    font-weight: 780;
}

.cv-document-modern .cv-preview-photo {
    border-color: #ffffff;
    box-shadow:
        0 0 0 1px rgba(19, 141, 130, 0.24),
        0 12px 26px rgba(13, 64, 62, 0.14);
}

.cv-document-modern .cv-preview-kicker,
.cv-document-modern .cv-preview-section-title {
    color: #0f746c;
}

.cv-document-modern .cv-preview-contact span,
.cv-document-modern .cv-preview-contact a {
    color: #294b4e;
    border-color: rgba(19, 141, 130, 0.2);
    background: #eff8f6;
}

.cv-document-modern .cv-preview-profile {
    padding: 16px 18px;
    border: 0;
    border-radius: 0 12px 12px 0;
    background: #e8f4f1;
    box-shadow: inset 4px 0 0 #138d82;
}

.cv-document-modern .cv-preview-sections {
    display: block;
    column-count: 2;
    column-gap: 18px;
}

.cv-document-modern .cv-preview-section:not(.cv-preview-section-profile) {
    display: inline-block;
    width: 100%;
    margin: 0 0 12px;
    break-inside: avoid;
    page-break-inside: avoid;
    padding: 10px 4px 12px 14px;
    border: 0;
    border-top: 1px solid rgba(15, 116, 108, 0.2);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.cv-document-modern .cv-preview-section-profile,
.cv-document-modern .cv-preview-section-rodo {
    grid-column: 1 / -1;
    column-span: all;
    display: block;
}

.cv-document-modern .cv-preview-section-experience,
.cv-document-modern .cv-preview-section-activity {
    grid-column: 1;
}

.cv-document-modern .cv-preview-section-education,
.cv-document-modern .cv-preview-section-skills,
.cv-document-modern .cv-preview-section-languages,
.cv-document-modern .cv-preview-section-certifications,
.cv-document-modern .cv-preview-section-details,
.cv-document-modern .cv-preview-section-interests {
    grid-column: 2;
}

.cv-document-modern .cv-preview-entry {
    padding: 8px 4px 8px 13px;
    border: 0;
    border-left: 2px solid #138d82;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.cv-document-modern .cv-preview-section-education .cv-preview-entry {
    border-left-color: #138d82;
}

.cv-document-modern .cv-preview-chip {
    border-color: rgba(19, 141, 130, 0.2);
    border-radius: 999px;
    background: #eaf5f2;
    color: #234b4b;
}

.cv-document-creative {
    padding: 0;
    background: #ffffff;
    border-color: rgba(20, 52, 51, 0.2);
    box-shadow: 0 28px 72px rgba(18, 43, 42, 0.13);
}

.cv-document-creative::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    z-index: 3;
    width: 70%;
    height: 7px;
    background: #c9a45d;
}

.cv-document-creative .cv-creative-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(220px, 30%) minmax(0, 70%);
    grid-template-areas:
        "identity main"
        "sidebar main";
    grid-template-rows: auto 1fr;
    min-height: 720px;
}

.cv-document-creative .cv-creative-identity,
.cv-document-creative .cv-creative-sidebar {
    background: #173f3d;
    color: #f8fbf9;
}

.cv-document-creative .cv-creative-identity {
    grid-area: identity;
    padding: 30px 24px 0;
}

.cv-document-creative .cv-creative-sidebar {
    grid-area: sidebar;
    padding: 0 24px 30px;
}

.cv-document-creative .cv-preview-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
    padding: 0 0 25px;
    margin: 0 0 18px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.cv-document-creative .cv-preview-header.has-photo {
    grid-template-columns: 1fr;
}

.cv-document-creative .cv-preview-title-row {
    display: grid;
    gap: 18px;
}

.cv-document-creative .cv-preview-name {
    color: #ffffff;
    font-size: 2.35rem;
    font-weight: 760;
    line-height: 1.02;
}

.cv-document-creative .cv-preview-photo {
    width: min(100%, 162px);
    height: 178px;
    border: 2px solid rgba(255, 255, 255, 0.86);
    border-radius: 8px;
    box-shadow: 8px 8px 0 rgba(201, 164, 93, 0.9);
    object-fit: cover;
}

.cv-document-creative .cv-preview-photo.cv-preview-photo-round {
    width: 150px;
    height: 150px;
    border-radius: 50%;
}

.cv-document-creative .cv-preview-photo.cv-preview-photo-square {
    width: 158px;
    height: 158px;
    border-radius: 8px;
}

.cv-document-creative .cv-preview-photo.cv-preview-photo-landscape {
    width: 100%;
    height: 116px;
    border-radius: 8px;
}

.cv-document-creative .cv-preview-contact {
    display: grid;
    gap: 7px;
}

.cv-document-creative .cv-preview-contact span,
.cv-document-creative .cv-preview-contact a {
    display: block;
    width: 100%;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(248, 251, 249, 0.88);
    font-size: 0.78rem;
    font-weight: 570;
}

.cv-document-creative .cv-creative-main {
    grid-area: main;
    display: grid;
    align-content: start;
    gap: 22px;
    padding: 38px 34px 32px;
    background: #ffffff;
}

.cv-document-creative .cv-creative-sidebar-sections {
    display: grid;
    gap: 18px;
}

.cv-document-creative .cv-preview-section {
    width: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.cv-document-creative .cv-creative-main .cv-preview-section-title {
    width: 100%;
    margin-bottom: 10px;
    padding-bottom: 7px;
    border-bottom: 1px solid rgba(23, 63, 61, 0.2);
    color: #173f3d;
    font-size: 0.76rem;
    letter-spacing: 0;
}

.cv-document-creative .cv-creative-main .cv-preview-section-title::before {
    background: #c9a45d;
}

.cv-document-creative .cv-preview-profile {
    padding: 18px 0 20px;
    border-top: 3px solid #173f3d;
    border-bottom: 1px solid rgba(23, 63, 61, 0.2);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.cv-document-creative .cv-preview-profile .cv-preview-section-title {
    border: 0;
    padding: 0;
}

.cv-document-creative .cv-preview-body {
    color: #263837;
    font-size: 0.9rem;
    line-height: 1.55;
}

.cv-document-creative .cv-creative-main .cv-preview-entry {
    position: relative;
    padding: 1px 0 13px 20px;
    border: 0;
    border-left: 1px solid rgba(23, 63, 61, 0.34);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.cv-document-creative .cv-creative-main .cv-preview-entry::before {
    content: "";
    position: absolute;
    top: 5px;
    left: -5px;
    width: 9px;
    height: 9px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: #c9a45d;
    box-shadow: 0 0 0 1px #c9a45d;
}

.cv-document-creative .cv-creative-main .cv-preview-entry-title {
    color: #142f2e;
    font-weight: 780;
}

.cv-document-creative .cv-creative-sidebar .cv-preview-section {
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.17);
}

.cv-document-creative .cv-creative-sidebar .cv-preview-section-title {
    margin-bottom: 9px;
    color: #e3c98f;
    font-size: 0.68rem;
    letter-spacing: 0;
}

.cv-document-creative .cv-creative-sidebar .cv-preview-body,
.cv-document-creative .cv-creative-sidebar .cv-preview-entry-title,
.cv-document-creative .cv-creative-sidebar .cv-preview-entry-meta,
.cv-document-creative .cv-creative-sidebar .cv-preview-entry-note {
    color: rgba(248, 251, 249, 0.9);
}

.cv-document-creative .cv-creative-sidebar .cv-preview-entry {
    padding: 0 0 8px;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.cv-document-creative .cv-preview-chip {
    padding: 4px 7px;
    border-color: rgba(227, 201, 143, 0.28);
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
    color: #f8fbf9;
    font-size: 0.72rem;
    font-weight: 620;
}

.cv-document-creative .cv-preview-section-rodo {
    padding-top: 13px;
    border-top: 1px solid rgba(23, 63, 61, 0.2);
}

.insights-list {
    margin: 14px 0 0;
    padding-left: 18px;
    color: var(--text);
}

.change-report-list {
    display: grid;
    gap: 9px;
    padding-left: 0;
    list-style: none;
}

.change-report-list li {
    padding: 12px 14px;
    border: 1px solid rgba(31, 143, 95, 0.14);
    border-radius: 16px;
    background: rgba(31, 143, 95, 0.055);
    line-height: 1.5;
}

.insights-list li + li {
    margin-top: 10px;
}

.change-report-list li + li {
    margin-top: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: rgba(31, 41, 55, 0.34);
    backdrop-filter: blur(10px);
}

body.modal-open {
    overflow: hidden;
}

.modal-backdrop[hidden] {
    display: none;
}

.auth-modal-card {
    position: relative;
    width: min(460px, 100%);
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    overscroll-behavior: contain;
    display: grid;
    gap: 14px;
    padding: 30px;
    border: 1px solid rgba(221, 212, 200, 0.95);
    border-radius: 20px;
    background: var(--surface-strong);
    box-shadow: 0 28px 90px rgba(31, 41, 55, 0.24);
}

.auth-modal-card:focus-within {
    scroll-margin: max(12px, env(safe-area-inset-top));
}

.auth-modal-card[data-mode="register"] {
    width: min(460px, 100%);
}

.purchase-modal-card {
    position: relative;
    display: grid;
    gap: 16px;
    width: min(620px, 100%);
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 30px;
    border: 1px solid rgba(221, 212, 200, 0.95);
    border-radius: 20px;
    background: var(--surface-strong);
    box-shadow: 0 28px 90px rgba(31, 41, 55, 0.24);
}

.purchase-modal-card:focus {
    outline: none;
}

.purchase-modal-heading {
    display: grid;
    gap: 7px;
    padding-right: 34px;
}

.purchase-modal-heading .eyebrow,
.purchase-modal-heading .helper-text,
.purchase-modal-card h2 {
    margin: 0;
}

.purchase-modal-card h2 {
    font-size: clamp(1.45rem, 3vw, 1.9rem);
    letter-spacing: 0;
}

.purchase-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
}

.purchase-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid rgba(221, 212, 200, 0.82);
    border-bottom: 1px solid rgba(221, 212, 200, 0.82);
}

.purchase-summary > div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.purchase-summary span,
.purchase-summary small,
.purchase-confirmation-note,
.purchase-currency-note {
    color: var(--muted);
}

.purchase-summary span {
    font-size: 0.76rem;
    font-weight: 850;
    text-transform: uppercase;
}

.purchase-summary > div strong {
    color: var(--text);
    font-size: 1.12rem;
}

.purchase-summary small {
    font-size: 0.82rem;
    line-height: 1.4;
}

.purchase-summary-price {
    color: var(--success);
    font-size: 1.5rem;
    white-space: nowrap;
}

.purchase-currency-note {
    margin: -4px 0 0;
    font-size: 0.78rem;
    line-height: 1.45;
}

.purchase-consent-list {
    display: grid;
}

.purchase-consent {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 11px;
    align-items: start;
    padding: 13px 0;
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.46;
    cursor: pointer;
}

.purchase-consent + .purchase-consent {
    border-top: 1px solid rgba(221, 212, 200, 0.66);
}

.purchase-consent input {
    width: 19px;
    height: 19px;
    margin: 2px 0 0;
    accent-color: var(--accent);
}

.purchase-consent a {
    color: var(--accent-dark);
    font-weight: 850;
}

.purchase-consent:has(input:focus-visible) {
    outline: 3px solid rgba(199, 92, 43, 0.22);
    outline-offset: 5px;
    border-radius: 6px;
}

.purchase-status {
    min-height: 0;
    margin: -2px 0 0;
    color: #9a3412;
    font-size: 0.84rem;
    font-weight: 800;
}

.purchase-status:empty {
    display: none;
}

.purchase-modal-actions {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
}

.purchase-confirm-button {
    width: 100%;
}

.purchase-confirm-button:disabled {
    opacity: 0.48;
    cursor: not-allowed;
    box-shadow: none;
}

.purchase-confirmation-note {
    margin: -4px 0 0;
    text-align: center;
    font-size: 0.75rem;
    line-height: 1.45;
}

.auth-modal-heading {
    display: grid;
    gap: 7px;
    padding: 0 24px;
    text-align: center;
}

.auth-modal-heading .eyebrow {
    margin: 0;
    font-size: 0.72rem;
}

.auth-modal-heading .helper-text {
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.45;
}

.auth-modal-card h2 {
    margin: 0;
    font-size: 1.65rem;
    letter-spacing: 0;
}

.auth-modal-card label {
    margin: 0;
    color: var(--text);
    font-weight: 700;
}

.auth-field-row {
    display: grid;
    gap: 7px;
}

.auth-field-row > label {
    font-size: 0.86rem;
}

.password-input-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
}

.password-input-wrap input {
    width: 100%;
}

.password-toggle {
    border: 1px solid rgba(221, 212, 200, 0.9);
    border-radius: 999px;
    padding: 9px 12px;
    color: var(--accent-dark);
    background: rgba(248, 244, 238, 0.72);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.auth-field-row[hidden] {
    display: none;
}

.remember-session-row {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
}

.remember-session-row:hover {
    color: var(--text);
}

.remember-session-row input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--accent);
}

.remember-session-row[hidden],
.remember-session-note[hidden] {
    display: none;
}

.remember-session-note {
    margin: -8px 0 0 27px;
    color: var(--muted);
    font-size: 0.74rem;
    line-height: 1.4;
}

.auth-registration-options {
    display: grid;
    gap: 8px;
}

.auth-registration-options[hidden],
.auth-divider[hidden],
.auth-legal-copy[hidden],
.social-auth-btn[hidden],
.social-auth-row[hidden] {
    display: none;
}

.auth-modal-card label.auth-marketing-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 9px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.42;
    cursor: pointer;
}

.auth-modal-card label.auth-marketing-option:hover {
    color: var(--text);
}

.auth-marketing-option input {
    width: 17px;
    height: 17px;
    margin: 2px 0 0;
    accent-color: var(--accent);
}

.auth-marketing-option strong {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 700;
}

.consent-check {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin: 0;
    padding: 7px 8px;
    border-radius: 10px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.35;
    cursor: pointer;
    transition:
        color 200ms ease,
        background-color 200ms ease;
}

.auth-modal-card[data-mode="register"] .consent-check {
    gap: 8px;
    padding: 6px 7px;
    font-size: 0.79rem;
    line-height: 1.25;
}

.consent-check:hover {
    color: var(--text);
    background: rgba(199, 92, 43, 0.055);
}

.consent-group-optional .consent-check:hover {
    background: rgba(31, 143, 95, 0.065);
}

.consent-check input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--accent);
}

.consent-check a {
    color: var(--accent-dark);
    font-weight: 900;
}

.consent-check.optional {
    opacity: 1;
}

.consent-details-copy {
    margin: 0;
    padding: 0 4px;
    color: var(--muted);
    font-size: 0.7rem;
    line-height: 1.35;
}

.consent-details-copy a {
    color: var(--accent-dark);
    font-weight: 900;
}

@media (max-width: 760px) {
    .modal-backdrop {
        place-items: start center;
        padding:
            max(14px, env(safe-area-inset-top))
            10px
            max(14px, env(safe-area-inset-bottom));
    }

    .auth-modal-card {
        width: min(100%, 430px);
        max-height: calc(100dvh - 28px);
        padding: 22px 18px;
        border-radius: 16px;
    }

    .auth-switch-prompt {
        justify-content: center;
    }

    .auth-help-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .auth-help-btn,
    .auth-back-btn {
        width: 100%;
    }
}

.social-auth-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
}

.social-auth-row.single-provider {
    grid-template-columns: 1fr;
}

.social-auth-btn {
    min-height: 48px;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) 22px;
    align-items: center;
    gap: 10px;
    border: 1px solid #747775;
    border-radius: 8px;
    padding: 11px 14px;
    color: #1f1f1f;
    background: #fff;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.social-auth-btn:hover {
    border-color: #5f6368;
    background: #f8f9fa;
    box-shadow: 0 2px 8px rgba(60, 64, 67, 0.12);
}

.social-auth-btn:disabled {
    cursor: wait;
    opacity: 0.68;
}

.social-auth-icon,
.social-auth-spacer {
    width: 20px;
    height: 20px;
}

.social-auth-icon {
    display: grid;
    place-items: center;
}

.social-auth-icon svg {
    display: block;
    width: 18px;
    height: 18px;
}

.social-auth-icon-apple svg {
    width: 20px;
    height: 20px;
}

.social-auth-label {
    overflow-wrap: anywhere;
    text-align: center;
}

.social-auth-apple {
    border-color: #1f1f1f;
    color: #fff;
    background: #1f1f1f;
}

.social-auth-apple:hover {
    border-color: #000;
    color: #fff;
    background: #000;
}

.auth-divider {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    background: rgba(221, 212, 200, 0.9);
}

.auth-legal-copy {
    margin: -3px 0 0;
    color: var(--muted);
    font-size: 0.7rem;
    line-height: 1.45;
    text-align: center;
}

.auth-legal-copy a {
    color: var(--accent-dark);
    font-weight: 800;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.auth-mode-links {
    display: grid;
    gap: 8px;
    width: 100%;
}

.auth-switch-prompt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 36px;
    padding: 0;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.text-btn.auth-switch-mode {
    border: 0;
    padding: 6px 2px;
    color: var(--accent-dark);
    background: transparent;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
    transition:
        transform 280ms var(--ease-premium),
        color 220ms ease,
        background-color 220ms ease,
        border-color 220ms ease,
        box-shadow 280ms var(--ease-premium);
}

.text-btn.auth-switch-mode:hover {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-help-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.auth-help-btn,
.auth-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    border: 1px solid rgba(221, 212, 200, 0.86);
    border-radius: 999px;
    padding: 8px 13px;
    color: var(--muted);
    background: rgba(255, 253, 250, 0.72);
    font: inherit;
    font-size: 0.84rem;
    font-weight: 800;
    cursor: pointer;
    transition:
        transform 280ms var(--ease-premium),
        color 220ms ease,
        background-color 220ms ease,
        border-color 220ms ease,
        box-shadow 280ms var(--ease-premium);
}

.auth-help-btn:hover,
.auth-back-btn:hover {
    transform: translateY(-1px);
    color: var(--accent-dark);
    border-color: rgba(199, 92, 43, 0.3);
    background: rgba(255, 249, 243, 0.96);
    box-shadow: 0 8px 18px rgba(68, 44, 24, 0.08);
}

.auth-back-btn {
    padding-inline: 15px;
    color: var(--accent-dark);
}

.auth-back-btn span {
    font-size: 1.05rem;
    transition: transform 220ms ease;
}

.auth-back-btn:hover span {
    transform: translateX(-2px);
}

.trust-note {
    display: grid;
    gap: 6px;
    margin: 0 0 18px;
    padding: 16px 18px;
    border: 1px solid rgba(74, 118, 84, 0.18);
    border-radius: 22px;
    background:
        radial-gradient(circle at top left, rgba(74, 118, 84, 0.10), transparent 34%),
        rgba(247, 250, 246, 0.86);
}

.trust-note strong {
    color: var(--text);
}

.trust-note p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.site-footer {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 24px 16px 36px;
    color: var(--muted);
}

.site-footer a,
.legal-back-link {
    color: var(--accent-dark);
    font-weight: 800;
    text-decoration: none;
}

.footer-link-button {
    appearance: none;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--accent-dark);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.site-footer a:hover,
.footer-link-button:hover {
    color: var(--accent);
}

.cookie-banner {
    position: fixed;
    right: clamp(14px, 3vw, 34px);
    bottom: clamp(14px, 3vw, 34px);
    z-index: 35;
    width: min(520px, calc(100% - 28px));
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: stretch;
    padding: 18px;
    border: 1px solid rgba(221, 212, 200, 0.96);
    border-radius: 18px;
    background: rgba(255, 253, 249, 0.97);
    box-shadow: 0 24px 70px rgba(31, 41, 55, 0.18);
    backdrop-filter: blur(14px);
}

.cookie-banner.cookie-banner-inline {
    position: static;
    width: 100%;
    margin: -14px 0 20px;
    box-shadow: 0 16px 42px rgba(31, 41, 55, 0.12);
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner-copy {
    display: grid;
    gap: 6px;
}

.cookie-banner strong {
    display: block;
    margin: 0;
    color: var(--text);
}

.cookie-banner p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

.cookie-policy-link {
    width: fit-content;
    color: var(--accent-dark);
    font-size: 0.88rem;
    font-weight: 900;
    text-underline-offset: 3px;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: stretch;
    gap: 8px;
}

.cookie-actions .generate-btn {
    min-width: 118px;
    margin-top: 0;
}

.cookie-actions .compact-btn {
    flex: 1 1 180px;
    min-width: 0;
    white-space: normal;
    line-height: 1.25;
}

.legal-page {
    width: min(900px, calc(100% - 32px));
    margin: 42px auto;
}

.legal-body {
    min-height: 100vh;
    background: transparent;
}

.legal-card {
    display: grid;
    gap: 14px;
    margin-top: 18px;
    padding: 28px;
    border: 1px solid rgba(221, 212, 200, 0.9);
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.legal-card h1,
.legal-card h2,
.legal-card p {
    margin: 0;
}

.legal-card p {
    color: var(--muted);
    line-height: 1.65;
}

.legal-card h2 {
    margin-top: 10px;
    font-size: 1.08rem;
}

.legal-card h3 {
    margin: 4px 0 0;
    font-size: 0.98rem;
}

.legal-card ul,
.legal-card ol {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 22px;
    color: var(--muted);
    line-height: 1.6;
}

.legal-card li::marker {
    color: var(--accent-dark);
    font-weight: 800;
}

.withdrawal-template {
    padding: 18px;
    border-left: 4px solid var(--accent);
    background: rgba(247, 242, 236, 0.72);
}

.legal-card .withdrawal-template p {
    color: var(--text);
    overflow-wrap: anywhere;
}

.withdrawal-template p + p {
    margin-top: 14px;
}

.legal-note {
    padding: 14px 16px;
    border: 1px solid rgba(30, 108, 137, 0.16);
    border-left: 4px solid #1e6c89;
    border-radius: 12px;
    background: rgba(237, 247, 251, 0.72);
}

.legal-card .legal-note p {
    color: #46586e;
}

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

.legal-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.legal-table th,
.legal-table td {
    padding: 12px;
    border: 1px solid rgba(221, 212, 200, 0.9);
    vertical-align: top;
    text-align: left;
}

.legal-table th {
    color: var(--text);
    background: rgba(248, 244, 238, 0.86);
    font-weight: 900;
}

.legal-table td strong {
    color: var(--text);
}

.legal-card .faq-list h2 {
    margin: 18px 0 2px;
    color: #a84d22;
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.legal-card .faq-list h2:first-child {
    margin-top: 0;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    border: 0;
    border-radius: 999px;
    padding: 9px 12px;
    color: var(--muted);
    background: rgba(244, 237, 228, 0.85);
    cursor: pointer;
}

.auth-modal-close {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 50%;
    font-size: 1.35rem;
    line-height: 1;
}

.auth-status {
    min-height: 22px;
    margin: 0;
    color: var(--success);
    line-height: 1.5;
}

.auth-status-error {
    color: var(--accent-dark);
}

.password-hint {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.password-hint[hidden] {
    display: none;
}

.password-hint span {
    padding: 5px 8px;
    border: 1px solid rgba(221, 212, 200, 0.82);
    border-radius: 999px;
    background: rgba(248, 244, 238, 0.72);
}

.password-hint span.passed {
    border-color: rgba(58, 143, 94, 0.24);
    background: rgba(58, 143, 94, 0.12);
    color: var(--success);
}

@media (max-width: 840px) {
    .page-shell {
        width: min(100% - 28px, 1060px);
        padding: 16px 0 44px;
    }

    .app-container,
    .account-section-card,
    .panel,
    .results-panel,
    .result-card {
        padding: 18px;
        border-radius: 24px;
    }

    .section-header,
    .result-header {
        flex-direction: column;
    }

    .trial-lock-banner {
        align-items: stretch;
        flex-direction: column;
    }

    .trial-lock-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .premium-why-section {
        --reveal-x: 0;
        grid-template-columns: 1fr;
        gap: 28px;
        width: auto;
        margin-left: 0;
    }

    .premium-why-copy h1,
    .premium-why-copy h2 {
        max-width: 760px;
    }

    .ats-panel {
        min-height: 0;
    }

    .premium-why-visual {
        align-self: stretch;
    }

    .process-section {
        --reveal-x: 0;
        gap: 24px;
        width: auto;
        margin-left: 0;
    }

    .premium-process {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 6px 8px 4px 38px;
    }

    .process-line {
        top: 24px;
        right: auto;
        bottom: 26px;
        left: 27px;
        width: 2px;
        height: auto;
        background: repeating-linear-gradient(
            180deg,
            rgba(199, 92, 43, 0.55) 0 8px,
            transparent 8px 15px
        );
        transform: scaleY(var(--process-progress));
        transform-origin: center top;
    }

    .process-line::after {
        right: auto;
        top: auto;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%) rotate(90deg);
    }

    .process-step {
        grid-template-columns: auto minmax(0, 1fr);
        column-gap: 16px;
        justify-items: start;
        min-height: 0;
        padding: 6px 0 8px;
        text-align: left;
    }

    .process-number {
        top: 4px;
        left: -24px;
        transform: none;
    }

    .process-icon {
        grid-row: 1 / 3;
        width: 60px;
        height: 60px;
        margin: 0;
    }

    .process-step p {
        max-width: none;
    }

    .process-trust-bar {
        grid-template-columns: 1fr;
    }

    .process-trust-bar article + article {
        padding-top: 14px;
        padding-left: 0;
        border-top: 1px solid rgba(221, 212, 200, 0.78);
        border-left: 0;
    }

    .process-account-btn {
        width: 100%;
    }

    .site-header,
    .generation-loading-panel,
    .quick-start-header,
    .app-topbar,
    .action-panel {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .site-header {
        position: static;
        top: auto;
        transform: none;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas:
            "brand"
            "nav"
            "account";
        gap: 6px;
        margin-bottom: 20px;
        padding: 8px;
        border-radius: 24px;
    }

    .site-header,
    .app-container,
    .modal-backdrop,
    .cookie-banner {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .site-header.is-compact {
        transform: none;
        padding: 8px;
    }

    .brand-cluster {
        grid-area: brand;
        justify-self: center;
        justify-content: center;
    }

    .site-brand {
        padding: 2px 8px 0;
        font-size: 0.76rem;
        line-height: 1.2;
        letter-spacing: 0.14em;
    }

    .site-nav {
        grid-area: nav;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
        gap: 6px;
        width: 100%;
        padding: 3px;
        border-radius: 999px;
        background: rgba(244, 237, 228, 0.7);
    }

    .site-nav a,
    .nav-link {
        width: 100%;
        min-width: 0;
        padding: 6px 10px;
        text-align: center;
    }

    .top-account {
        grid-area: account;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
        align-items: center;
        justify-content: stretch;
        gap: 6px;
        width: 100%;
        min-width: 0;
    }

    .top-account strong {
        grid-column: 1 / -1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .account-pill,
    .top-account .ghost-btn {
        padding: 7px 10px;
        font-size: 0.84rem;
        white-space: nowrap;
    }

    #open-auth-login:not([hidden]),
    #open-auth-register:not([hidden]) {
        width: auto;
    }

    .grid,
    .styles,
    .quick-steps,
    .landing-hero,
    .landing-grid,
    .landing-price-grid,
    .contact-section,
    .contact-form,
    .credit-packages,
    .account-analysis-grid,
    .account-settings-grid,
    .account-overview-grid,
    .admin-metrics-grid,
    .admin-panels-grid,
    .newsletter-metrics,
    .newsletter-editor-grid,
    .newsletter-cta-fields,
    .newsletter-template-picker,
    .newsletter-data-grid,
    .newsletter-history-metrics,
    .admin-package-row,
    .admin-funnel-row,
    .admin-checklist-row,
    .admin-filter-row,
    .admin-filter-row:has(select),
    .admin-credit-form,
    .input-grid,
    .results-grid,
    .result-dashboard,
    .result-insight-grid,
    .result-meta-list,
    .template-preview-shell,
    .cv-document-modern .cv-preview-sections,
    .quick-actions,
    .quick-actions-card {
        grid-template-columns: 1fr;
    }

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

    .newsletter-preview-shell {
        position: static;
    }

    .newsletter-history-item > div:first-child {
        display: grid;
    }

    .newsletter-history-item > div:first-child span {
        text-align: left;
    }

    .cv-document-modern .cv-preview-section-profile,
    .cv-document-modern .cv-preview-section-rodo,
    .cv-document-modern .cv-preview-section-experience,
    .cv-document-modern .cv-preview-section-activity,
    .cv-document-modern .cv-preview-section-education,
    .cv-document-modern .cv-preview-section-skills,
    .cv-document-modern .cv-preview-section-languages,
    .cv-document-modern .cv-preview-section-certifications,
    .cv-document-modern .cv-preview-section-details,
    .cv-document-modern .cv-preview-section-interests {
        grid-column: 1;
    }

    .cv-document-modern .cv-preview-sections {
        column-count: 1;
    }

    .cv-document-modern .cv-preview-section {
        display: block;
    }

    .cv-document-creative .cv-preview-sections {
        column-count: 1;
    }

    .cv-document-creative .cv-preview-section-profile,
    .cv-document-creative .cv-preview-section-rodo,
    .cv-document-creative .cv-preview-section-experience,
    .cv-document-creative .cv-preview-section-activity,
    .cv-document-creative .cv-preview-section-education,
    .cv-document-creative .cv-preview-section-skills,
    .cv-document-creative .cv-preview-section-languages,
    .cv-document-creative .cv-preview-section-certifications,
    .cv-document-creative .cv-preview-section-details,
    .cv-document-creative .cv-preview-section-interests {
        grid-column: 1;
    }

    .cv-document-creative .cv-preview-section {
        display: block;
    }

    .quick-actions-card {
        align-items: stretch;
        flex-direction: column;
    }

    .quick-actions {
        justify-content: flex-start;
    }

    .competency-followup-footer {
        align-items: stretch;
        flex-direction: column;
    }

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

    .compact-score-comparison {
        grid-template-columns: 1fr;
    }

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

    .score-comparison,
    .score-breakdown-row,
    .result-meta-list {
        grid-template-columns: 1fr;
    }

    .mode-switch {
        width: 100%;
    }

    .toggle-btn {
        width: 100%;
    }

    .file-preview {
        flex-wrap: wrap;
    }

    .saved-cv-card,
    .candidate-profile-card,
    .candidate-profile-editor,
    .entry-header,
    .inline-add,
    .compact-entry {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .saved-cv-actions {
        justify-content: flex-start;
    }

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

    .cv-preview-contact {
        justify-content: flex-start;
    }
}

@media (max-width: 680px) {
    .page-shell {
        width: min(100% - 18px, 1060px);
        padding-top: 9px;
    }

    .site-header {
        gap: 5px;
        margin-bottom: 14px;
        padding: 8px;
        border-radius: 20px;
        background: rgba(255, 253, 250, 0.9);
    }

    .site-brand {
        display: inline-flex;
        padding: 0 4px;
    }

    .brand-wordmark {
        font-size: 1.38rem;
        letter-spacing: -0.052em;
    }

    .top-account {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 6px;
        padding-bottom: 1px;
    }

    .top-account .language-switcher {
        order: -1;
        margin-right: auto;
    }

    .top-account::-webkit-scrollbar {
        display: none;
    }

    .top-account strong {
        display: none;
    }

    .account-pill,
    .top-account .ghost-btn,
    .language-switcher select {
        min-height: 34px;
        padding: 7px 10px;
        font-size: 0.8rem;
        line-height: 1;
        flex: 0 0 auto;
    }

    .language-switcher select {
        width: 70px;
        padding-right: 24px;
        background-position:
            right 12px center,
            right 7px center,
            0 0;
    }

    .admin-shell {
        gap: 14px;
        padding: 12px;
        border-radius: 20px;
    }

    .admin-card,
    .admin-metric-card {
        min-width: 0;
        padding: 14px;
        border-radius: 16px;
    }

    .admin-details-card summary {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
        gap: 10px;
        min-width: 0;
    }

    .admin-details-card summary > span {
        align-self: start;
        padding: 7px 9px;
        font-size: 0.78rem;
        white-space: nowrap;
    }

    .admin-filter-row,
    .admin-credit-form {
        width: 100%;
        min-width: 0;
    }

    .admin-credit-form {
        gap: 9px;
        margin: 10px 0;
        padding: 12px;
        border-radius: 16px;
    }

    .admin-table-wrap {
        overflow: visible;
    }

    .admin-table {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .admin-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
        border: 0;
    }

    .admin-table tbody {
        display: grid;
        gap: 4px;
        width: 100%;
    }

    .admin-table tr {
        display: grid;
        width: 100%;
        min-width: 0;
        padding: 10px 0 10px 10px;
        border-bottom: 1px solid rgba(221, 212, 200, 0.82);
        border-left: 3px solid rgba(199, 92, 43, 0.28);
    }

    .admin-table td {
        display: grid;
        grid-template-columns: minmax(82px, 0.42fr) minmax(0, 1fr);
        gap: 10px;
        width: 100%;
        min-width: 0;
        padding: 6px 2px;
        border: 0;
        text-align: right;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .admin-table td::before {
        content: attr(data-label);
        color: var(--accent-dark);
        font-size: 0.72rem;
        font-weight: 900;
        text-align: left;
        text-transform: uppercase;
        letter-spacing: 0;
    }

    .admin-table td[colspan] {
        display: block;
        text-align: left;
    }

    .admin-table td[colspan]::before {
        content: none;
    }

    #open-auth-login:not([hidden]) {
        grid-column: auto;
    }

    #open-auth-register:not([hidden]) {
        grid-column: auto;
    }

    .landing-hero {
        padding: 24px;
        border-radius: 18px;
    }

    .premium-why-section,
    .process-section,
    .app-container,
    .quick-start {
        padding: 15px;
        border-radius: 20px;
    }

    .premium-why-section {
        gap: 18px;
    }

    .landing-copy h1 {
        font-size: 2.35rem;
    }

    .landing-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .landing-proof {
        grid-template-columns: 1fr;
    }

    .landing-actions .landing-cta,
    .landing-actions .landing-secondary {
        width: 100%;
        min-width: 0;
    }

    .landing-score-row {
        grid-template-columns: 1fr;
    }

    .score-arrow {
        display: none;
    }

    .landing-section {
        padding: 18px;
        border-radius: 24px;
    }

    .premium-why-section,
    .process-section {
        padding: 16px;
        border-radius: 20px;
    }

    .premium-why-copy h1,
    .premium-why-copy h2 {
        font-size: clamp(1.86rem, 8.2vw, 2.42rem);
        line-height: 1.08;
    }

    .premium-section-lead {
        margin-top: 12px;
        font-size: 0.96rem;
        line-height: 1.42;
    }

    .premium-icon {
        width: 44px;
        height: 44px;
    }

    .premium-hero-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
        margin-top: 20px;
    }

    .generate-btn.premium-hero-primary {
        width: 100%;
        min-height: 50px;
    }

    .premium-hero-secondary {
        justify-content: center;
    }

    .premium-proof-list {
        gap: 10px 14px;
        margin-top: 18px;
        font-size: 0.82rem;
    }

    .premium-benefit-band {
        grid-template-columns: 1fr;
        padding-top: 12px;
    }

    .premium-benefit-band article {
        padding: 12px 0;
    }

    .premium-benefit-band article + article {
        border-top: 1px solid rgba(221, 212, 200, 0.78);
        border-left: 0;
    }

    .ats-panel {
        gap: 14px;
        padding: 14px;
        border-radius: 12px;
    }

    .ats-panel-head {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .ats-status {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .ats-score-row {
        grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr);
        gap: 6px;
    }

    .ats-score-arrow {
        display: block;
        width: 52px;
        transform: translateY(4px);
    }

    .ats-score strong {
        font-size: 2.15rem;
    }

    .ats-score > span {
        max-width: 120px;
        text-align: center;
        font-size: 0.8rem;
        line-height: 1.28;
    }

    .ats-chip-row {
        gap: 7px;
    }

    .ats-chip-row span {
        padding: 7px 10px;
        font-size: 0.8rem;
    }

    .process-header .eyebrow,
    .process-header .quick-start-title {
        margin-left: 0;
    }

    .quick-start,
    .app-container,
    .account-section-card {
        border-radius: 20px;
    }

    .app-container {
        padding: 14px;
    }

    .app-topbar {
        gap: 10px;
        margin-bottom: 12px;
    }

    .app-topbar h2 {
        font-size: 1.34rem;
    }

    .app-topbar p:not(.eyebrow) {
        margin-top: 4px;
        font-size: 0.92rem;
        line-height: 1.42;
    }

    .trust-note {
        gap: 4px;
        margin-bottom: 14px;
        padding: 12px 14px;
        border-radius: 16px;
    }

    .trust-note strong {
        font-size: 0.96rem;
    }

    .trust-note p {
        font-size: 0.9rem;
        line-height: 1.42;
    }

    .mode-switch {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 5px;
        padding: 5px;
        margin-bottom: 14px;
        border-radius: 999px;
    }

    .toggle-btn {
        min-height: 40px;
        padding: 8px 7px;
        font-size: clamp(0.76rem, 3.45vw, 0.86rem);
        line-height: 1.06;
        white-space: nowrap;
    }

    .panel,
    .results-panel {
        margin-bottom: 14px;
        padding: 14px;
        border-radius: 18px;
    }

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

    .section-heading h2,
    .section-header h3 {
        font-size: 1.12rem;
    }

    .section-heading p,
    .section-header p,
    .helper-text,
    .info,
    .secure,
    .file-meta span,
    .result-label,
    #score-summary {
        margin-top: 4px;
        font-size: 0.92rem;
        line-height: 1.42;
    }

    .section-header,
    .result-header {
        gap: 12px;
        margin-bottom: 12px;
    }

    .step-panel .step-pill {
        min-height: 24px;
        margin-bottom: 6px;
        padding: 5px 9px;
        font-size: 0.74rem;
    }

    .tabs {
        gap: 6px;
    }

    .tab {
        padding: 8px 10px;
        font-size: 0.84rem;
        white-space: nowrap;
    }

    textarea,
    input,
    select,
    .job-link {
        padding: 11px 12px;
        border-radius: 14px;
    }

    .upload-box {
        padding: 14px;
        border-radius: 16px;
    }

    .upload-content span {
        margin-top: 4px;
        line-height: 1.42;
    }

    .styles {
        gap: 10px;
    }

    .style-card {
        padding: 16px;
        border-radius: 16px;
    }

    .style-card strong {
        color: #172033;
    }

    .landing-page.scroll-reveal,
    .process-section.scroll-reveal {
        opacity: 1;
        transform: none;
    }

    .landing-page.scroll-reveal .stagger-item,
    .process-section.scroll-reveal .stagger-item {
        opacity: 1;
        transform: none;
    }

    .cv-document {
        padding: 18px;
    }

    .cv-preview-header {
        grid-template-columns: 1fr;
        gap: 14px;
        padding-bottom: 16px;
        margin-bottom: 16px;
    }

    .cv-preview-header.has-photo,
    .cv-document-creative .cv-preview-header.has-photo {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .cv-preview-header.has-photo > .cv-preview-contact {
        grid-column: 1 / -1;
    }

    .cv-preview-photo {
        width: 96px;
        height: 96px;
        border-radius: 26px;
    }

    .cv-preview-name {
        font-size: 2.15rem;
        line-height: 1;
    }

    .cv-preview-contact {
        gap: 7px;
    }

    .cv-preview-contact span,
    .cv-preview-contact a {
        border-radius: 7px;
        font-size: 0.82rem;
    }

    .cv-preview-card,
    .account-preview-panel {
        overflow-x: hidden;
    }

    .cv-preview-card .cv-document,
    .account-preview-panel .cv-document {
        width: 100%;
        max-width: 100%;
        min-height: 0;
        padding: 14px;
    }

    .cv-preview-card .cv-preview-header,
    .account-preview-panel .cv-preview-header {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
        margin-bottom: 12px;
    }

    .cv-preview-card .cv-preview-header.has-photo,
    .account-preview-panel .cv-preview-header.has-photo,
    .cv-preview-card .cv-document-creative .cv-preview-header.has-photo,
    .account-preview-panel .cv-document-creative .cv-preview-header.has-photo {
        grid-template-columns: 68px minmax(0, 1fr);
    }

    .cv-preview-card .cv-preview-header.has-photo > .cv-preview-contact,
    .account-preview-panel .cv-preview-header.has-photo > .cv-preview-contact {
        grid-column: 1 / -1;
    }

    .cv-preview-card .cv-preview-photo,
    .account-preview-panel .cv-preview-photo {
        width: 68px;
        height: 68px;
        border-width: 3px;
    }

    .cv-preview-card .cv-preview-name,
    .account-preview-panel .cv-preview-name {
        flex-basis: auto;
        font-size: 1.42rem;
        line-height: 1.05;
    }

    .cv-preview-card .cv-preview-title-row,
    .account-preview-panel .cv-preview-title-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 9px;
    }

    .cv-preview-card .cv-preview-contact,
    .account-preview-panel .cv-preview-contact {
        gap: 5px;
    }

    .cv-preview-card .cv-preview-contact span,
    .cv-preview-card .cv-preview-contact a,
    .account-preview-panel .cv-preview-contact span,
    .account-preview-panel .cv-preview-contact a {
        max-width: 100%;
        min-height: 24px;
        padding: 3px 7px;
        font-size: 0.7rem;
    }

    .cv-preview-card .cv-document-modern .cv-preview-sections,
    .account-preview-panel .cv-document-modern .cv-preview-sections {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        column-count: 1;
        column-gap: 0;
    }

    .cv-preview-card .cv-document-modern .cv-preview-section,
    .account-preview-panel .cv-document-modern .cv-preview-section {
        display: block;
        width: 100%;
    }

    .cv-preview-card .cv-document-creative .cv-preview-sections,
    .account-preview-panel .cv-document-creative .cv-preview-sections {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        column-count: 1;
        column-gap: 0;
    }

    .cv-preview-card .cv-document-creative .cv-preview-section-profile,
    .account-preview-panel .cv-document-creative .cv-preview-section-profile,
    .cv-preview-card .cv-document-creative .cv-preview-section-rodo,
    .account-preview-panel .cv-document-creative .cv-preview-section-rodo {
        column-span: none;
    }

    .cv-preview-card .cv-preview-section,
    .account-preview-panel .cv-preview-section {
        padding: 10px;
    }

    .cv-preview-card .cv-preview-section-title,
    .account-preview-panel .cv-preview-section-title {
        font-size: 0.68rem;
    }

    .cv-preview-card .cv-preview-body,
    .account-preview-panel .cv-preview-body {
        font-size: 0.82rem;
    }

    .cv-preview-card .cv-preview-entry-title,
    .account-preview-panel .cv-preview-entry-title {
        font-size: 0.86rem;
    }
}

@media (max-width: 760px) {
    .profile-import-heading,
    .profile-import-action,
    .profile-setup-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .profile-import-tabs,
    .profile-import-action .import-btn,
    .profile-setup-actions,
    .profile-setup-actions > button {
        width: 100%;
    }

    .profile-setup-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .profile-photo-field {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .profile-photo-add,
    .profile-photo-saved-preview .ghost-btn {
        justify-content: center;
        width: 100%;
    }

    .profile-photo-saved-preview {
        display: grid;
        grid-template-columns: 52px minmax(0, 1fr);
    }
}

@media (max-width: 520px) {
    .candidate-profile-editor {
        scroll-margin-top: 178px;
    }

    .profile-import-panel {
        margin-right: -14px;
        margin-left: -14px;
        padding: 18px 14px;
    }

    .profile-import-dropzone {
        grid-template-columns: 42px minmax(0, 1fr);
        min-height: 84px;
        padding: 13px;
    }

    .profile-import-file-mark {
        width: 42px;
        height: 42px;
    }

    .profile-import-file-result {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .profile-import-file-result .ghost-btn {
        grid-column: 1 / -1;
        width: 100%;
    }

    .profile-setup-panel {
        padding: 18px;
    }
}

@media (max-width: 460px) {
    .credit-package-grid {
        grid-template-columns: 1fr;
    }

    .top-account strong {
        display: none;
    }

    .account-pill,
    .top-account .ghost-btn {
        width: auto;
        justify-self: auto;
        padding-inline: 9px;
    }

    #open-auth-login:not([hidden]),
    #open-auth-register:not([hidden]) {
        width: auto;
    }

    #open-auth-login:not([hidden]) {
        grid-column: auto;
    }

    #open-auth-register:not([hidden]) {
        grid-column: auto;
    }

    .mode-switch {
        gap: 4px;
        padding: 4px;
    }

    .toggle-btn {
        min-height: 36px;
        padding: 7px 4px;
        font-size: clamp(0.68rem, 3vw, 0.78rem);
        line-height: 1;
        white-space: nowrap;
    }

    #logout-btn:not([hidden]) {
        grid-column: auto;
        width: auto;
    }

    .auth-modal-card {
        max-height: calc(100dvh - 20px);
        padding: 16px;
    }

    .purchase-modal-card {
        max-height: calc(100dvh - 20px);
        gap: 13px;
        padding: 18px 16px;
        border-radius: 18px;
    }

    .purchase-modal-close {
        top: 12px;
        right: 12px;
    }

    .purchase-summary {
        gap: 10px;
        padding: 13px 0;
    }

    .purchase-summary-price {
        font-size: 1.25rem;
    }

    .purchase-consent {
        gap: 9px;
        padding: 11px 0;
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .purchase-modal-actions {
        grid-template-columns: 1fr;
    }

    .purchase-modal-actions .ghost-btn {
        order: 2;
        width: 100%;
    }

    .cookie-banner {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 14px;
        border-radius: 20px;
    }

    .cookie-banner.cookie-banner-inline {
        margin: -10px 0 16px;
    }

    .cookie-actions {
        flex-direction: column;
        justify-content: stretch;
    }

    .cookie-actions .compact-btn {
        width: 100%;
        flex: 1 1 auto;
    }
}

/* Premium interaction layer */
button,
[role="button"],
.photo-picker-button,
.upload-box {
    -webkit-tap-highlight-color: transparent;
}

button {
    touch-action: manipulation;
}

.generate-btn,
.import-btn,
.primary-btn,
.ghost-btn,
.toggle-btn,
.tab,
.nav-link,
.site-brand,
.social-auth-btn,
.password-toggle,
.modal-close,
.photo-picker-button,
.language-switcher select,
.value-chip button,
.credit-package-card,
.style-card,
.result-meta-action,
.quick-action-btn {
    transition:
        transform 420ms var(--ease-premium),
        color 280ms ease,
        background-color 280ms ease,
        border-color 280ms ease,
        box-shadow 420ms var(--ease-premium),
        filter 280ms ease,
        opacity 280ms ease;
}

.generate-btn,
.import-btn,
.primary-btn,
.ghost-btn.active {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    background:
        radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.18), transparent 34%),
        linear-gradient(135deg, #913b18 0%, var(--accent) 52%, #d87b3d 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        inset 0 -1px 0 rgba(111, 41, 12, 0.18),
        0 12px 26px rgba(159, 67, 27, 0.22);
}

.primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 14px;
    font-weight: 800;
    cursor: pointer;
}

.compact-primary {
    min-height: 40px;
    padding: 9px 14px;
    font-size: 0.9rem;
}

.generate-btn::before,
.import-btn::before,
.primary-btn::before,
.ghost-btn.active::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: -35% -55%;
    pointer-events: none;
    background: linear-gradient(
        112deg,
        transparent 34%,
        rgba(255, 255, 255, 0.06) 42%,
        rgba(255, 255, 255, 0.34) 50%,
        rgba(255, 255, 255, 0.06) 58%,
        transparent 66%
    );
    transform: translateX(-68%) rotate(3deg);
    transition: transform 780ms var(--ease-premium);
}

.ghost-btn:not(.active),
.tab,
.toggle-btn:not(.active),
.password-toggle,
.modal-close,
.photo-picker-button {
    box-shadow:
        inset 0 0 0 1px rgba(159, 67, 27, 0.08),
        0 1px 0 rgba(255, 255, 255, 0.76);
}

.buy-credits-btn {
    box-shadow:
        inset 0 0 0 1px rgba(31, 143, 95, 0.12),
        0 1px 0 rgba(255, 255, 255, 0.76);
}

.site-brand,
.nav-link,
.text-btn {
    transition:
        transform 360ms var(--ease-premium),
        color 240ms ease,
        background-color 240ms ease,
        opacity 240ms ease;
}

button:focus-visible,
[role="button"]:focus-visible,
.photo-picker-button:focus-visible,
.upload-box:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.generate-btn:focus-visible,
.import-btn:focus-visible,
.primary-btn:focus-visible,
.ghost-btn.active:focus-visible {
    box-shadow:
        var(--focus-ring),
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        0 14px 32px rgba(159, 67, 27, 0.28);
}

.danger-btn:not(:disabled) {
    color: #a13228;
    background: rgba(174, 51, 42, 0.08);
    box-shadow:
        inset 0 0 0 1px rgba(174, 51, 42, 0.14),
        0 1px 0 rgba(255, 255, 255, 0.76);
}

@media (hover: hover) and (pointer: fine) {
    .premium-why-visual:hover .ats-panel {
        transform: translateY(-4px);
        border-color: rgba(199, 92, 43, 0.2);
        box-shadow:
            0 30px 68px rgba(68, 44, 24, 0.13),
            inset 0 1px 0 rgba(255, 255, 255, 0.8);
    }

    .generate-btn:not(:disabled):hover,
    .import-btn:not(:disabled):hover,
    .primary-btn:not(:disabled):hover,
    .ghost-btn.active:not(:disabled):hover {
        transform: translateY(-3px) scale(1.012);
        filter: saturate(1.07) brightness(1.04);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.3),
            inset 0 -1px 0 rgba(111, 41, 12, 0.16),
            0 18px 38px rgba(159, 67, 27, 0.3),
            0 4px 10px rgba(159, 67, 27, 0.16);
    }

    .generate-btn:not(:disabled):hover::before,
    .import-btn:not(:disabled):hover::before,
    .primary-btn:not(:disabled):hover::before,
    .ghost-btn.active:not(:disabled):hover::before {
        transform: translateX(68%) rotate(3deg);
    }

    .ghost-btn:not(.active):not(:disabled):hover,
    .tab:not(.active):hover,
    .toggle-btn:not(.active):hover,
    .password-toggle:not(:disabled):hover,
    .modal-close:not(:disabled):hover,
    .photo-picker-button:hover,
    .language-switcher select:hover {
        transform: translateY(-2px);
        color: var(--accent-dark);
        border-color: rgba(199, 92, 43, 0.24);
        background: rgba(255, 249, 243, 0.96);
        box-shadow:
            inset 0 0 0 1px rgba(199, 92, 43, 0.12),
            0 10px 24px rgba(68, 44, 24, 0.1),
            0 2px 6px rgba(68, 44, 24, 0.05);
    }

    .social-auth-google:not(:disabled):hover {
        transform: translateY(-1px);
        color: #1f1f1f;
        border-color: #5f6368;
        background: #f8f9fa;
        box-shadow: 0 4px 12px rgba(60, 64, 67, 0.14);
    }

    .social-auth-apple:not(:disabled):hover {
        transform: translateY(-1px);
        color: #fff;
        border-color: #000;
        background: #000;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
    }

    .upload-box:hover {
        transform: translateY(-3px) scale(1.004);
        border-color: rgba(159, 67, 27, 0.5);
        box-shadow: 0 16px 32px rgba(68, 44, 24, 0.09);
    }

    .buy-credits-btn:not(:disabled):hover {
        color: #126844;
        background: rgba(31, 143, 95, 0.14);
        box-shadow:
            inset 0 0 0 1px rgba(31, 143, 95, 0.2),
            0 10px 24px rgba(31, 143, 95, 0.12);
    }

    .danger-btn:not(:disabled):hover {
        color: #8e261f;
        background: rgba(174, 51, 42, 0.13);
        box-shadow:
            inset 0 0 0 1px rgba(174, 51, 42, 0.22),
            0 10px 24px rgba(174, 51, 42, 0.11);
    }

    .process-account-btn:not(:disabled):hover {
        color: #fffefa;
        border-color: var(--accent);
        background: linear-gradient(135deg, var(--accent-dark), var(--accent));
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.2),
            0 16px 32px rgba(199, 92, 43, 0.2);
    }

    .tab.active:hover,
    .toggle-btn.active:hover {
        transform: translateY(-1px);
        filter: saturate(1.05);
        box-shadow: 0 12px 28px rgba(199, 92, 43, 0.24);
    }

    .site-brand:hover {
        transform: translateY(-1px) scale(1.015);
    }

    .nav-link:hover {
        transform: translateY(-1px);
        box-shadow: inset 0 0 0 1px rgba(199, 92, 43, 0.08);
    }

    .text-btn:hover {
        color: var(--accent);
        transform: translateY(-1px);
    }

    .value-chip button:hover {
        color: #fff;
        background: var(--accent);
        transform: scale(1.08);
        box-shadow: 0 5px 12px rgba(159, 67, 27, 0.2);
    }

    .credit-package-card:hover,
    .style-card:hover,
    .result-meta-action:hover,
    .quick-action-btn:hover {
        transform: translateY(-4px) scale(1.008);
        filter: saturate(1.03);
    }
}

.generate-btn:not(:disabled):active,
.import-btn:not(:disabled):active,
.primary-btn:not(:disabled):active,
.ghost-btn:not(:disabled):active,
.toggle-btn:not(:disabled):active,
.tab:not(:disabled):active,
.social-auth-btn:not(:disabled):active,
.password-toggle:not(:disabled):active,
.modal-close:not(:disabled):active,
.credit-package-card:not(:disabled):active,
.style-card:not(:disabled):active,
.result-meta-action:not(:disabled):active,
.quick-action-btn:not(:disabled):active {
    transform: translateY(0) scale(0.975);
    transition-duration: 90ms;
}

.generate-btn:disabled,
.import-btn:disabled,
.primary-btn:disabled,
.ghost-btn:disabled,
.quick-action-btn:disabled {
    filter: grayscale(0.18);
    box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
    .scroll-reveal,
    .scroll-reveal .stagger-item,
    .premium-why-visual,
    .premium-why-copy > .eyebrow,
    .premium-why-copy > h1,
    .premium-why-copy > .premium-section-lead,
    .premium-why-copy > .premium-hero-actions,
    .premium-why-copy > .premium-proof-list,
    .ats-panel,
    .ats-improvement-badge,
    .ats-progress-fill,
    .ats-progress-thumb,
    .process-line,
    .process-icon,
    .site-header,
    .premium-hero-primary span:last-child,
    .premium-hero-secondary svg,
    .process-account-btn span:last-child,
    .generate-btn,
    .import-btn,
    .primary-btn,
    .ghost-btn,
    .toggle-btn,
    .tab,
    .nav-link,
    .site-brand,
    .social-auth-btn,
    .password-toggle,
    .modal-close,
    .photo-picker-button,
    .language-switcher select,
    .upload-box,
    .consent-select-all,
    .text-btn.auth-switch-mode,
    .auth-help-btn,
    .auth-back-btn,
    .auth-back-btn span,
    .value-chip button,
    .credit-package-card,
    .style-card,
    .result-meta-action,
    .result-meta-chevron,
    .quick-action-btn,
    .quick-action-btn::before,
    .generate-btn::before,
    .import-btn::before,
    .primary-btn::before,
    .ghost-btn.active::before {
        animation: none !important;
        transition: none !important;
    }

    .generate-btn:hover,
    .import-btn:hover,
    .primary-btn:hover,
    .ghost-btn:hover,
    .toggle-btn:hover,
    .tab:hover,
    .nav-link:hover,
    .site-brand:hover,
    .social-auth-btn:hover,
    .password-toggle:hover,
    .modal-close:hover,
    .photo-picker-button:hover,
    .language-switcher select:hover,
    .upload-box:hover,
    .consent-select-all:hover,
    .text-btn.auth-switch-mode:hover,
    .auth-help-btn:hover,
    .auth-back-btn:hover,
    .auth-back-btn:hover span,
    .value-chip button:hover,
    .credit-package-card:hover,
    .style-card:hover,
    .result-meta-action:hover,
    .result-meta-action:hover .result-meta-chevron,
    .quick-action-btn:hover,
    .premium-why-visual:hover .ats-panel,
    .premium-hero-primary:hover span:last-child,
    .premium-hero-secondary:hover svg {
        transform: none !important;
    }

    .result-meta-action.is-working .result-meta-chevron {
        animation: none !important;
    }

    .generate-btn:hover::before,
    .import-btn:hover::before,
    .primary-btn:hover::before,
    .ghost-btn.active:hover::before {
        transform: translateX(-68%) rotate(3deg);
    }

    .scroll-reveal {
        opacity: 1;
        transform: translate(var(--reveal-x), 0);
    }

    .scroll-reveal .stagger-item,
    .premium-why-visual,
    .premium-why-copy > .eyebrow,
    .premium-why-copy > h1,
    .premium-why-copy > .premium-section-lead,
    .premium-why-copy > .premium-hero-actions,
    .premium-why-copy > .premium-proof-list,
    .ats-improvement-badge {
        opacity: 1;
        transform: none;
    }

    .premium-why-section.is-visible .ats-status span {
        animation: none;
    }

    .premium-why-section.is-visible .premium-why-visual,
    .premium-why-section.is-visible .premium-why-copy > * {
        opacity: 1;
        transform: none !important;
    }

}

@media (max-width: 760px) {
    .cv-document-creative .cv-creative-shell {
        grid-template-columns: 1fr;
        grid-template-areas:
            "identity"
            "main"
            "sidebar";
        grid-template-rows: auto;
        min-height: 0;
    }

    .cv-document-creative .cv-creative-identity {
        padding: 22px 18px 0;
    }

    .cv-document-creative .cv-creative-sidebar {
        padding: 4px 18px 24px;
    }

    .cv-document-creative .cv-creative-main {
        padding: 28px 18px;
    }

    .cv-document-creative .cv-preview-header.has-photo {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 15px;
    }

    .cv-document-creative .cv-preview-photo,
    .cv-document-creative .cv-preview-photo.cv-preview-photo-square,
    .cv-document-creative .cv-preview-photo.cv-preview-photo-portrait,
    .cv-document-creative .cv-preview-photo.cv-preview-photo-round {
        width: 94px;
        height: 108px;
    }

    .cv-document-creative .cv-preview-photo.cv-preview-photo-round {
        height: 94px;
    }

    .cv-document-creative .cv-preview-photo.cv-preview-photo-landscape {
        width: 110px;
        height: 78px;
    }

    .cv-document-creative .cv-preview-name {
        font-size: 1.65rem;
    }

    .cv-document-creative .cv-preview-contact span,
    .cv-document-creative .cv-preview-contact a {
        font-size: 0.72rem;
    }
}
