/* AIResume PK - Executive Studio */

:root {
    --ink-900: #0f172a;
    --ink-800: #1e293b;
    --ink-600: #475569;
    --ink-400: #94a3b8;
    --brand-500: #6366f1;
    --brand-600: #4f46e5;
    --brand-700: #4338ca;
    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
}

/* Nav */
.nav-bar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.brand-logo { text-decoration: none; color: inherit; }
.brand-icon {
    width: 2.25rem;
    height: 2.25rem;
    background: var(--brand-600);
    color: white;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 700;
    font-family: var(--font-sans), system-ui, sans-serif;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}
.brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink-900);
    letter-spacing: -0.02em;
    text-transform: lowercase;
}
.brand-text-pk { color: var(--brand-600); }
.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--ink-800);
    text-decoration: none;
    transition: color 0.2s;
}
.nav-link:hover { color: var(--brand-600); }

/* User dropdown */
.nav-user-dropdown { position: relative; }
.nav-user-trigger { cursor: pointer; }
.nav-user-menu { display: none; }
.nav-user-dropdown.open .nav-user-menu { display: block; }
.nav-user-item { transition: background 0.15s, color 0.15s; }

/* Buttons */
.btn-primary {
    background: var(--brand-600);
    color: white;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.btn-primary:hover {
    background: var(--brand-700);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -6px rgba(79, 70, 229, 0.4);
}

/* Hero */
.hero-title {
    font-family: var(--font-sans), 'DM Sans', system-ui, sans-serif;
    font-size: clamp(2.75rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #1a202c;
    margin: 0 0 1.25rem 0;
}
.hero-title-highlight {
    color: #2b6cb0;
}
.hero-subtitle {
    font-family: var(--font-sans), 'DM Sans', system-ui, sans-serif;
    font-size: 1.125rem;
    font-weight: 400;
    color: #4a5568;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* Built for professionals section */
.built-for-heading {
    font-size: 2rem;
    font-weight: 700;
    color: var(--ink-900);
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
}
.built-for-subheading {
    font-size: 1rem;
    color: var(--ink-600);
    line-height: 1.6;
    margin: 0;
}
.built-for-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.built-for-card {
    background: var(--stone-50);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 1.25rem;
    padding: 1.75rem 1.5rem;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.built-for-card:hover {
    box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.08);
}
.built-for-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.built-for-icon-svg {
    width: 1.5rem;
    height: 1.5rem;
    color: white;
}
.built-for-icon-blue {
    background: var(--brand-600);
    color: white;
}
.built-for-icon-green {
    background: #22c55e;
    color: white;
}
.built-for-icon-amber {
    background: #eab308;
    color: var(--ink-900);
}
.built-for-icon-amber .built-for-icon-svg {
    color: var(--ink-900);
    stroke: var(--ink-900);
}
.built-for-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ink-900);
    margin: 0 0 0.5rem 0;
}
.built-for-card-desc {
    font-size: 0.9375rem;
    color: var(--ink-600);
    line-height: 1.6;
    margin: 0;
}

/* Features section (ATS, AI, Vanity URLs) */
.features-section {
    background: #fafaf9;
}
.features-headline {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #1a202c;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}
.features-subheadline {
    font-size: 1.0625rem;
    font-weight: 400;
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Feature cards */
.feature-card {
    background: white;
    padding: 2rem 1.75rem;
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    text-align: left;
}
.feature-card:hover {
    box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 0.75rem 0;
    letter-spacing: -0.02em;
}

.feature-desc {
    font-size: 0.9375rem;
    font-weight: 400;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* Section headings (home) */
.section-heading {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--ink-900);
    margin: 0 0 0.5rem 0;
}
.section-subheading {
    font-size: 1rem;
    color: var(--ink-600);
    line-height: 1.6;
    margin: 0;
}

/* Product comparison table */
.comparison-wrapper {
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
    min-width: 640px;
}
.comparison-table th,
.comparison-table td {
    padding: 1rem 1.25rem;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    vertical-align: middle;
}
.comparison-table thead th {
    background: var(--stone-50);
    font-weight: 600;
    color: var(--ink-900);
    border-bottom: 2px solid rgba(0, 0, 0, 0.08);
}
.comparison-feature-col {
    text-align: left !important;
    font-weight: 500;
    color: var(--ink-800);
}
.comparison-col {
    min-width: 120px;
}
.comparison-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--ink-500);
    margin-top: 0.25rem;
}
.comparison-col-highlight {
    background: rgba(79, 70, 229, 0.06);
    font-weight: 600;
    color: var(--ink-900);
}
.comparison-yes {
    color: #059669;
    font-weight: 600;
    font-size: 1.1rem;
}
.comparison-no {
    color: var(--ink-300);
    font-size: 0.9rem;
}
.comparison-partial {
    color: var(--ink-500);
    font-size: 0.85rem;
}
.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

/* Review cards */
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.review-card {
    background: var(--stone-50);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 1.25rem;
    padding: 1.75rem 1.5rem;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.review-card:hover {
    box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.08);
    border-color: rgba(79, 70, 229, 0.15);
}
.review-stars {
    color: #eab308;
    font-size: 1rem;
    letter-spacing: 0.15em;
    margin-bottom: 0.75rem;
}
.review-quote {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--ink-700);
    margin: 0 0 1.25rem 0;
    font-style: italic;
}
.review-author {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.review-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--ink-900);
}
.review-role {
    font-size: 0.8125rem;
    color: var(--ink-500);
}

/* Auth */
.auth-wrap {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    width: 100%;
    max-width: 28rem;
    background: white;
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.auth-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--ink-900);
    margin-bottom: 1.5rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: none;
    border-radius: 0.75rem;
    background: var(--stone-50);
    font-size: 0.9375rem;
    outline: none;
    transition: box-shadow 0.2s ease;
}
.auth-input::placeholder {
    color: var(--ink-400);
}
.auth-input:focus {
    box-shadow: 0 0 0 2px white, 0 0 0 4px rgba(79, 70, 229, 0.25);
}

.auth-submit {
    width: 100%;
    padding: 0.875rem 1.25rem;
    margin-top: 0.25rem;
    border: none;
    border-radius: 0.75rem;
    background: var(--brand-600);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.2s ease;
}
.auth-submit:hover {
    background: var(--brand-700);
}
.auth-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Dashboard */
.dashboard-wrap {
    max-width: 80rem;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.dashboard-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--ink-900);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.dashboard-card-add {
    min-height: 16rem;
    background: white;
    border: 2px dashed rgba(0, 0, 0, 0.12);
    border-radius: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.dashboard-card-add:hover {
    border-color: var(--brand-500);
    background: rgba(79, 70, 229, 0.03);
}

.vanity-url-box {
    background: var(--stone-50);
    padding: 1.25rem 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
}
.vanity-url-box .label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-600);
    margin-bottom: 0.5rem;
}
.vanity-url-box .url-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.vanity-url-box input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    background: white;
}
.vanity-url-box button {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background: var(--brand-600);
    color: white;
    font-size: 0.8125rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}
.vanity-url-box button:hover {
    background: var(--brand-700);
}

/* Builder */
.builder-layout {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 72px);
}
@media (min-width: 768px) {
    .builder-layout {
        flex-direction: row;
    }
}

.builder-form-panel {
    width: 100%;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    background: white;
    padding: 1.5rem 1.5rem 6rem;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
}
@media (min-width: 768px) {
    .builder-form-panel {
        width: 42%;
        min-width: 320px;
    }
}

.builder-form-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e3a5f;
    margin: 0 0 0.25rem 0;
}
.builder-form-subtitle {
    font-size: 0.9375rem;
    color: var(--ink-500);
    margin: 0 0 1.25rem 0;
}
.template-picker { }
.template-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}
@media (min-width: 640px) {
    .template-grid { grid-template-columns: repeat(3, 1fr); }
}
.template-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    text-align: left;
    min-height: 0;
}
.template-card:hover {
    border-color: var(--brand-500);
    background: var(--stone-50);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.template-card.active {
    border-color: var(--brand-600);
    background: white;
    box-shadow: 0 0 0 1px var(--brand-600), 0 4px 12px rgba(79, 70, 229, 0.15);
}
.template-card-preview {
    display: block;
    height: 3rem;
    border-radius: 0.35rem 0.35rem 0 0;
    margin: 2px 2px 0 2px;
    background: #e2e8f0;
}
.template-card.active .template-card-preview {
    margin: 2px;
    border-radius: 0.35rem 0 0 0;
}
.template-preview-modern-ats {
    background: linear-gradient(to bottom, #1a202c 0%, #1a202c 12px, #f1f5f9 12px);
}
.template-preview-executive {
    background: linear-gradient(to bottom, #1e3a5f 0%, #1e3a5f 14px, #f8fafc 14px);
}
.template-preview-tech {
    background: linear-gradient(to bottom, #3b82f6 0%, #3b82f6 10px, #0f172a 10px, #0f172a 12px, #f1f5f9 12px);
}
.template-preview-entry-level {
    background: linear-gradient(to bottom, #059669 0%, #059669 12px, rgba(5, 150, 105, 0.08) 12px, #f0fdf4 24px);
}
.template-preview-creative {
    background: linear-gradient(to right, #4f46e5 0%, #4f46e5 6px, transparent 6px), linear-gradient(to bottom, #0f172a 0%, #0f172a 14px, #f8fafc 14px);
}
.template-preview-career-switch {
    background: linear-gradient(to bottom, #7c3aed 0%, #7c3aed 12px, #f5f3ff 12px);
}
.template-card-label {
    display: block;
    padding: 0.5rem 0.6rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--ink-800);
    line-height: 1.3;
}
.template-card.active .template-card-label {
    color: var(--brand-700);
}

/* CVwizard-style builder */
.builder-left-header { margin-bottom: 1rem; }
.builder-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--ink-600);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
}
.builder-back-link:hover { color: var(--ink-900); }
.builder-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.builder-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 0.5rem;
    background: white;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--ink-700);
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}
.builder-action-btn:hover {
    border-color: var(--brand-500);
    background: rgba(79, 70, 229, 0.05);
}
.builder-action-icon { width: 1.125rem; height: 1.125rem; }
.builder-action-linkedin .linkedin-icon { color: #0a66c2; }
.builder-section {
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    overflow: hidden;
}
.builder-section-head {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--stone-50);
    border: none;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ink-800);
    cursor: pointer;
    text-align: left;
}
.builder-section-head:hover { background: var(--stone-100); }
.builder-section-chevron {
    font-size: 0.65rem;
    color: var(--ink-500);
    transition: transform 0.2s;
}
.builder-section-head[aria-expanded="false"] .builder-section-chevron { transform: rotate(-90deg); }
.builder-section-body {
    padding: 1rem;
    background: white;
}
.builder-section-body.collapsed { display: none; }
.builder-photo-wrap {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 1rem;
}
.builder-photo-preview {
    width: 100%;
    height: 100%;
    border-radius: 0.5rem;
    background: var(--stone-100);
    background-size: cover;
    background-position: center;
}
.builder-photo-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 0.5rem;
    border: 2px dashed rgba(0,0,0,0.15);
}
.builder-photo-label:hover { border-color: var(--brand-500); background: rgba(79,70,229,0.05); }
.builder-photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--ink-500);
}
.builder-photo-camera { width: 1.75rem; height: 1.75rem; }
.builder-headline-label { margin-bottom: 0.75rem; }
.builder-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}
.builder-optional-fields { margin-top: 0.5rem; }
.builder-add-optional {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.75rem;
}
.builder-add-optional-btn {
    padding: 0.35rem 0.6rem;
    border: 1px dashed rgba(0,0,0,0.2);
    border-radius: 0.35rem;
    background: transparent;
    font-size: 0.75rem;
    color: var(--ink-600);
    cursor: pointer;
}
.builder-add-optional-btn:hover { border-color: var(--brand-500); color: var(--brand-600); }
.builder-optional-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.builder-optional-row label { font-size: 0.75rem; font-weight: 600; color: var(--ink-600); min-width: 5rem; }
.builder-optional-row .builder-input { flex: 1; }
.builder-opt-remove {
    padding: 0.25rem 0.5rem;
    border: none;
    background: transparent;
    color: var(--ink-500);
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
}
.builder-opt-remove:hover { color: var(--rose-500); }
.builder-form-footer-inline { margin-top: 1rem; }
.builder-preview-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.95);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    flex-shrink: 0;
}
.builder-preview-topbar-left { display: flex; align-items: center; gap: 0.5rem; }
.builder-resume-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ink-800);
}
.builder-save-status {
    font-size: 0.75rem;
    color: var(--ink-500);
}
.builder-save-status.saved { color: #059669; }
.builder-preview-topbar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.builder-toolbar-btn {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 0.35rem;
    background: white;
    font-size: 1rem;
    cursor: pointer;
    color: var(--ink-600);
}
.builder-toolbar-btn:hover { background: var(--stone-50); color: var(--ink-900); }
.builder-toolbar-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.builder-lang-select {
    padding: 0.35rem 0.5rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 0.35rem;
    font-size: 0.8125rem;
    background: white;
    color: var(--ink-800);
}
.builder-templates-bar {
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(0,0,0,0.06);
    background: var(--stone-50);
    flex-shrink: 0;
}
.builder-templates-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-500);
    margin: 0 0 0.5rem 0;
}
.builder-template-carousel {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
}
.builder-template-thumb {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    padding: 0.35rem;
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 0.5rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    text-align: center;
}
.builder-template-thumb:hover { border-color: var(--brand-400); }
.builder-template-thumb.active {
    border-color: var(--brand-600);
    box-shadow: 0 0 0 1px var(--brand-600);
}
.builder-template-thumb-preview {
    display: block;
    width: 100%;
    height: 2.5rem;
    border-radius: 0.25rem;
    margin-bottom: 0.25rem;
    background: #e2e8f0;
}
.builder-template-thumb-name {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--ink-700);
    line-height: 1.2;
}
.builder-formatting-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    border-top: 1px solid rgba(0,0,0,0.06);
    background: white;
    flex-shrink: 0;
}
.builder-format-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    color: var(--ink-600);
}
.builder-format-label { font-weight: 600; }
.builder-format-select {
    padding: 0.25rem 0.5rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 0.35rem;
    font-size: 0.8125rem;
    background: white;
    min-width: 5rem;
}
.resume-education-list { display: flex; flex-direction: column; gap: 1rem; }

.builder-steps {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.builder-step {
    padding: 0.4rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: var(--stone-50);
    color: var(--ink-600);
    border: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.builder-step:hover {
    background: var(--stone-100);
    color: var(--ink-800);
}
.builder-step.active {
    background: var(--brand-600);
    color: white;
}

.step-content {
    display: none;
}
.step-content.active {
    display: block;
    animation: stepIn 0.35s ease-out;
}
@keyframes stepIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.builder-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.75rem;
    background: var(--stone-50);
    font-size: 0.9375rem;
    outline: none;
    transition: box-shadow 0.2s;
}
.builder-input:focus {
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

.builder-textarea {
    min-height: 6rem;
    resize: vertical;
}

.builder-ai-btn {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-600);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0;
}
.builder-ai-btn:hover {
    text-decoration: underline;
}
.builder-ai-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.builder-add-block {
    width: 100%;
    padding: 1rem;
    margin-top: 0.5rem;
    border: 2px dashed rgba(0, 0, 0, 0.12);
    border-radius: 0.75rem;
    background: transparent;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-400);
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}
.builder-add-block:hover {
    border-color: var(--brand-500);
    color: var(--brand-600);
}

.builder-checkbox-wrap {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: var(--stone-50);
    border-radius: 1rem;
}

.builder-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--ink-800);
}

.builder-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--brand-600);
}

.builder-form-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 1.5rem;
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 20;
}
@media (min-width: 768px) {
    .builder-form-footer {
        right: auto;
        width: 42%;
        min-width: 320px;
    }
}

.builder-footer-btn,
.builder-save-btn {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-400);
    background: none;
    border: none;
    cursor: pointer;
}
.builder-footer-btn:hover,
.builder-save-btn:hover {
    color: var(--ink-800);
}
.builder-save-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background: var(--stone-100);
    color: var(--ink-800);
}

.builder-preview-panel {
    flex: 1;
    min-height: 24rem;
    background: var(--stone-50);
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
@media (max-width: 767px) {
    .builder-preview-panel {
        display: none;
    }
}

.resume-preview-wrapper {
    transform-origin: top center;
    flex: 1;
    overflow-y: auto;
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}
@media (max-width: 1024px) {
    .resume-preview-wrapper {
        transform: scale(0.85);
    }
}

.resume-page {
    width: 210mm;
    min-height: 297mm;
    background: white;
    color: #111;
    padding: 22mm 20mm;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
    font-size: 10.5pt;
    line-height: 1.55;
    font-family: 'DM Sans', sans-serif;
}

.resume-header {
    border-bottom: 2px solid var(--ink-900);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.resume-name {
    font-family: inherit;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 0.2rem 0;
}

.resume-title {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-600);
    margin: 0;
}

.resume-section {
    margin-bottom: 1.5rem;
}

.resume-section-title {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--ink-400);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 0.35rem;
    margin-bottom: 0.75rem;
}

.resume-summary {
    font-size: 0.9rem;
    color: var(--ink-800);
    font-style: italic;
    line-height: 1.6;
    margin: 0;
}

.resume-experience-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.resume-experience-item {
    margin-bottom: 0;
}
.resume-experience-item .role {
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    color: var(--ink-900);
}
.resume-experience-item .company {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand-600);
}
.resume-experience-item .desc {
    font-size: 10.5pt;
    color: var(--ink-600);
    line-height: 1.5;
    white-space: pre-line;
    margin-top: 0.35rem;
}

.resume-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--ink-800);
}

/* Resume template variants */
.resume-template-modern-ats .resume-header { border-bottom: 2px solid #1a202c; }
.resume-template-modern-ats .resume-section-title { color: #64748b; }

.resume-template-executive .resume-header {
    border-bottom: 3px solid #1e3a5f;
    padding-bottom: 1.25rem;
}
.resume-template-executive .resume-name {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.85rem;
    letter-spacing: 0.05em;
    color: #1e3a5f;
}
.resume-template-executive .resume-title { color: #475569; letter-spacing: 0.18em; }
.resume-template-executive .resume-section-title { color: #1e3a5f; border-bottom-color: #1e3a5f; }
.resume-template-executive .resume-experience-item .company { color: #1e3a5f; }

.resume-template-tech .resume-header {
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}
.resume-template-tech .resume-name {
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 1.5rem;
    letter-spacing: 0.02em;
    text-transform: none;
    color: #0f172a;
}
.resume-template-tech .resume-title { font-size: 0.75rem; color: #64748b; text-transform: none; letter-spacing: 0.05em; }
.resume-template-tech .resume-section-title {
    color: #3b82f6;
    border-bottom: 2px solid #3b82f6;
    font-size: 0.65rem;
}
.resume-template-tech .resume-experience-item .company { color: #3b82f6; }
.resume-template-tech .resume-summary { font-style: normal; }

.resume-template-entry-level .resume-header {
    border-bottom: 2px solid #059669;
    background: linear-gradient(to bottom, rgba(5, 150, 105, 0.06), transparent);
    margin: -0.5rem -0.5rem 1.5rem -0.5rem;
    padding: 1rem 0.5rem 1rem;
}
.resume-template-entry-level .resume-name { color: #065f46; }
.resume-template-entry-level .resume-title { color: #047857; }
.resume-template-entry-level .resume-section-title { color: #059669; border-bottom-color: #059669; }
.resume-template-entry-level .resume-experience-item .company { color: #059669; }

.resume-template-creative .resume-header {
    border-bottom: none;
    text-align: left;
    padding-bottom: 0.5rem;
}
.resume-template-creative .resume-name {
    font-size: 2rem;
    letter-spacing: -0.02em;
    text-transform: none;
    color: #0f172a;
    border-left: 4px solid var(--brand-600);
    padding-left: 0.75rem;
}
.resume-template-creative .resume-title { margin-top: 0.25rem; margin-left: 0.75rem; color: #6366f1; letter-spacing: 0.08em; }
.resume-template-creative .resume-section-title {
    color: #6366f1;
    border-bottom: none;
    border-left: 3px solid #6366f1;
    padding-left: 0.5rem;
}
.resume-template-creative .resume-experience-item .company { color: #6366f1; }

.resume-template-career-switch .resume-header {
    border-bottom: 2px solid #7c3aed;
    text-align: center;
}
.resume-template-career-switch .resume-name { color: #5b21b6; }
.resume-template-career-switch .resume-title { color: #7c3aed; }
.resume-template-career-switch .resume-section-title {
    color: #7c3aed;
    border-bottom-color: rgba(124, 58, 237, 0.3);
}
.resume-template-career-switch .resume-experience-item .company { color: #7c3aed; }
.resume-template-career-switch .resume-skills { color: #5b21b6; }

.builder-preview-actions {
    margin-top: 1.5rem;
    padding-bottom: 2rem;
}

.btn-download-pdf {
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    background: var(--ink-900);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}
.btn-download-pdf:hover {
    background: var(--ink-800);
    transform: translateY(-1px);
}
.btn-download-pdf:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Experience block in form */
.exp-block {
    background: var(--stone-50);
    padding: 1.25rem;
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.exp-block input,
.exp-block textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: 0.5rem;
    background: white;
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
    outline: none;
}
.exp-block textarea {
    min-height: 4.5rem;
    resize: vertical;
}
.exp-block .exp-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}
.exp-block .exp-delete {
    font-size: 0.75rem;
    font-weight: 600;
    color: #dc2626;
    background: none;
    border: none;
    cursor: pointer;
}
.exp-block .exp-delete:hover {
    text-decoration: underline;
}

/* Public resume view */
.public-resume-wrap {
    padding: 2rem 1rem 4rem;
    min-height: 100vh;
    background: var(--stone-100);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Scrollbar */
.builder-form-panel::-webkit-scrollbar,
.builder-preview-panel::-webkit-scrollbar {
    width: 6px;
}
.builder-form-panel::-webkit-scrollbar-thumb,
.builder-preview-panel::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
    border-radius: 10px;
}

/* Static pages & footer */
.page-content {
    min-height: calc(100vh - 72px);
}

.page-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--ink-900);
    margin: 0 0 0.5rem 0;
}

.prose {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ink-800);
}
.prose h2 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ink-900);
    margin: 2rem 0 0.75rem 0;
}
.prose h2:first-of-type { margin-top: 0; }
.prose p { margin: 0 0 1rem 0; }
.prose ul { margin: 0 0 1rem 0; padding-left: 1.5rem; }
.prose li { margin-bottom: 0.35rem; }
.prose a { color: var(--brand-600); }

.site-footer .footer-heading {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--stone-400);
    margin: 0 0 1rem 0;
}
.site-footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.site-footer .footer-links li { margin-bottom: 0.5rem; }
.site-footer .footer-links a {
    color: var(--stone-400);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s;
}
.site-footer .footer-links a:hover { color: white; }

.site-footer .footer-brand .brand-icon {
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ink-800);
    margin-bottom: 0.5rem;
}
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.75rem;
    background: white;
    font-size: 0.9375rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus {
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.faq-question {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ink-900);
    margin: 0 0 0.5rem 0;
}
.faq-answer {
    margin: 0;
    color: var(--ink-600);
    line-height: 1.65;
}
.faq-answer a { color: var(--brand-600); }

/* ATS Score page */
.ats-score-wrap { min-height: calc(100vh - 72px); }
.ats-score-display { margin-bottom: 0; }
.ats-score-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--brand-600);
    line-height: 1;
}
.ats-score-label { font-size: 1.5rem; color: var(--ink-500); font-weight: 500; }
.ats-suggestions {
    background: var(--stone-50);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
}
.ats-suggestions ul { margin: 0; padding-left: 1.25rem; }
.ats-suggestions li { margin-bottom: 0.5rem; color: var(--ink-700); line-height: 1.5; }
.ats-result.hidden { display: none !important; }
.ats-loading.hidden, .ats-error.hidden { display: none !important; }

.ats-file-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px dashed rgba(0, 0, 0, 0.15);
    border-radius: 0.75rem;
    background: white;
    font-size: 0.9375rem;
    color: var(--ink-800);
    cursor: pointer;
}
.ats-file-input:hover { border-color: var(--brand-500); background: var(--stone-50); }
.ats-file-input::file-selector-button {
    padding: 0.5rem 1rem;
    margin-right: 1rem;
    border: none;
    border-radius: 0.5rem;
    background: var(--brand-600);
    color: white;
    font-weight: 600;
    font-size: 0.8125rem;
    cursor: pointer;
}
.ats-upload-hint { margin: 0; }
.ats-or-divider { margin: 0.5rem 0; }

/* WhatsApp share (Pakistan market) */
.whatsapp-share-btn,
.vanity-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: 0.5rem;
    background: #25d366;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}
.whatsapp-share-btn:hover,
.vanity-whatsapp-btn:hover {
    background: #20bd5a;
    color: white;
    transform: translateY(-1px);
}
.vanity-url-box .url-row { flex-wrap: wrap; }
.vanity-whatsapp-btn { white-space: nowrap; }
