:root {
    --cvify-teal: #00b8a9;
    --cvify-teal-dark: #008b7d;
    --cvify-teal-light: #00d4c0;
    --background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 50%, #ddd6fe 100%);
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-bg-hover: rgba(255, 255, 255, 0.95);
    --text-primary: #374151;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --border-light: rgba(0, 184, 169, 0.2);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 25px 50px rgba(0, 0, 0, 0.15);
    /* Motion tokens */
    --motion-fast: 150ms;
    --motion-base: 200ms;
    --motion-slow: 250ms;
    --ease-standard: cubic-bezier(0.25, 0.1, 0.25, 1);
    --ease-out: ease-out;
    /* Purple palette (interview section) */
    --cvify-purple: #7c3aed;
    --cvify-purple-dark: #6d28d9;
    --cvify-purple-light: #8b5cf6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: url('/assets/design-reference/fondo.png') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
}

.logo img {
    height: 72px;
    width: auto;
}

/* App container */
.app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    padding: 16px 32px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.header-left {
    width: 50px;
}

.header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
}

/* User Menu Button */
.user-menu-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid rgba(0, 184, 169, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.user-menu-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--cvify-teal);
    transform: scale(1.05);
}

.user-menu-btn svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

.user-menu-btn.logged-in {
    background: var(--cvify-teal);
    border-color: var(--cvify-teal);
}

.user-menu-btn.logged-in svg {
    color: white;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--cvify-teal);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

/* Mobile Hamburger Button — hidden on desktop */
.mobile-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 36px;
    height: 36px;
    background: none;
    border: 2px solid rgba(0, 184, 169, 0.3);
    border-radius: 8px;
    cursor: pointer;
    padding: 6px;
    transition: all 0.2s ease;
}
.mobile-hamburger:hover {
    border-color: var(--cvify-teal);
    background: rgba(0, 184, 169, 0.05);
}
.mobile-hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--cvify-teal);
    border-radius: 1px;
    transition: 0.2s;
}

/* Landing mobile menu — hidden on desktop */
.landing-mobile-menu {
    display: none;
}

/* User Dropdown Menu */
.user-dropdown {
    position: absolute;
    top: 60px;
    right: 32px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.08);
    min-width: 220px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.user-dropdown.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 16px;
    border-bottom: 1px solid #eee;
}

.dropdown-header .user-name {
    font-weight: 600;
    color: var(--text-primary);
}

.dropdown-header .user-email {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.dropdown-header .user-credits {
    font-size: 13px;
    color: var(--cvify-teal);
    font-weight: 500;
    margin-top: 8px;
}

.dropdown-menu {
    padding: 8px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
    cursor: pointer;
}

.dropdown-item:hover {
    background: rgba(0, 184, 169, 0.08);
}

.dropdown-item svg {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
}

.dropdown-divider {
    height: 1px;
    background: #eee;
    margin: 8px 0;
}

.dropdown-item.logout {
    color: #ef4444;
}

.dropdown-item.logout svg {
    color: #ef4444;
}

/* Auth Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
}

.modal-overlay.visible .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: 24px 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #e5e7eb;
}

.modal-body {
    padding: 24px;
}

/* Auth Form */
.auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.auth-tab {
    flex: 1;
    padding: 10px;
    border: none;
    background: #f3f4f6;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-tab.active {
    background: var(--cvify-teal);
    color: white;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-field {
    margin-bottom: 16px;
}

.auth-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.auth-field input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s;
}

.auth-field input:focus {
    outline: none;
    border-color: var(--cvify-teal);
    box-shadow: 0 0 0 3px rgba(0, 184, 169, 0.15);
}

.auth-submit {
    width: 100%;
    padding: 14px;
    border: none;
    background: var(--cvify-teal);
    color: white;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.auth-submit:hover {
    background: var(--cvify-teal-dark);
}

.auth-submit:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.auth-divider span {
    padding: 0 16px;
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.social-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.social-btn svg {
    width: 20px;
    height: 20px;
}

.auth-error {
    background: #fef2f2;
    color: #dc2626;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    display: none;
}

.auth-error.visible {
    display: block;
}

/* ============= LANDING PAGE STYLES ============= */
.landing-page {
    min-height: 100vh;
}

/* Landing Header */
.landing-header {
    padding: 20px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.landing-header .logo img {
    height: 48px;
}

.landing-nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.landing-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.landing-nav a:hover {
    color: var(--cvify-teal);
}

.landing-nav-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-outline {
    padding: 10px 20px;
    border: 2px solid var(--cvify-teal);
    background: transparent;
    color: var(--cvify-teal);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: var(--cvify-teal);
    color: white;
}

.btn-primary-landing {
    padding: 10px 20px;
    border: none;
    background: var(--cvify-teal);
    color: white;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary-landing:hover {
    background: var(--cvify-teal-dark);
    transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
    padding: 160px 60px 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 184, 169, 0.1);
    color: var(--cvify-teal);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-badge svg {
    width: 16px;
    height: 16px;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.hero-title .highlight {
    color: var(--cvify-teal);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: 12px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--cvify-teal);
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

.hero-visual {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.hero-mockup {
    background: white;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.3s ease;
}

.hero-mockup:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.mockup-header {
    background: linear-gradient(135deg, var(--cvify-teal) 0%, var(--cvify-teal-dark) 100%);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mockup-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.mockup-content {
    padding: 24px;
}

.mockup-line {
    height: 12px;
    background: #f3f4f6;
    border-radius: 6px;
    margin-bottom: 12px;
}

.mockup-line.short { width: 60%; }
.mockup-line.medium { width: 80%; }
.mockup-line.long { width: 100%; }

/* How It Works Section */
.section {
    padding: 100px 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--cvify-teal);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.steps-container {
    display: flex;
    gap: 40px;
    justify-content: center;
}

.step-card {
    flex: 1;
    max-width: 350px;
    background: white;
    border-radius: 20px;
    padding: 40px 32px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--cvify-teal) 0%, var(--cvify-teal-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 24px;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 184, 169, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.step-icon svg {
    width: 40px;
    height: 40px;
    color: var(--cvify-teal);
}

.step-title {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.step-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.feature-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(0, 184, 169, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: var(--cvify-teal);
}

.feature-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.feature-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Pricing Section */
.pricing-grid {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: stretch;
    flex-wrap: nowrap;
}

.pricing-card {
    flex: 1;
    max-width: 300px;
    background: white;
    border-radius: 20px;
    padding: 36px 28px 32px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.pricing-card.featured {
    border: 2px solid var(--cvify-teal);
    transform: scale(1.05);
    background: linear-gradient(180deg, rgba(0,184,169,0.03) 0%, rgba(0,184,169,0.08) 100%);
    box-shadow: 0 10px 40px rgba(0, 184, 169, 0.15);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
    box-shadow: 0 20px 56px rgba(0, 184, 169, 0.22);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--cvify-teal);
    color: white;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.pricing-name {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.pricing-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    min-height: 20px;
}

.pricing-price {
    margin-bottom: 16px;
}

.price-amount {
    font-family: 'Poppins', sans-serif;
    font-size: 44px;
    font-weight: 700;
    color: var(--text-primary);
}

.price-period {
    font-size: 15px;
    color: var(--text-muted);
}

/* Credit badge pill */
.pricing-credits {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 184, 169, 0.1);
    color: var(--cvify-teal);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.pricing-credits svg {
    width: 16px;
    height: 16px;
}

.pricing-credits--free {
    background: #f3f4f6;
    color: var(--text-muted);
}

/* Capacity block — "What you can do" */
.pricing-capacity {
    background: #f9fafb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.pricing-capacity-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.pricing-capacity-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.capacity-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.capacity-number {
    font-weight: 700;
    color: var(--text-primary);
    min-width: 30px;
    font-size: 15px;
}

.capacity-label {
    font-size: 13px;
}

.capacity-example {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed #e5e7eb;
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.5;
}

/* Divider between capacity and features */
.pricing-divider {
    height: 1px;
    background: #e5e7eb;
    margin-bottom: 16px;
}

/* Feature list with ✓/✗ */
.pricing-features {
    list-style: none;
    margin-bottom: 24px;
    flex: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.pricing-features li svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.pricing-features li.included svg {
    color: var(--cvify-teal);
}

.pricing-features li.excluded {
    opacity: 0.5;
    text-decoration: line-through;
    color: var(--text-muted);
}

.pricing-features li.excluded svg {
    color: #d1d5db;
}

.feature-note {
    font-size: 11px;
    color: var(--text-muted);
    font-style: italic;
}

/* CTA button pushed to bottom via flexbox */
.pricing-btn {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: auto;
}

/* ---- Comparison table ---- */
.pricing-comparison {
    margin-top: 60px;
    text-align: center;
}

.pricing-comparison h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.pricing-comparison > p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.comparison-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 14px;
    min-width: 680px;
}

.comparison-table thead th {
    background: #f9fafb;
    padding: 14px 16px;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid #e5e7eb;
    text-align: center;
    font-size: 13px;
}

.comparison-table thead th:first-child {
    text-align: left;
}

.comparison-table tbody td {
    padding: 12px 16px;
    text-align: center;
    border-bottom: 1px solid #f3f4f6;
    color: var(--text-secondary);
}

.comparison-table tbody td:first-child {
    text-align: left;
    font-weight: 500;
    color: var(--text-primary);
}

.comparison-table tbody tr:hover {
    background: #fafbfc;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

/* Pro column highlight */
.comparison-table .featured-col {
    background: rgba(0, 184, 169, 0.05);
}

.comparison-table thead .featured-col {
    background: rgba(0, 184, 169, 0.1);
    color: var(--cvify-teal);
}

.service-cost {
    font-size: 12px;
    color: var(--text-muted) !important;
    white-space: nowrap;
}

.check-icon {
    color: var(--cvify-teal);
    font-weight: 700;
    font-size: 16px;
}

.x-icon {
    color: #d1d5db;
    font-size: 16px;
}

.comparison-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 16px;
    font-style: italic;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--cvify-teal) 0%, var(--cvify-teal-dark) 100%);
    padding: 80px 60px;
    text-align: center;
    margin: 60px;
    border-radius: 30px;
}

.cta-title {
    font-family: 'Poppins', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

.cta-btn {
    padding: 18px 48px;
    background: white;
    color: var(--cvify-teal);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Footer */
.landing-footer {
    background: #1a1a2e;
    color: white;
    padding: 60px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 60px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo img {
    height: 40px;
    filter: brightness(0) invert(1);
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: var(--cvify-teal-light);
}

.footer-bottom {
    max-width: 1400px;
    margin: 40px auto 0;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* Magic Link Button */
/* Magic Link button — small icon in nav (dev tool) */
.magic-link-nav-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--motion-fast), box-shadow var(--motion-fast);
    opacity: 0.7;
}
.magic-link-nav-btn:hover {
    transform: scale(1.1);
    opacity: 1;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4);
}

/* Hide app when not logged in */
.app-content {
    display: none;
}

.app-content.visible {
    display: flex;
}

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

/* Responsive */
@media (max-width: 1024px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 140px 30px 60px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        max-width: 100%;
    }

    .steps-container {
        flex-direction: column;
        align-items: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: none;
    }
}

@media (max-width: 1200px) {
    .pricing-grid {
        flex-wrap: wrap;
        gap: 20px;
    }
    .pricing-card {
        flex: 0 1 calc(50% - 12px);
        max-width: calc(50% - 12px);
        min-width: 260px;
    }
    .pricing-card.featured {
        transform: none;
    }
    .pricing-card.featured:hover {
        transform: translateY(-8px);
    }
}
@media (max-width: 768px) {
    .pricing-grid {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .pricing-card {
        flex: none;
        min-width: 100%;
        max-width: 380px;
        width: 100%;
    }
    .pricing-card.featured {
        transform: none;
    }
    .pricing-card.featured:hover {
        transform: translateY(-8px);
    }
    .comparison-table-wrapper {
        margin: 0 -16px;
        border-radius: 0;
    }
    .comparison-table {
        font-size: 13px;
    }
}
@media (max-width: 480px) {
    .pricing-card {
        padding: 28px 20px 24px;
    }
    .price-amount {
        font-size: 36px;
    }
    .pricing-name {
        font-size: 20px;
    }
    .pricing-comparison h3 {
        font-size: 18px;
    }
    .comparison-table {
        font-size: 12px;
    }
    .comparison-table thead th,
    .comparison-table tbody td {
        padding: 10px 8px;
    }
}

@media (max-width: 768px) {
    /* === MOBILE LANDING HEADER === */
    .landing-header {
        padding: 12px 20px;
    }
    .landing-header .logo img {
        height: 36px;
    }
    .landing-nav {
        display: none;
    }
    .landing-nav-buttons {
        display: none;
    }
    .landing-hamburger {
        display: flex;
    }
    /* Landing mobile dropdown menu */
    .landing-mobile-menu.visible {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid rgba(0,0,0,0.05);
        box-shadow: 0 10px 40px rgba(0,0,0,0.1);
        padding: 16px 20px;
        gap: 4px;
        z-index: 101;
    }
    .landing-mobile-menu.visible a {
        padding: 10px 0;
        color: var(--text-primary);
        text-decoration: none;
        font-size: 15px;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    .landing-mobile-menu-buttons {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: 12px;
    }
    .landing-mobile-menu-buttons .btn-outline,
    .landing-mobile-menu-buttons .btn-primary-landing {
        width: 100%;
        text-align: center;
    }

    .hero-title {
        font-size: 36px;
    }

    .section {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 28px;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-links {
        flex-wrap: wrap;
    }
}

.tagline {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 400;
    text-align: center;
    margin-top: 8px;
}

/* Main content */
main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 10px 24px 60px;
}

/* ============= DASHBOARD STYLES ============= */
.dashboard-container {
    width: 100%;
    max-width: 1100px;
    padding: 20px;
}

.dashboard-title {
    font-family: 'Poppins', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 28px;
}
.dashboard-title-light {
    font-weight: 400;
    color: var(--text-secondary);
}
.dashboard-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 32px;
}

.dashboard-steps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 18px;
    align-items: stretch;
}

@media (max-width: 900px) {
    .dashboard-steps-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 600px) {
    .dashboard-steps-grid {
        grid-template-columns: 1fr;
    }
    .dashboard-quick-access {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
    .dashboard-quick-access .qa-item { min-width: unset; }
    .dashboard-quick-access .qa-divider { display: none; }
}

/* Step cards - glass effect */
.dashboard-step-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 18px;
    padding: 24px;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: opacity var(--motion-slow) var(--ease-out), filter var(--motion-slow) var(--ease-out), border-color var(--motion-slow) var(--ease-out), box-shadow var(--motion-slow) var(--ease-out);
    display: flex;
    flex-direction: column;
}
.dashboard-step-card .step-block {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.dashboard-step-card .step-block .step-desc {
    flex: 1;
}

/* Card states */
.dashboard-step-card--active {
    border-color: rgba(0, 184, 169, 0.18);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 0 0 3px rgba(0, 184, 169, 0.07);
}
.dashboard-step-card--locked {
    opacity: 0.5;
    filter: grayscale(0.3);
    pointer-events: none;
    user-select: none;
}
.dashboard-step-card--locked .step-header .step-title {
    color: var(--text-muted);
}
.dashboard-step-card--locked .step-desc {
    color: var(--text-muted);
}
.dashboard-step-card--completed {
    border-color: rgba(255, 255, 255, 0.85);
}

.step-block {
    margin-bottom: 0;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    justify-content: flex-start;
}

.step-header .step-number {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: var(--cvify-teal);
    color: white;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0;
    transition: background var(--motion-slow) var(--ease-out), transform var(--motion-base) var(--ease-out);
}
.step-number--completed {
    background: rgba(0, 184, 169, 0.45) !important;
}
.step-number--completed .step-number-check { display: flex !important; }
.step-number--completed .step-number-text { display: none !important; }
.step-number--locked {
    background: #d1d5db !important;
}
.step-number-check {
    display: none;
    align-items: center;
    justify-content: center;
}
.step-number-check svg {
    width: 16px;
    height: 16px;
}

.step-header .step-title {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.dashboard-step-card--completed .step-header .step-title {
    color: var(--text-secondary);
}
.step-edit-link {
    margin-left: auto;
    color: rgba(0, 184, 169, 0.65);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: color var(--motion-base) var(--ease-out);
}
.step-edit-link:hover {
    color: var(--cvify-teal);
    text-decoration: underline;
}
.step-edit-link:focus-visible {
    outline: 2px solid rgba(0, 184, 169, 0.4);
    outline-offset: 2px;
    border-radius: 3px;
}

.step-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 14px;
}
.dashboard-step-card--completed .step-desc {
    color: var(--text-muted);
}

/* Completed badge — soft, calm, non-dominant */
.step-completed-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(0, 184, 169, 0.08);
    color: rgba(0, 139, 125, 0.7);
}
.step-completed-badge svg {
    width: 16px;
    height: 16px;
    opacity: 0.65;
}

/* Locked microcopy */
.step-locked-msg {
    font-size: 12px;
    color: #9ca3af;
    font-style: italic;
    line-height: 1.5;
    margin-top: 4px;
}

/* Primary CTA button */
.btn-step-action {
    display: block;
    width: 100%;
    background: var(--cvify-teal);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background var(--motion-base) var(--ease-out), transform var(--motion-fast) var(--ease-out), box-shadow var(--motion-fast) var(--ease-out);
    text-align: center;
    box-sizing: border-box;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 184, 169, 0.2);
}
.btn-step-action:hover {
    background: var(--cvify-teal-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 184, 169, 0.3);
}
.btn-step-action:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 184, 169, 0.35), 0 2px 8px rgba(0, 184, 169, 0.2);
}
.btn-step-action:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 184, 169, 0.15);
    transition-duration: 60ms;
}

/* Secondary CTA button — subordinate to primary */
.btn-step-secondary {
    display: block;
    width: 100%;
    background: transparent;
    color: rgba(0, 184, 169, 0.7);
    border: 1.5px solid rgba(0, 184, 169, 0.35);
    padding: 9px 22px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--motion-base) var(--ease-out), color var(--motion-base) var(--ease-out), border-color var(--motion-base) var(--ease-out);
    text-align: center;
    box-sizing: border-box;
}
.btn-step-secondary:hover {
    background: rgba(0, 184, 169, 0.06);
    color: var(--cvify-teal);
    border-color: var(--cvify-teal);
}
.btn-step-secondary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 184, 169, 0.2);
}
.btn-step-secondary:active {
    background: rgba(0, 184, 169, 0.1);
    transition-duration: 60ms;
}

.step-note {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 12px;
    line-height: 1.5;
}
.step-note a, .step-link {
    color: var(--cvify-teal);
    text-decoration: underline;
    cursor: pointer;
    font-weight: 500;
}

/* Quick access — secondary utility links */
.dashboard-quick-access {
    margin-top: 20px;
    padding: 8px 4px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.quick-access-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0;
    flex-shrink: 0;
}
.quick-access-header svg {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
}
.quick-access-header span {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.qa-divider {
    width: 1px;
    height: 20px;
    background: rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}
.qa-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    cursor: pointer;
    border-bottom: none;
    border-radius: 8px;
    transition: background var(--motion-base) var(--ease-out);
}
.qa-item:hover {
    background: rgba(0, 184, 169, 0.06);
}
.qa-item:focus-visible {
    outline: 2px solid rgba(0, 184, 169, 0.35);
    outline-offset: -1px;
}
.qa-item:active {
    background: rgba(0, 184, 169, 0.1);
    transition-duration: 60ms;
}
.qa-item:hover .qa-title {
    color: var(--cvify-teal);
}
.qa-item:hover .qa-icon {
    background: rgba(0, 184, 169, 0.16);
}
.qa-item:hover .qa-icon svg {
    color: var(--cvify-teal);
}
.qa-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(0, 184, 169, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background var(--motion-base) var(--ease-out);
}
.qa-icon svg {
    width: 14px;
    height: 14px;
    color: rgba(0, 184, 169, 0.6);
    transition: color var(--motion-base) var(--ease-out);
}
.qa-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--motion-base) var(--ease-out);
}
.qa-sub {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 1px;
}

/* ============= DASHBOARD MICRO-ANIMATIONS ============= */
/*
 * Motion pattern directory:
 *   Progress (entry/appear) → translateY(up) + fade    = dashFadeIn
 *   Completion (done)       → scale(up) + fade         = checkPop
 *   Navigation (sections)   → fade only (via dashFadeIn with minimal Y)
 *
 * Token usage:
 *   --motion-fast (150ms)  → press feedback, instant hover
 *   --motion-base (200ms)  → completion, badges, element transitions
 *   --motion-slow (240ms)  → entry, state transitions, border/glow
 *   --ease-standard        → entry, navigation (smooth deceleration)
 *   --ease-out             → completion, micro-interactions
 */

/* Progress: upward motion = forward momentum */
@keyframes dashFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Completion: scale reveal = something resolved */
@keyframes checkPop {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
/* Completion: subtle upward slide = new info settling */
@keyframes badgeSlideIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Entry animation — staggered children (progress pattern) */
.dash-animate-in .dashboard-title {
    animation: dashFadeIn var(--motion-slow) var(--ease-standard) both;
}
.dash-animate-in .dashboard-subtitle {
    animation: dashFadeIn var(--motion-slow) var(--ease-standard) 30ms both;
}
.dash-animate-in .dashboard-step-card:nth-child(1) {
    animation: dashFadeIn var(--motion-slow) var(--ease-standard) 60ms both;
}
.dash-animate-in .dashboard-step-card:nth-child(2) {
    animation: dashFadeIn var(--motion-slow) var(--ease-standard) 100ms both;
}
.dash-animate-in .dashboard-step-card:nth-child(3) {
    animation: dashFadeIn var(--motion-slow) var(--ease-standard) 140ms both;
}
.dash-animate-in .dashboard-quick-access {
    animation: dashFadeIn var(--motion-slow) var(--ease-standard) 180ms both;
}

/* Completion: check icon pop-in */
.step-number--completed .step-number-check {
    animation: checkPop var(--motion-base) var(--ease-out);
}

/* Completion: badge / element slide-in */
.dash-slide-in {
    animation: badgeSlideIn var(--motion-base) var(--ease-out) both;
}

/* Navigation: section fade-in (lighter Y shift) */
.dash-section-enter {
    animation: dashFadeIn var(--motion-base) var(--ease-standard) both;
}

/* Safety: animations never block interaction.
   Scoped to non-locked cards only — .dashboard-step-card--locked
   intentionally uses pointer-events:none and must not be overridden. */
.dash-animate-in .dashboard-step-card:not(.dashboard-step-card--locked),
.dash-animate-in .dashboard-quick-access,
.dash-slide-in,
.dash-section-enter {
    pointer-events: auto !important;
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Profile Section Styles */
.profile-section {
    width: 100%;
    max-width: 600px;
}

.profile-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.profile-header {
    text-align: center;
    margin-bottom: 32px;
}

.profile-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.profile-header p {
    font-size: 14px;
    color: var(--text-secondary);
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-field {
    display: flex;
    flex-direction: column;
}

.profile-field input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.8);
}

.profile-field input:focus {
    outline: none;
    border-color: var(--cvify-teal);
    box-shadow: 0 0 0 3px rgba(0, 184, 169, 0.15);
}

.profile-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.profile-actions .btn {
    flex: 1;
}

.profile-note {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    margin-top: 8px;
}

/* ── Profile Photo ── */
.profile-photo-section {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}
.profile-photo-preview {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 2px dashed var(--border-color);
    margin: 0 auto 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(0,0,0,0.02);
    transition: border-color 0.2s;
}
.profile-photo-preview:hover {
    border-color: var(--accent);
}
.profile-photo-preview.has-photo {
    border-style: solid;
    border-color: var(--accent);
}
.profile-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.profile-photo-placeholder {
    font-size: 36px;
    color: var(--text-muted);
    user-select: none;
}
.profile-photo-controls {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}
.btn-small {
    padding: 6px 14px !important;
    font-size: 12px !important;
    min-width: auto !important;
}
.btn-danger {
    background: #e74c3c !important;
    color: #fff !important;
    border: none !important;
}
.btn-danger:hover {
    background: #c0392b !important;
}
.profile-photo-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-primary);
}
/* ── Photo toggle toolbar (above CV preview) ── */
.cv-photo-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}
.cv-photo-toolbar-toggle {
    position: relative;
    width: 32px;
    height: 18px;
    display: inline-block;
    flex-shrink: 0;
}
.cv-photo-toolbar-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-slider-sm {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    border-radius: 9px;
    transition: 0.25s;
}
.toggle-slider-sm::before {
    content: "";
    position: absolute;
    height: 14px;
    width: 14px;
    left: 2px;
    bottom: 2px;
    background-color: #fff;
    border-radius: 50%;
    transition: 0.25s;
}
.cv-photo-toolbar-toggle input:checked + .toggle-slider-sm {
    background-color: #00b8a9;
}
.cv-photo-toolbar-toggle input:checked + .toggle-slider-sm::before {
    transform: translateX(14px);
}
.cv-photo-toolbar-label {
    font-size: 12px;
    color: #666;
    user-select: none;
    white-space: nowrap;
}
/* Toggle switch */
.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    display: inline-block;
    flex-shrink: 0;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}
.toggle-slider:before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    transition: 0.3s;
    border-radius: 50%;
}
.toggle-switch input:checked + .toggle-slider {
    background-color: var(--accent);
}
.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
}
/* ── Crop Modal ── */
.crop-container {
    width: 300px;
    height: 300px;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent);
    position: relative;
}
#cropCanvas {
    cursor: grab;
    display: block;
}
#cropCanvas:active {
    cursor: grabbing;
}
.crop-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}
.crop-controls label {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
}
.crop-controls input[type="range"] {
    width: 180px;
    accent-color: var(--accent);
}
.crop-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

/* Mis CVs Section */
.my-cvs-section {
    width: 100%;
    max-width: 800px;
}

.my-cvs-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.my-cvs-empty {
    padding: 40px 20px;
}

.my-cvs-empty svg {
    width: 80px;
    height: 80px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.my-cvs-empty h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.my-cvs-empty p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.my-cvs-list { display: grid; grid-template-columns: 1fr; gap: 14px; text-align: left; }
.my-cv-item { display: flex; align-items: center; justify-content: space-between; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 14px; padding: 18px 20px; transition: all 0.2s ease; }
.my-cv-item:hover { border-color: #b0b8c1; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.my-cv-item-info { flex: 1; min-width: 0; }
.my-cv-item-title { font-size: 15px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.my-cv-item-company { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.my-cv-item-date { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.my-cv-item-badges { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.my-cv-item-badge { font-size: 10px; padding: 2px 7px; border-radius: 5px; background: rgba(0,184,169,0.1); color: var(--cvify-teal); font-weight: 500; }
.my-cv-item-actions { display: flex; gap: 8px; margin-left: 16px; flex-shrink: 0; }
.my-cv-item-actions .btn { padding: 8px 14px; font-size: 13px; }

/* Header Credits Badge */
.header-credits { display:flex; align-items:center; gap:6px; cursor:pointer; padding:6px 14px;
  border-radius:10px; background:rgba(0,184,169,0.08); border:1px solid rgba(0,184,169,0.15);
  transition:all 0.2s; margin-right:8px; }
.header-credits:hover { background:rgba(0,184,169,0.15); }
.header-credits-icon { width:20px; height:20px; color:var(--cvify-teal); }
.header-credits-number { font-family:'Poppins',sans-serif; font-size:18px; font-weight:700;
  color:var(--cvify-teal); line-height:1; }
.header-credits-label { font-size:11px; color:var(--text-muted); }

/* Candidaturas Section */
.candidaturas-section { max-width:900px; margin:0 auto; width:100%; }
.candidaturas-card { background:rgba(255,255,255,0.7); backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px);
  border-radius:24px; padding:32px 40px; border:2px solid rgba(255,255,255,0.8); box-shadow:0 8px 32px rgba(0,0,0,0.08); }
.candidaturas-card h2 { font-family:'Poppins',sans-serif; margin-bottom:4px; }
.candidaturas-card .iv-back-link { display:inline-block; margin-bottom:16px; }
/* List item */
.candidatura-item { display:flex; align-items:center; gap:16px; padding:18px 22px; border:none;
  border-radius:16px; margin-bottom:12px; cursor:pointer; transition:all 0.25s ease;
  background:#fff; border:1px solid rgba(0,0,0,0.04); box-shadow:0 2px 8px rgba(0,0,0,0.04); position:relative; overflow:hidden; }
.candidatura-item:hover { background:#fff; box-shadow:0 8px 24px rgba(0,184,169,0.12); transform:translateY(-2px); border-color:rgba(0,184,169,0.15); }
.candidatura-item:active { transform:translateY(0); box-shadow:0 4px 12px rgba(0,184,169,0.10); }
/* Circle avatar with gradient */
.candidatura-item-avatar { width:46px; height:46px; border-radius:14px; background:linear-gradient(135deg, var(--cvify-teal), var(--cvify-teal-dark));
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
  font-family:'Poppins',sans-serif; font-size:13px; font-weight:700; color:#fff; letter-spacing:0.5px; text-transform:uppercase;
  box-shadow:0 4px 12px rgba(0,184,169,0.25); }
.candidatura-item-info { flex:1; min-width:0; }
.candidatura-item-title { font-size:15px; font-weight:600; color:var(--text-primary); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.candidatura-item-company { font-size:13px; color:var(--text-secondary); margin-top:2px; }
/* Progress bar (mini) in list item */
.candidatura-item-progress { display:flex; align-items:center; gap:8px; margin-top:8px; }
.candidatura-progress-bar { flex:1; height:5px; background:rgba(0,0,0,0.06); border-radius:10px; overflow:hidden; max-width:140px; }
.candidatura-progress-fill { height:100%; border-radius:10px; background:linear-gradient(90deg, var(--cvify-teal), var(--cvify-teal-dark)); transition:width 0.5s ease; }
.candidatura-progress-fill--complete { background:linear-gradient(90deg, #10b981, #059669); }
.candidatura-progress-text { font-size:11px; color:var(--text-muted); font-weight:500; white-space:nowrap; }
/* Pill badges */
.candidatura-item-badges { display:flex; gap:5px; margin-top:6px; flex-wrap:wrap; }
.candidatura-badge { font-size:10px; padding:2px 8px; border-radius:20px; font-weight:600;
  display:inline-flex; align-items:center; gap:3px; letter-spacing:0.2px; }
.candidatura-badge.badge-cv { background:rgba(0,184,169,0.12); color:var(--cvify-teal); }
.candidatura-badge.badge-carta { background:rgba(16,185,129,0.10); color:#059669; }
.candidatura-badge.badge-questions { background:rgba(52,211,153,0.12); color:#047857; }
.candidatura-badge.badge-questionnaire { background:rgba(110,231,183,0.12); color:#065f46; }
.candidatura-badge.badge-call { background:rgba(139,92,246,0.10); color:#7c3aed; }
.candidatura-badge.badge-report { background:rgba(59,130,246,0.10); color:#2563eb; }
.candidatura-badge.badge-techreport { background:rgba(124,58,237,0.12); color:var(--cvify-purple); }
.candidatura-item-chevron { color:var(--text-muted); flex-shrink:0; transition:transform 0.2s ease; }
.candidatura-item-chevron svg { width:20px; height:20px; }
.candidatura-item:hover .candidatura-item-chevron { color:var(--cvify-teal); transform:translateX(2px); }

/* ── Detail header banner ── */
.cand-detail-banner { background:linear-gradient(135deg, rgba(0,184,169,0.08) 0%, rgba(124,58,237,0.06) 100%);
  border-radius:18px; padding:22px 24px; margin-bottom:20px; border:1px solid rgba(0,184,169,0.10);
  position:relative; overflow:hidden; }
.cand-detail-banner::before { content:''; position:absolute; top:-40px; right:-40px; width:140px; height:140px;
  background:radial-gradient(circle, rgba(0,184,169,0.08) 0%, transparent 70%); pointer-events:none; }
.cand-detail-banner::after { content:''; position:absolute; bottom:-30px; left:-30px; width:100px; height:100px;
  background:radial-gradient(circle, rgba(124,58,237,0.06) 0%, transparent 70%); pointer-events:none; }
.cand-banner-top { display:flex; align-items:center; justify-content:space-between; gap:16px; position:relative; z-index:1; }
.cand-banner-info { flex:1; min-width:0; }
.cand-banner-title { font-family:'Poppins',sans-serif; font-size:18px; font-weight:700; color:var(--text-primary);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-bottom:2px; }
.cand-banner-company { font-size:13px; color:var(--text-secondary); }
.cand-banner-avatar { width:50px; height:50px; border-radius:14px; background:linear-gradient(135deg, var(--cvify-teal), var(--cvify-teal-dark));
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
  font-family:'Poppins',sans-serif; font-size:15px; font-weight:700; color:#fff; letter-spacing:0.5px; text-transform:uppercase;
  box-shadow:0 4px 14px rgba(0,184,169,0.25); }
.cand-banner-progress { margin-top:16px; position:relative; }
.cand-banner-progress-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; }
.cand-banner-progress-label { font-size:12px; font-weight:600; color:var(--text-secondary); }
.cand-banner-progress-count { font-size:12px; font-weight:700; color:var(--cvify-teal); }
.cand-banner-bar { width:100%; height:7px; background:rgba(0,0,0,0.06); border-radius:10px; overflow:hidden; }
.cand-banner-bar-fill { height:100%; border-radius:10px; background:linear-gradient(90deg, var(--cvify-teal), var(--cvify-purple-light)); transition:width 0.6s ease; }
.cand-banner-bar-fill--complete { background:linear-gradient(90deg, #10b981, #059669); }
.cand-banner-steps { display:flex; gap:5px; margin-top:10px; }
.cand-banner-step { flex:1; height:4px; border-radius:4px; background:rgba(0,0,0,0.06); transition:background 0.3s ease; }
.cand-banner-step--done { background:var(--cvify-teal); }
.cand-banner-step--done-purple { background:var(--cvify-purple); }
/* Detail: resource rows */
.resource-row { display:flex; align-items:center; gap:14px; padding:14px 16px;
  border-bottom:1px solid #f3f4f6; }
.resource-row:last-child { border-bottom:none; }
.resource-row-type { width:38px; height:26px; border-radius:6px; display:flex; align-items:center; justify-content:center;
  font-size:11px; font-weight:700; color:#fff; flex-shrink:0; letter-spacing:0.3px; }
.resource-row-type.type-cv { background:var(--cvify-teal); }
.resource-row-type.type-carta { background:var(--cvify-teal); opacity:0.85; }
.resource-row-type.type-questions { background:var(--cvify-teal); opacity:0.7; }
.resource-row-type.type-questionnaire { background:var(--cvify-teal); opacity:0.55; }
.resource-row-type.type-call { background:var(--cvify-teal); opacity:0.4; }
.resource-row-type.type-report { background:#3b82f6; }
.resource-row-info { flex:1; min-width:0; }
.resource-row-name { font-size:14px; font-weight:500; color:var(--text-primary); }
.resource-row-date { font-size:12px; color:var(--text-muted); }
.resource-row-actions { display:flex; gap:6px; }
.resource-action-btn { background:#f3f4f6; border:none; border-radius:20px;
  padding:6px 14px; cursor:pointer; font-size:12px; font-weight:500; color:var(--text-primary);
  transition:all 0.2s; white-space:nowrap; }
.resource-action-btn:hover { background:rgba(0,184,169,0.12); color:var(--cvify-teal); }

/* ========================================
   Candidatura Detail v2: Section-based
   ======================================== */
.cand-section { background:#fff; border-radius:16px; padding:20px 22px; margin-bottom:16px; box-shadow:0 2px 12px rgba(0,0,0,0.04); border:1px solid rgba(0,0,0,0.04); }
.cand-section--interview { background:#fff; border:1px solid rgba(0,0,0,0.04); padding:24px 22px; }
.cand-section-title { font-family:'Poppins',sans-serif; font-size:15px; font-weight:600; color:var(--text-primary); margin-bottom:14px; display:flex; align-items:center; gap:8px; }
.cand-section-title::before { content:''; display:inline-block; width:8px; height:8px; border-radius:50%; background:var(--cvify-teal); flex-shrink:0; }
.cand-section--interview .cand-section-title::before { background:var(--cvify-purple); }
.cand-section-subtitle { font-size:13px; color:var(--text-secondary); margin-top:-8px; margin-bottom:16px; line-height:1.5; font-style:italic; }

.cand-item { display:flex; align-items:center; gap:14px; padding:12px 14px; background:#f8f9fa; border-radius:12px; margin-bottom:8px; transition:all var(--motion-fast) var(--ease-standard); }
.cand-item:last-child { margin-bottom:0; }
.cand-item:hover { box-shadow:0 4px 16px rgba(0,0,0,0.06); transform:translateY(-1px); }
.cand-item--aicall { background:linear-gradient(135deg, rgba(124,58,237,0.08) 0%, rgba(124,58,237,0.03) 100%); border:1.5px solid rgba(124,58,237,0.25); border-radius:14px; padding:18px; flex-direction:column; align-items:flex-start; gap:10px; box-shadow:0 4px 20px rgba(124,58,237,0.10); }
.cand-item--aicall:hover { box-shadow:0 8px 28px rgba(124,58,237,0.18); transform:translateY(-2px); }

.cand-item-icon { width:40px; height:40px; border-radius:12px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.cand-item-icon svg { width:20px; height:20px; stroke:#fff; fill:none; }
/* Section 1: soft teal tinted icons */
.cand-item-icon--cv { background:rgba(0,184,169,0.12); }
.cand-item-icon--cv svg { stroke:var(--cvify-teal); }
.cand-item-icon--carta { background:rgba(0,184,169,0.10); }
.cand-item-icon--carta svg { stroke:var(--cvify-teal-dark); }
/* Section 2: soft blue tinted icon */
.cand-item-icon--report { background:rgba(59,130,246,0.12); }
.cand-item-icon--report svg { stroke:#3b82f6; }
/* Section 3: soft purple tinted icons */
.cand-item-icon--questions { background:rgba(124,58,237,0.10); }
.cand-item-icon--questions svg { stroke:var(--cvify-purple); }
.cand-item-icon--questionnaire { background:rgba(139,92,246,0.10); }
.cand-item-icon--questionnaire svg { stroke:var(--cvify-purple-light); }
.cand-item-icon--techreport { background:rgba(109,40,217,0.10); }
.cand-item-icon--techreport svg { stroke:var(--cvify-purple-dark); }
/* AI Call icon: solid purple — the hero */
.cand-item-icon--aicall { background:var(--cvify-purple); width:44px; height:44px; position:relative; }
.cand-item-icon--aicall svg { stroke:#fff; }
.cand-item-icon--aicall::after { content:'✦'; position:absolute; top:-3px; right:-3px; font-size:10px; color:var(--cvify-purple); }

.cand-item-info { flex:1; min-width:0; }
.cand-item-name { font-size:14px; font-weight:600; color:var(--text-primary); display:flex; align-items:center; gap:6px; }
.cand-item-desc { font-size:12px; color:var(--text-secondary); margin-top:2px; line-height:1.4; }

/* Info tooltip button */
.cand-info-btn {
    display:inline-flex; align-items:center; justify-content:center;
    width:16px; height:16px; border-radius:50%; flex-shrink:0;
    background:rgba(0,0,0,0.06); border:none; cursor:pointer;
    font-size:10px; font-weight:700; color:var(--text-muted);
    transition:all var(--motion-fast) var(--ease-standard);
    position:relative; padding:0; line-height:1;
}
.cand-info-btn:hover {
    background:rgba(0,184,169,0.15); color:var(--cvify-teal);
}
.cand-info-tooltip {
    position:absolute; bottom:calc(100% + 10px); left:0; transform:translateY(4px);
    width:280px; padding:14px 16px;
    background:rgba(255,255,255,0.88); backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px);
    border:1px solid rgba(255,255,255,0.7);
    border-radius:14px;
    box-shadow:0 8px 32px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.06);
    font-size:12px; font-weight:400; line-height:1.55; color:var(--text-secondary);
    opacity:0; visibility:hidden;
    transition:all var(--motion-base) var(--ease-standard);
    z-index:100; pointer-events:none;
    text-align:left;
}
.cand-info-tooltip::after {
    content:''; position:absolute; top:100%; left:12px;
    border:6px solid transparent; border-top-color:rgba(255,255,255,0.88);
}
.cand-info-btn:hover .cand-info-tooltip,
.cand-info-btn.active .cand-info-tooltip {
    opacity:1; visibility:visible; transform:translateY(0);
    pointer-events:auto;
}
.cand-info-tooltip strong {
    display:block; font-size:13px; font-weight:600; color:var(--text-primary); margin-bottom:4px;
}

/* Info overlay (mobile tap modal) */
.cand-info-overlay {
    position:fixed; top:0; left:0; right:0; bottom:0; z-index:10000;
    display:flex; align-items:center; justify-content:center;
    background:rgba(0,0,0,0); padding:24px;
    transition:background 0.25s ease;
}
.cand-info-overlay.visible { background:rgba(0,0,0,0.3); }
.cand-info-overlay-card {
    background:rgba(255,255,255,0.94); backdrop-filter:blur(24px); -webkit-backdrop-filter:blur(24px);
    border:1px solid rgba(255,255,255,0.7);
    border-radius:18px; padding:22px 24px;
    box-shadow:0 16px 48px rgba(0,0,0,0.14), 0 4px 12px rgba(0,0,0,0.06);
    max-width:340px; width:100%;
    font-size:13px; line-height:1.6; color:var(--text-secondary);
    transform:scale(0.92); opacity:0;
    transition:all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cand-info-overlay.visible .cand-info-overlay-card { transform:scale(1); opacity:1; }
.cand-info-overlay-card strong {
    display:block; font-size:15px; font-weight:600; color:var(--text-primary); margin-bottom:6px;
}

.cand-status { display:none; }
.cand-status--ready { background:rgba(16,185,129,0.12); color:#059669; }
.cand-status--pending { background:rgba(107,114,128,0.08); color:var(--text-muted); }
.cand-item--aicall .cand-status { display:inline-block; font-size:12px; font-weight:500; padding:4px 10px; border-radius:20px; white-space:nowrap; }

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

.cand-dropdown-wrap { position:relative; display:inline-block; }
.cand-dropdown-btn { background:#f3f4f6; border:1px solid #e5e7eb; border-radius:20px; padding:7px 16px; cursor:pointer; font-size:13px; font-weight:500; color:var(--text-primary); display:inline-flex; align-items:center; gap:6px; transition:all var(--motion-fast) var(--ease-standard); white-space:nowrap; min-width:88px; justify-content:center; }
.cand-dropdown-btn:hover { background:rgba(0,184,169,0.08); border-color:rgba(0,184,169,0.3); color:var(--cvify-teal); }
.cand-dropdown-btn svg.cand-chevron { width:14px; height:14px; transition:transform var(--motion-fast) var(--ease-standard); }
.cand-dropdown-wrap.open .cand-dropdown-btn svg.cand-chevron { transform:rotate(180deg); }

.cand-dropdown-menu { position:absolute; top:calc(100% + 4px); right:0; background:#fff; border-radius:10px; box-shadow:0 8px 24px rgba(0,0,0,0.12); border:1px solid #e5e7eb; min-width:160px; z-index:50; opacity:0; visibility:hidden; transform:translateY(-6px); transition:all var(--motion-base) var(--ease-standard); padding:4px 0; }
.cand-dropdown-wrap.open .cand-dropdown-menu { opacity:1; visibility:visible; transform:translateY(0); }
.cand-dropdown-option { display:flex; align-items:center; gap:10px; padding:9px 14px; font-size:13px; color:var(--text-primary); cursor:pointer; transition:background var(--motion-fast); white-space:nowrap; }
.cand-dropdown-option:hover { background:rgba(0,184,169,0.06); }
.cand-dropdown-option svg { width:16px; height:16px; color:var(--text-secondary); flex-shrink:0; stroke:currentColor; fill:none; }

.cand-gen-btn { background:var(--cvify-teal); color:#fff; border:none; border-radius:20px; padding:7px 18px; font-size:13px; font-weight:500; cursor:pointer; transition:all var(--motion-fast) var(--ease-standard); white-space:nowrap; min-width:88px; text-align:center; }
.cand-gen-btn:hover { background:var(--cvify-teal-dark); transform:translateY(-1px); box-shadow:0 3px 10px rgba(0,184,169,0.25); }

.cand-aicall-header { display:flex; align-items:center; gap:14px; width:100%; }
.cand-aicall-cta { background:linear-gradient(135deg, var(--cvify-purple) 0%, var(--cvify-purple-dark) 100%); color:#fff; border:none; border-radius:12px; padding:12px 30px; font-size:14px; font-weight:600; cursor:pointer; display:inline-flex; align-items:center; gap:8px; transition:all var(--motion-fast) var(--ease-standard); box-shadow:0 4px 14px rgba(124,58,237,0.25); }
.cand-aicall-cta:hover { background:linear-gradient(135deg, var(--cvify-purple-dark) 0%, #5b21b6 100%); box-shadow:0 6px 20px rgba(124,58,237,0.35); transform:translateY(-1px); }
.cand-aicall-links { display:flex; gap:16px; align-items:center; }
.cand-aicall-links a { font-size:13px; color:var(--cvify-purple); text-decoration:none; cursor:pointer; font-weight:500; }
.cand-aicall-links a:hover { text-decoration:underline; }
.cand-aicall-links .separator { color:var(--text-muted); font-size:13px; }

/* Purple-scoped buttons inside interview section — soft outline, don't compete with AI call hero */
.cand-section--interview .cand-gen-btn { background:rgba(124,58,237,0.06); color:var(--cvify-purple); border:1.5px solid rgba(124,58,237,0.25); }
.cand-section--interview .cand-gen-btn:hover { background:rgba(124,58,237,0.14); border-color:var(--cvify-purple); box-shadow:0 3px 10px rgba(124,58,237,0.15); }
.cand-section--interview .cand-dropdown-btn:hover { background:rgba(124,58,237,0.08); border-color:rgba(124,58,237,0.3); color:var(--cvify-purple); }
.cand-section--interview .cand-dropdown-option:hover { background:rgba(124,58,237,0.06); }

.cand-delete-zone { margin-top:28px; padding-top:18px; border-top:1px solid #f3f4f6; text-align:right; }

@media (max-width:600px) {
    /* ── Card container ── */
    .candidaturas-card { padding:14px 12px; border-radius:16px; }
    .candidaturas-card h2 { font-size:18px; margin-bottom:2px; }
    .candidaturas-card .iv-back-link { margin-bottom:6px; font-size:13px; }
    #candidaturaDetailTitle { font-size:17px; line-height:1.3; }
    #candidaturaDetailSub { font-size:12px; color:var(--text-muted); margin-bottom:4px; }

    /* ── Sections ── */
    .cand-section { padding:10px 8px; margin-bottom:8px; border-radius:10px; }
    .cand-section--interview { padding:10px 8px; }
    .cand-section-title { font-size:11px; margin-bottom:6px; letter-spacing:0.5px; text-transform:uppercase; color:var(--text-muted); font-weight:600; }
    .cand-section-subtitle { font-size:11px; margin-top:-2px; margin-bottom:8px; line-height:1.3; }

    /* ── Items: single compact row ── */
    .cand-item {
        display:flex; align-items:center; gap:8px;
        padding:8px; border-radius:8px; margin-bottom:4px;
    }
    .cand-item:last-child { margin-bottom:0; }

    /* Icon: small */
    .cand-item-icon { width:28px; height:28px; border-radius:7px; flex-shrink:0; }
    .cand-item-icon svg { width:14px; height:14px; }
    .cand-item-icon--aicall { width:28px; height:28px; }
    .cand-item-icon--aicall::after { font-size:8px; top:-2px; right:-2px; }

    /* Name + info btn on mobile */
    .cand-item-info { flex:1; min-width:0; }
    .cand-item-name { font-size:13px; font-weight:600; line-height:1.2; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; flex-wrap:nowrap; }
    .cand-item-desc { display:none; }
    .cand-status { display:none; }

    /* Mobile info button: compact, tooltip hidden (uses overlay instead) */
    .cand-info-btn { width:15px; height:15px; font-size:9px; flex-shrink:0; }
    .cand-info-tooltip { display:none; }

    /* Action button: right-aligned, compact */
    .cand-item-actions { flex-shrink:0; min-width:auto; }
    .cand-dropdown-btn { padding:6px 12px; font-size:12px; min-width:auto; min-height:28px; border-radius:16px; gap:4px; }
    .cand-dropdown-btn svg.cand-chevron { width:12px; height:12px; }
    .cand-gen-btn { min-width:auto; font-size:12px; padding:6px 14px; min-height:28px; border-radius:16px; }
    .cand-dropdown-menu { min-width:140px; right:-4px; }
    .cand-dropdown-option { padding:10px 12px; font-size:13px; }
    .cand-dropdown-option svg { width:15px; height:15px; }

    /* ── Mobile: section title dot smaller ── */
    .cand-section-title::before { width:6px; height:6px; }

    /* ── AI Call card: compact stacked ── */
    .cand-item--aicall {
        display:flex; flex-direction:column; align-items:flex-start;
        padding:10px; gap:6px; border-radius:10px;
    }
    .cand-item--aicall .cand-item-desc { display:none; }
    .cand-item--aicall .cand-status { display:inline-block; font-size:11px; padding:2px 8px; }
    .cand-aicall-header { gap:8px; }
    .cand-aicall-header .cand-item-name { white-space:normal; }
    .cand-aicall-cta { padding:9px 18px; font-size:13px; width:100%; justify-content:center; border-radius:8px; }
    .cand-aicall-cta svg { width:16px; height:16px; }
    .cand-aicall-links { font-size:12px; gap:12px; }
    .cand-aicall-links a { font-size:12px; }

    /* ── Delete zone ── */
    .cand-delete-zone { margin-top:12px; padding-top:10px; text-align:center; }
    .cand-delete-zone .btn { font-size:12px !important; padding:7px 14px !important; }

    /* ── List view items ── */
    .candidatura-item { padding:14px 16px; gap:12px; border-radius:14px; margin-bottom:10px; }
    .candidatura-item-avatar { width:38px; height:38px; font-size:11px; border-radius:12px; }
    .candidatura-item-title { font-size:14px; }
    .candidatura-item-company { font-size:11px; }
    .candidatura-item-progress { margin-top:6px; }
    .candidatura-progress-bar { max-width:110px; height:4px; }
    .candidatura-progress-text { font-size:10px; }
    .candidatura-item-badges { gap:4px; margin-top:4px; }
    .candidatura-badge { font-size:8px; padding:2px 5px; }
    .candidatura-item-chevron svg { width:16px; height:16px; }
    /* ── Detail banner mobile ── */
    .cand-detail-banner { padding:16px 18px; border-radius:14px; margin-bottom:14px; }
    .cand-banner-title { font-size:15px; }
    .cand-banner-avatar { width:40px; height:40px; font-size:13px; border-radius:12px; }
    .cand-banner-progress { margin-top:12px; }
    .cand-banner-steps { gap:3px; }
}

/* Credits Section */
.credits-section { max-width: 900px; margin: 0 auto; }
.credits-card { background: white; border-radius: 20px; padding: 32px; box-shadow: 0 10px 40px rgba(0,0,0,0.08); display: flex; flex-direction: column; }
.credits-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; padding: 24px; background: linear-gradient(135deg, rgba(0,184,169,0.08), rgba(0,184,169,0.02)); border-radius: 16px; flex-wrap: wrap; gap: 16px; }
.credits-plan-info h2 { font-family: 'Poppins', sans-serif; font-size: 24px; color: var(--text-primary); margin-bottom: 4px; }
.credits-balance { text-align: right; }
.credits-balance-number { font-family: 'Poppins', sans-serif; font-size: 36px; font-weight: 700; color: var(--cvify-teal); }
.credits-balance-label { display: block; font-size: 13px; color: var(--text-muted); }
.credits-cvs-available { display: block; font-size: 14px; color: var(--text-secondary); font-weight: 600; }
.credits-weekly, .credits-topup, .credits-upgrade, .credits-history { margin-bottom: 32px; }
.credits-weekly h3, .credits-topup h3, .credits-upgrade h3, .credits-history h3 { font-family: 'Poppins', sans-serif; font-size: 16px; margin-bottom: 16px; color: var(--text-primary); }
.weekly-progress { display: flex; align-items: center; gap: 16px; }
.weekly-bar { flex: 1; height: 12px; background: #f3f4f6; border-radius: 6px; overflow: hidden; }
.weekly-bar-fill { height: 100%; background: var(--cvify-teal); border-radius: 6px; transition: width 0.5s ease; }
.weekly-text { font-size: 14px; color: var(--text-secondary); white-space: nowrap; }
.topup-grid, .upgrade-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.topup-card, .upgrade-plan-card { background: #f9fafb; border: 2px solid #e5e7eb; border-radius: 12px; padding: 20px; text-align: center; cursor: pointer; transition: all 0.2s ease; }
.topup-card:hover, .upgrade-plan-card:hover { border-color: var(--cvify-teal); transform: translateY(-2px); }
.topup-card.current, .upgrade-plan-card.current { border-color: var(--cvify-teal); background: rgba(0,184,169,0.05); }
.topup-credits { font-family: 'Poppins', sans-serif; font-size: 20px; font-weight: 700; color: var(--text-primary); }
.topup-price { font-size: 16px; color: var(--cvify-teal); font-weight: 600; margin-top: 4px; }
.credits-history-list { max-height: 300px; overflow-y: auto; }
.credit-tx-item { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #f3f4f6; font-size: 13px; }
.credit-tx-amount { font-weight: 600; }
.credit-tx-amount.positive { color: #16a34a; }
.credit-tx-amount.negative { color: #dc2626; }

/* Interview Section */
.interview-section { max-width: 900px; margin: 0 auto; }
.interview-card { background: white; border-radius: 20px; padding: 32px; box-shadow: 0 10px 40px rgba(0,0,0,0.08); }
.interview-tab-content { animation: dashFadeIn var(--motion-slow) var(--ease-standard) both; }
.interview-question-card { background: #f9fafb; border-radius: 12px; padding: 16px; margin-bottom: 12px; transition: box-shadow var(--motion-base) var(--ease-out); }
.interview-question-card .q-category { font-size: 11px; text-transform: uppercase; color: var(--cvify-teal); font-weight: 600; letter-spacing: 0.5px; }
.interview-question-card .q-text { font-size: 15px; color: var(--text-primary); margin: 8px 0; font-weight: 500; }
.interview-question-card .q-tip { font-size: 13px; color: var(--text-muted); }
.interview-question-card .q-difficulty { font-size: 11px; padding: 2px 8px; border-radius: 4px; display: inline-block; }
.q-difficulty.easy { background: rgba(34,197,94,0.15); color: #16a34a; }
.q-difficulty.medium { background: rgba(234,179,8,0.15); color: #ca8a04; }
.q-difficulty.hard { background: rgba(239,68,68,0.15); color: #dc2626; }
/* IV Header */
.iv-back-link { font-size: 14px; color: var(--cvify-teal); cursor: pointer; font-weight: 500; margin-bottom: 8px; display: inline-block; text-decoration: none; transition: color var(--motion-base) var(--ease-out); }
.iv-back-link:hover { text-decoration: underline; }
.iv-back-link:focus-visible { outline: 2px solid rgba(0, 184, 169, 0.4); outline-offset: 2px; border-radius: 3px; }
.iv-subtitle { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }
/* IV Tabs */
.iv-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.iv-tab { padding: 12px 8px; border: 2px solid #e5e7eb; border-radius: 10px; background: white; cursor: pointer; text-align: center; font-size: 14px; font-weight: 500; transition: border-color var(--motion-base) var(--ease-out), color var(--motion-base) var(--ease-out), background var(--motion-base) var(--ease-out); }
.iv-tab:hover:not(.disabled):not(.active) { border-color: #b0b8c1; }
.iv-tab.active { border-color: var(--cvify-teal); color: var(--cvify-teal); background: rgba(0,184,169,0.05); }
.iv-tab.disabled { opacity: 0.5; cursor: not-allowed; background: #f3f4f6; }
.iv-tab:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(0, 184, 169, 0.25); }
.iv-tab:active:not(.disabled) { transition-duration: 60ms; background: rgba(0,184,169,0.08); }
.iv-tab-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; min-height: 36px; }
/* IV Action Card */
.iv-action-card { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 14px; padding: 24px; margin-bottom: 20px; }
.iv-action-title { font-size: 16px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.iv-action-copy { font-size: 13px; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.5; }
.iv-cta { background: var(--cvify-teal); color: white; border: none; padding: 12px 28px; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background var(--motion-base) var(--ease-out), transform var(--motion-fast) var(--ease-out), box-shadow var(--motion-fast) var(--ease-out); box-shadow: 0 2px 8px rgba(0, 184, 169, 0.2); }
.iv-cta:hover { background: var(--cvify-teal-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,184,169,0.3); }
.iv-cta:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(0, 184, 169, 0.35), 0 2px 8px rgba(0, 184, 169, 0.2); }
.iv-cta:active { transform: translateY(0); box-shadow: 0 1px 4px rgba(0, 184, 169, 0.15); transition-duration: 60ms; }
.iv-cta:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
/* AI Call Duration Buttons */
.ai-call-dur-btn { padding: 12px 20px; border: 2px solid var(--border); border-radius: 12px; background: white; cursor: pointer; text-align: center; font-size: 14px; font-weight: 600; transition: all var(--motion-base) var(--ease-out); min-width: 90px; }
.ai-call-dur-btn.active { border-color: var(--cvify-teal); background: #f0fdf4; color: var(--cvify-teal); }
.ai-call-dur-btn:hover { border-color: var(--cvify-teal); }
/* AI Call Status Card */
.ai-call-status-card { text-align: center; padding: 40px; background: #f9fafb; border-radius: 16px; border: 1px solid var(--border); }
.ai-call-status-icon { margin: 0 auto 8px; }
@keyframes callPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.1); opacity: 0.7; } }
.ai-call-ringing .ai-call-status-icon { animation: callPulse 1.5s ease-in-out infinite; }
.ai-call-ongoing { border-color: var(--cvify-teal); }
.iv-info-icon { cursor: pointer; display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--text-muted); font-size: 10px; color: var(--text-muted); margin-left: 4px; vertical-align: middle; transition: color var(--motion-base) var(--ease-out), border-color var(--motion-base) var(--ease-out); }
.iv-info-icon:hover { border-color: var(--cvify-teal); color: var(--cvify-teal); }
.iv-action-secondary { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 8px 16px; border-radius: 8px; border: 1px solid #e5e7eb; background: white; color: var(--text-secondary); cursor: pointer; margin-left: 12px; transition: border-color var(--motion-base) var(--ease-out), color var(--motion-base) var(--ease-out), background var(--motion-base) var(--ease-out); }
.iv-action-secondary:hover { border-color: var(--cvify-teal); color: var(--cvify-teal); }
.iv-action-secondary:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(0, 184, 169, 0.2); }
.iv-action-secondary:active { background: rgba(0, 184, 169, 0.05); transition-duration: 60ms; }
/* IV Previous Results */
.iv-prev-results { border-top: 1px solid #e5e7eb; padding-top: 20px; }
.iv-prev-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
.iv-prev-title { font-size: 14px; font-weight: 600; color: var(--text-secondary); }
.iv-prev-date { font-size: 12px; color: var(--text-muted); margin-left: 8px; }
.iv-prev-toggle { font-size: 13px; color: var(--cvify-teal); cursor: pointer; background: none; border: none; font-weight: 500; transition: color var(--motion-base) var(--ease-out); }
.iv-prev-toggle:hover { text-decoration: underline; }
.iv-prev-toggle:focus-visible { outline: 2px solid rgba(0, 184, 169, 0.4); outline-offset: 2px; border-radius: 3px; }
.iv-prev-body { max-height: 0; overflow: hidden; transition: max-height var(--motion-slow) var(--ease-standard); }
.iv-prev-body.expanded { max-height: 5000px; }
/* Report: collapsible user answer */
.rpt-answer-collapsible { max-height: 0; overflow: hidden; transition: max-height var(--motion-slow) var(--ease-standard); }
.rpt-answer-collapsible.expanded { max-height: 600px; }
/* IV Credits Modal */
.iv-credits-modal { max-width: 420px; }
.iv-credits-modal h3 { font-family: 'Poppins', sans-serif; font-size: 18px; margin-bottom: 12px; color: var(--text-primary); }
.iv-credits-modal p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.iv-credits-modal ul { padding-left: 20px; margin: 12px 0; }
.iv-credits-modal li { font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; line-height: 1.5; }

/* Project Selector */
.project-selector { margin-bottom: 24px; }
.project-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 16px; }
.project-card { background: #f9fafb; border: 2px solid #e5e7eb; border-radius: 14px; padding: 20px; cursor: pointer; transition: border-color var(--motion-base) var(--ease-out), box-shadow var(--motion-base) var(--ease-out), transform var(--motion-fast) var(--ease-out), background var(--motion-base) var(--ease-out); position: relative; }
.project-card:hover { border-color: #b0b8c1; box-shadow: 0 4px 16px rgba(0,0,0,0.06); transform: translateY(-1px); }
.project-card:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(0, 184, 169, 0.25); }
.project-card:active { transform: translateY(0); transition-duration: 60ms; }
.project-card.selected { border-color: var(--cvify-teal); background: rgba(0,184,169,0.04); box-shadow: 0 4px 16px rgba(0,184,169,0.12); }
.project-card-title { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; line-height: 1.3; }
.project-card-company { font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }
.project-card-date { font-size: 11px; color: var(--text-muted); }
.project-card-badges { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.project-card-badge { font-size: 11px; padding: 2px 8px; border-radius: 6px; background: rgba(0,184,169,0.1); color: var(--cvify-teal); font-weight: 500; }
.project-empty-state { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.project-empty-state svg { width: 48px; height: 48px; margin: 0 auto 16px; opacity: 0.5; }
.project-empty-state p { margin-bottom: 16px; font-size: 14px; }
.project-selected-banner { display: flex; align-items: center; justify-content: space-between; background: rgba(0,184,169,0.06); border: 1px solid rgba(0,184,169,0.2); border-radius: 12px; padding: 14px 20px; margin-bottom: 20px; }
.project-selected-banner .psb-info { display: flex; align-items: center; gap: 10px; }
.project-selected-banner .psb-icon { width: 32px; height: 32px; background: var(--cvify-teal); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.project-selected-banner .psb-icon svg { width: 18px; height: 18px; color: white; stroke: white; }
.project-selected-banner .psb-title { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.project-selected-banner .psb-sub { font-size: 12px; color: var(--text-muted); }
.project-selected-banner .psb-change { font-size: 13px; color: var(--cvify-teal); cursor: pointer; font-weight: 500; background: none; border: none; padding: 6px 12px; border-radius: 6px; transition: background 0.2s; }
.project-selected-banner .psb-change:hover { background: rgba(0,184,169,0.1); }

/* Card container */
.card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: var(--shadow);
    border: 3px solid #ffffff;
    width: 100%;
    max-width: 900px;
    overflow: hidden;
    transition: max-width 0.3s ease;
}

.card.with-preview {
    max-width: 1150px;
}

.card-inner {
    display: flex;
    min-height: auto;
}

/* Left panel - Form */
.form-panel {
    flex: 1;
    padding: 48px;
    display: flex;
    flex-direction: column;
}

.card.with-preview .form-panel {
    max-width: 420px;
}

/* Right panel - Preview */
.preview-panel {
    flex: 1;
    min-width: 450px;
    background: rgba(255, 255, 255, 0.5);
    border-left: 3px solid #ffffff;
    padding: 16px;
    display: none;
    flex-direction: column;
}

.card.with-preview .preview-panel {
    display: flex;
}

/* Titles */
.card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    text-align: center;
}

.card-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    text-align: center;
}

.card-title.hidden,
.card-subtitle.hidden,
.progress-indicator.hidden {
    display: none;
}

/* Progress indicator */
.progress-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
}

.progress-step {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    background: #e5e7eb;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.progress-step.active {
    background: var(--cvify-teal);
    color: white;
    transform: scale(1.1);
}

.progress-step.done {
    background: var(--cvify-teal-light);
    color: white;
}

.progress-step.done::after {
    content: '\2713';
}

.progress-step.done span {
    display: none;
}

.progress-line {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
    max-width: 40px;
}

.progress-line.done {
    background: var(--cvify-teal-light);
}

/* Form elements */
.step {
    display: none;
    flex-direction: column;
    flex: 1;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.step.active {
    display: flex;
}

.step.visible {
    opacity: 1;
    transform: translateX(0);
}

.step-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.field {
    margin-bottom: 16px;
}

/* Dual textarea layout */
.dual-input-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

@media (max-width: 600px) {
    .dual-input-container {
        grid-template-columns: 1fr;
    }
}

.dual-input-box {
    display: flex;
    flex-direction: column;
}

.dual-input-box .input-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dual-input-box .input-label svg {
    width: 16px;
    height: 16px;
    color: var(--cvify-teal);
}

.dual-input-box textarea {
    flex: 1;
    min-height: 280px;
    resize: none;
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.dual-input-box textarea:focus {
    outline: none;
    border-color: var(--cvify-teal);
    box-shadow: 0 0 0 3px rgba(0, 184, 169, 0.15);
    background: white;
}

.dual-input-box textarea::placeholder {
    color: #aaa;
}

.field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.field input,
.field select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    background: rgba(255, 255, 255, 0.6);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--cvify-teal);
    box-shadow: 0 0 0 3px rgba(0, 184, 169, 0.15);
    background: white;
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--text-muted);
}

.field textarea {
    width: 100%;
    min-height: 280px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    resize: vertical;
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

/* Optimization step */
.optimization-container {
    flex: 1;
    overflow-y: auto;
    max-height: 450px;
}

.optimization-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    text-align: center;
}

/* Document animation container */
.doc-animation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 24px;
    position: relative;
}

.doc-card {
    width: 100px;
    height: 130px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    overflow: hidden;
}

.doc-card.original {
    border: 2px solid #e5e7eb;
}

.doc-card.optimized {
    border: 2px solid var(--cvify-teal);
}

.doc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(90deg, #f3f4f6 0%, #e5e7eb 100%);
}

.doc-card.optimized::before {
    background: linear-gradient(90deg, rgba(0, 184, 169, 0.2) 0%, rgba(0, 184, 169, 0.3) 100%);
}

.doc-label {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: var(--text-muted);
    white-space: nowrap;
}

.doc-block {
    height: 8px;
    border-radius: 2px;
    transition: all 0.5s ease;
    position: relative;
    z-index: 1;
}

.doc-block:first-child {
    margin-top: 22px;
}

.doc-block.gray {
    background-color: #e5e7eb;
}

.doc-block.processing {
    background-color: #fbbf24 !important;
    animation: pulse-block 0.8s ease-in-out infinite;
}

.doc-card.optimized .doc-block.filling,
.doc-block.filling {
    background-color: rgba(0, 184, 169, 0.35) !important;
}

.doc-card.optimized .doc-block.done,
.doc-block.done {
    background-color: #00b8a9 !important;
}

@keyframes fillPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.doc-block.w-full { width: 100%; }
.doc-block.w-75 { width: 75%; }
.doc-block.w-50 { width: 50%; }
.doc-block.w-85 { width: 85%; }

/* Arrow animation */
.transfer-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.arrow-line {
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #e5e7eb, var(--cvify-teal));
    position: relative;
    border-radius: 2px;
}

.arrow-line::after {
    content: '';
    position: absolute;
    right: -6px;
    top: -4px;
    border: 6px solid transparent;
    border-left-color: var(--cvify-teal);
}

.transfer-dot {
    width: 8px;
    height: 8px;
    background: var(--cvify-teal);
    border-radius: 50%;
    animation: transfer-move 1.5s ease-in-out infinite;
}

@keyframes transfer-move {
    0%, 100% { transform: translateX(-20px); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateX(20px); opacity: 0; }
}

@keyframes pulse-block {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

/* Countdown timer */
.countdown-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 16px;
}

.countdown-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
}

.countdown-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid rgba(0, 184, 169, 0.2);
    border-top-color: var(--cvify-teal);
    animation: spin 1.5s linear infinite;
    position: absolute;
    top: 0;
    left: 0;
}

.countdown-inner {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 64px;
    height: 64px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.countdown-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--cvify-teal);
    line-height: 1;
}

.optimization-loading-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.optimization-loading-subtext {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Disabled buttons during loading */
.btn-row.loading-state .btn {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

.optimization-intro {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    padding: 12px 16px;
    background: rgba(0, 184, 169, 0.08);
    border-radius: 8px;
    border-left: 3px solid var(--cvify-teal);
}

.experience-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.experience-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
}

.experience-company {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.experience-dates {
    font-size: 12px;
    color: var(--text-muted);
}

.relevance-badge {
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.relevance-alta {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
}

.relevance-media {
    background: rgba(234, 179, 8, 0.15);
    color: #ca8a04;
}

.relevance-baja {
    background: rgba(156, 163, 175, 0.15);
    color: #6b7280;
}

.question-item {
    margin-bottom: 12px;
}

.question-label {
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: 6px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.question-number {
    background: var(--cvify-teal);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}

.question-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-primary);
    transition: all 0.2s;
}

.question-input:focus {
    outline: none;
    border-color: var(--cvify-teal);
    box-shadow: 0 0 0 3px rgba(0, 184, 169, 0.15);
}

.question-input::placeholder {
    color: var(--text-muted);
    font-size: 12px;
}

.example-achievements {
    margin-top: 12px;
    padding: 10px 12px;
    background: rgba(0, 184, 169, 0.05);
    border-radius: 8px;
    font-size: 12px;
}

.example-achievements-title {
    font-weight: 600;
    color: var(--cvify-teal);
    margin-bottom: 6px;
    font-size: 11px;
    text-transform: uppercase;
}

.example-achievements ul {
    margin: 0;
    padding-left: 16px;
    color: var(--text-secondary);
}

.example-achievements li {
    margin-bottom: 4px;
}

.skip-optimization-btn {
    display: block;
    margin: 16px auto 0;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.skip-optimization-btn:hover {
    border-color: var(--text-secondary);
    color: var(--text-secondary);
}

/* Buttons */
.btn-row {
    display: flex;
    gap: 12px;
    margin-top: auto;
    padding-top: 24px;
    justify-content: center;
}

.btn {
    padding: 16px 48px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: linear-gradient(135deg, #6B9FD4 0%, #8BB0DB 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(107, 159, 212, 0.4);
    min-width: 220px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5A8FC4 0%, #7AA0CB 100%);
    box-shadow: 0 6px 20px rgba(107, 159, 212, 0.5);
}

.btn-primary:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.6);
    color: var(--text-secondary);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.9);
}

.btn-teal {
    background: var(--cvify-teal);
    color: #fff;
}
.btn-teal:hover {
    background: #00a899;
}

.btn-icon {
    font-size: 18px;
}

/* Error message */
.error-msg {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 16px;
    display: none;
}

.error-msg.show {
    display: block;
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

/* Loading state */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
    padding: 40px;
}

.progress-bar-container {
    width: 100%;
    max-width: 300px;
    margin-bottom: 24px;
    transition: opacity 0.3s ease;
}

.progress-bar-track {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--cvify-teal) 0%, var(--cvify-teal-light) 100%);
    border-radius: 4px;
    transition: width 0.3s linear;
}

.progress-percent {
    font-size: 48px;
    font-weight: 700;
    color: var(--cvify-teal);
    margin-bottom: 8px;
}

.loading-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.loading-text {
    font-size: 15px;
    color: var(--text-secondary);
    min-height: 24px;
    transition: opacity 0.3s ease;
}

/* 2048 Game */
.game-2048 {
    width: 240px;
    margin: 0 auto 12px;
}
.grid-2048 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    background: rgba(0, 184, 169, 0.12);
    border-radius: 10px;
    padding: 6px;
}
.cell-2048 {
    width: 52px;
    height: 52px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 18px;
    background: rgba(0, 184, 169, 0.06);
    color: transparent;
    transition: transform 0.12s ease, background 0.15s ease;
}
.cell-2048[data-val="2"]    { background: #e0f7f5; color: #00897b; }
.cell-2048[data-val="4"]    { background: #b2ede8; color: #00796b; }
.cell-2048[data-val="8"]    { background: #80ded5; color: #fff; font-size: 18px; }
.cell-2048[data-val="16"]   { background: #4dcfc3; color: #fff; font-size: 17px; }
.cell-2048[data-val="32"]   { background: #26c6b8; color: #fff; font-size: 17px; }
.cell-2048[data-val="64"]   { background: #00b8a9; color: #fff; font-size: 17px; }
.cell-2048[data-val="128"]  { background: #00a396; color: #fff; font-size: 15px; }
.cell-2048[data-val="256"]  { background: #008b7d; color: #fff; font-size: 15px; }
.cell-2048[data-val="512"]  { background: #007368; color: #fff; font-size: 15px; }
.cell-2048[data-val="1024"] { background: #005c53; color: #fff; font-size: 13px; }
.cell-2048[data-val="2048"] { background: #fbbf24; color: #fff; font-size: 13px; box-shadow: 0 0 12px rgba(251,191,36,0.5); }
.cell-2048.pop { animation: cellPop 0.15s ease; }
@keyframes cellPop {
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}
.game-2048-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding: 0 2px;
}
.game-2048-score {
    font-size: 13px;
    font-weight: 600;
    color: var(--cvify-teal-dark);
}
.game-2048-best {
    font-size: 11px;
    color: var(--text-muted);
}
.game-controls {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Preview card */
.preview-card {
    background: rgba(255, 255, 255, 0.5);
    border: 3px solid #ffffff;
    border-radius: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(107, 159, 212, 0.25);
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.preview-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--cvify-teal);
}

.preview-name {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
}

.preview-title {
    font-size: 13px;
    color: var(--cvify-teal);
}

.preview-content {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Preview Tabs */
.preview-tabs-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.preview-tab {
    padding: 11px 8px;
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
    cursor: pointer;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.preview-tab:hover:not(.active) {
    color: var(--text-primary);
}

.preview-tab.active {
    color: var(--cvify-teal);
    border-bottom-color: var(--cvify-teal);
}

.preview-tab-content {
    display: none;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.preview-tab-content.active {
    display: flex;
}

.preview-section {
    margin-bottom: 16px;
}

.preview-section-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
}

.preview-placeholder-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Result actions (post-accept) */
.result-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px 16px;
}

/* Primary CTA — Cover Letter */
.ra-cta-carta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    background: var(--cvify-teal);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,200,150,0.25);
}
.ra-cta-carta:hover {
    background: var(--cvify-teal-dark);
    box-shadow: 0 4px 14px rgba(0,200,150,0.35);
    transform: translateY(-1px);
}

/* Download row — compact side by side */
.ra-download-row {
    display: flex;
    gap: 8px;
}
.ra-dl-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 12px;
    background: white;
    color: var(--text-secondary);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}
.ra-dl-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: var(--text-primary);
}
.ra-dl-btn svg {
    opacity: 0.5;
}
.ra-dl-btn:hover svg {
    opacity: 0.8;
}
.ra-dl-btn.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Quick access links */
.ra-quick-links {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    padding-top: 4px;
    border-top: 1px solid #f3f4f6;
}
.ra-quick-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    font-size: 11.5px;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.ra-quick-link:hover {
    color: var(--text-primary);
    background: #f3f4f6;
}
.ra-quick-link--accent {
    color: var(--cvify-teal);
    font-weight: 500;
}
.ra-quick-link--accent:hover {
    color: var(--cvify-teal-dark);
    background: rgba(0,200,150,0.08);
}

.missing-requirements {
    margin-bottom: 16px;
}

.missing-requirements h5 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.missing-requirements .req-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.missing-requirements .req-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 12px;
    color: var(--text-primary);
}

.missing-requirements .req-icon {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border: 1.5px solid #e0a0b0;
    border-radius: 50%;
    margin-top: 5px;
}

.missing-requirements .req-content {
    flex: 1;
}

.missing-requirements .req-text {
    font-weight: 500;
    color: var(--text-primary);
}

.missing-requirements .suggestion {
    font-style: italic;
    color: var(--text-muted);
    font-size: 11px;
    margin-top: 3px;
}

.no-missing {
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 16px;
    color: #065f46;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Modify section */
.modify-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.modify-section h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.modify-section textarea {
    min-height: 80px;
    font-size: 13px;
}

.modify-section .btn {
    margin-top: 12px;
    width: 100%;
    padding: 12px;
    font-size: 14px;
}

.revision-info {
    text-align: center;
    margin-top: 8px;
    font-size: 12px;
    font-style: italic;
    color: #9ca3af;
}

/* CV Decision Bar (Revisar / Aceptar) */
.cv-decision-bar {
    display:flex; gap:10px; align-items:center; flex-wrap:wrap;
    padding:14px 16px; border-top:1px solid #e5e7eb;
}
.cv-decision-btn {
    flex:1; min-width:120px; display:inline-flex; align-items:center; justify-content:center;
    gap:6px; padding:12px 20px; font-size:14px; font-weight:600; border-radius:10px;
    cursor:pointer; transition:all var(--motion-fast) var(--ease-standard);
}
.cv-decision-bar .revision-info { flex-basis:100%; margin-top:2px; }
.cv-decision-bar.accepted .revision-info { display:none; }

/* Snake Game */
.snake-game-container {
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
}

.snake-game-container.active {
    display: flex;
}

.snake-grid {
    display: grid;
    grid-template-columns: repeat(12, 18px);
    grid-template-rows: repeat(12, 18px);
    gap: 2px;
    background: rgba(0, 0, 0, 0.05);
    padding: 6px;
    border-radius: 8px;
}

.snake-cell {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.1s ease;
}

.snake-cell.snake-head {
    background: var(--cvify-teal);
    box-shadow: 0 2px 6px rgba(0, 184, 169, 0.5);
}

.snake-cell.snake-body {
    background: var(--cvify-teal-light);
}

.snake-cell.food {
    background: transparent;
}

.snake-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-secondary);
}

.snake-score {
    font-weight: 600;
    color: var(--cvify-teal);
}

.snake-status {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.snake-status.loading {
    background: #fef3c7;
    color: #d97706;
}

.snake-status.ready {
    background: #d1fae5;
    color: #059669;
}

.snake-controls {
    margin-top: 8px;
    font-size: 11px;
    color: var(--text-muted);
}

.snake-btn-row {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.snake-btn {
    padding: 8px 16px;
    font-size: 12px;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    font-family: 'Inter', sans-serif;
}

.snake-btn-continue {
    background: var(--cvify-teal);
    color: white;
}

.snake-btn-continue:hover {
    background: var(--cvify-teal-dark);
}

/* CV Preview in result */
.cv-preview-full {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 11px;
    line-height: 1.5;
    color: #525252;
}

.cv-preview-full .cv-name {
    font-family: 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-align: center;
    color: #474747;
    margin-bottom: 4px;
}

.cv-preview-full .cv-title {
    font-family: 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 10px;
    font-weight: 300;
    color: #666;
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.cv-preview-full .cv-divider {
    height: 0;
    border: none;
    border-bottom: 0.5px solid #cccccc;
    margin: 8px 0;
}

.cv-preview-full .cv-contact {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 10px;
    color: #525252;
    text-align: center;
}
.cv-preview-full .cv-contact span + span::before {
    content: " | ";
    color: #999;
    margin: 0 6px;
}

/* ── Preview header WITH photo variant ── */
.cv-preview-full .cv-header-photo-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 4px;
}
.cv-preview-full .cv-header-photo img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}
.cv-preview-full .cv-header-text {
    flex: 1;
    padding-top: 2px;
}
.cv-preview-full .cv-header-text .cv-name {
    text-align: left;
    font-size: 17px;
    margin-bottom: 2px;
}
.cv-preview-full .cv-header-text .cv-title {
    text-align: left;
    margin-bottom: 6px;
}
.cv-preview-full .cv-header-text .cv-contact {
    justify-content: flex-start;
}

.cv-preview-full .cv-section {
    padding: 8px 0;
    border-bottom: 0.5px solid #cccccc;
}
.cv-preview-full .cv-section:last-child { border-bottom: none; }

.cv-preview-full .cv-section-title {
    font-family: 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 6px;
}

.cv-preview-full .cv-text {
    color: #525252;
    text-align: justify;
    font-size: 11px;
}

.cv-preview-full .cv-exp-item {
    margin-bottom: 8px;
}

.cv-preview-full .cv-exp-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2px;
}

.cv-preview-full .cv-exp-left {
    font-size: 11px;
}

.cv-preview-full .cv-company {
    font-weight: 700;
    color: #525252;
}

.cv-preview-full .cv-separator {
    color: #999;
    margin: 0 4px;
}

.cv-preview-full .cv-position-inline {
    font-weight: 400;
    color: #525252;
}

.cv-preview-full .cv-dates {
    color: #6d6d6d;
    font-size: 10px;
    white-space: nowrap;
    margin-left: 8px;
}

.cv-preview-full .cv-achievements {
    margin: 4px 0 0 14px;
    padding: 0;
    color: #525252;
    font-size: 11px;
}

.cv-preview-full .cv-achievements li {
    margin-bottom: 1px;
}

.cv-preview-full .cv-edu-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 11px;
    line-height: 1.6;
}

.cv-preview-full .cv-edu-info {
    color: #525252;
}

.cv-preview-full .cv-edu-dates {
    color: #6d6d6d;
    font-size: 10px;
    white-space: nowrap;
    margin-left: 10px;
}

/* Skills inline with pipes (matches PDF template) */
.cv-preview-full .cv-skills-inline {
    font-size: 11px;
    color: #525252;
    line-height: 1.6;
}
.cv-preview-full .cv-skills-inline span + span::before {
    content: " | ";
    color: #999;
}

/* Languages inline with pipes */
.cv-preview-full .cv-langs-inline {
    font-size: 11px;
    color: #525252;
}
.cv-preview-full .cv-langs-inline span + span::before {
    content: " | ";
    color: #999;
}

/* Certifications inline */
.cv-preview-full .cv-certs-inline {
    font-size: 11px;
    color: #525252;
}
.cv-preview-full .cv-certs-inline span + span::before {
    content: " | ";
    color: #999;
}

/* Responsive */
@media (max-width: 900px) {
    .card {
        max-width: 100%;
    }

    .card.with-preview {
        max-width: 100%;
    }

    .card-inner {
        flex-direction: column;
    }

    .card.with-preview .preview-panel {
        width: 100%;
        border-left: none;
        border-top: 3px solid #ffffff;
        max-height: 400px;
    }
}

@media (max-width: 600px) {

    /* ═══ PASO 1: Fondo limpio, sin cielo ═══ */
    body {
        background: #f5f5f7 !important;
    }
    main {
        padding: 8px 12px 32px;
    }

    /* ═══ PASO 2: Cards sólidas, sin glass morphism ═══ */
    .card, .dashboard-step-card, .candidaturas-card, .profile-card, .credits-card {
        background: #fff;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
        box-shadow: 0 1px 3px rgba(0,0,0,0.06);
        border-radius: 14px;
    }
    .dashboard-step-card {
        padding: 16px;
    }

    /* ═══ PASO 3: Dashboard compacto ═══ */
    .dashboard-title {
        font-size: 20px;
        margin-bottom: 12px;
    }
    .dashboard-steps-grid {
        gap: 10px;
    }
    .step-header .step-title {
        font-size: 15px;
    }
    .step-desc {
        font-size: 12px;
        line-height: 1.4;
        margin: 6px 0;
    }
    .btn-step-action {
        padding: 10px 16px;
        font-size: 13px;
    }
    .step-completed-badge {
        font-size: 11px;
        padding: 4px 10px;
    }

    /* ═══ PASO 4: Preview panel oculto en mobile ═══ */
    .preview-panel {
        display: none !important;
    }
    .card.with-preview .preview-panel {
        display: none !important;
    }
    .card.with-preview {
        max-width: 100%;
    }
    .card.with-preview .form-panel {
        max-width: 100%;
    }

    /* Botón "Ver mi CV" para abrir overlay */
    .mobile-preview-btn {
        width: 100%;
        padding: 14px;
        background: var(--cvify-teal);
        color: #fff;
        border: none;
        border-radius: 12px;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        margin-top: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    .mobile-preview-btn:active {
        transform: scale(0.98);
    }

    /* Overlay fullscreen del preview */
    .mobile-preview-overlay {
        position: fixed;
        inset: 0;
        z-index: 9999;
        background: #fff;
        display: flex;
        flex-direction: column;
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    }
    .mobile-preview-overlay.open {
        transform: translateY(0);
    }
    .mobile-preview-header {
        display: flex;
        align-items: center;
        padding: 12px 16px;
        border-bottom: 1px solid #f0f0f0;
        flex-shrink: 0;
    }
    .mobile-preview-close {
        width: 32px; height: 32px;
        border-radius: 50%;
        border: none;
        background: #f3f4f6;
        font-size: 16px;
        cursor: pointer;
        display: flex; align-items: center; justify-content: center;
    }
    .mobile-preview-title {
        flex: 1;
        text-align: center;
        font-weight: 600;
        font-size: 15px;
        margin-right: 32px;
    }
    .mobile-preview-body {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 16px;
    }
    .mobile-preview-footer {
        flex-shrink: 0;
        padding: 12px 16px;
        border-top: 1px solid #f0f0f0;
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }

    /* ═══ PASO 5: Form panel compacto ═══ */
    .form-panel {
        padding: 16px;
    }
    .card-title {
        font-size: 18px;
    }
    .card-subtitle {
        font-size: 12px;
    }
    .step-title {
        font-size: 18px;
    }
    .missing-requirements h5 {
        font-size: 13px;
    }
    .req-text {
        font-size: 13px;
    }
    .suggestion {
        font-size: 11px;
    }

    /* ═══ PASO 6: Header sticky blanco ═══ */
    header {
        padding: 8px 12px;
        flex-direction: row;
        gap: 0;
        position: sticky;
        top: 0;
        z-index: 100;
        background: #fff;
        box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    }
    .header-left {
        display: none;
    }
    .header-center {
        position: static;
        transform: none;
        margin-right: auto;
    }
    .header-center .logo img {
        height: 36px;
    }
    .header-right {
        gap: 6px;
    }
    .header-credits {
        padding: 4px 8px;
        gap: 4px;
    }
    .header-credits-icon {
        width: 16px;
        height: 16px;
    }
    .header-credits-number {
        font-size: 14px;
    }
    .header-credits-label {
        font-size: 9px;
    }
    .user-menu-btn {
        display: none;
    }
    .mobile-hamburger {
        display: flex;
    }
    .user-dropdown {
        right: 12px;
        top: 48px;
        left: 12px;
        min-width: unset;
    }

    /* ═══ PASO 7: Candidaturas ═══ */
    .candidaturas-card {
        background: transparent;
        box-shadow: none;
        padding: 8px 0;
    }
    .candidatura-item {
        border-radius: 14px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    }

    /* ═══ Generales mobile ═══ */
    .btn-row {
        flex-direction: column;
    }
    .btn-secondary {
        order: 1;
    }
}

/* Desktop: ocultar elementos mobile-only */
@media (min-width: 601px) {
    .mobile-preview-overlay {
        display: none !important;
    }
    .mobile-preview-btn {
        display: none !important;
    }
}


/* ═══════════════════════════════════════════════════
   CHATBOT WIDGET
   ═══════════════════════════════════════════════════ */

/* ── Trigger Button ── */
.chatbot-trigger {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cvify-teal), var(--cvify-teal-dark));
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 184, 169, 0.4);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--motion-base) ease, box-shadow var(--motion-base) ease;
}
.chatbot-trigger:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(0, 184, 169, 0.5);
}
.chatbot-trigger svg {
    width: 26px;
    height: 26px;
    transition: opacity var(--motion-fast) ease, transform var(--motion-fast) ease;
}
.chatbot-trigger .chatbot-trigger-icon {
    opacity: 1;
    transform: scale(1);
}
.chatbot-trigger .chatbot-trigger-close {
    position: absolute;
    opacity: 0;
    transform: scale(0.5) rotate(-90deg);
}
.chatbot-trigger.open .chatbot-trigger-icon {
    opacity: 0;
    transform: scale(0.5) rotate(90deg);
}
.chatbot-trigger.open .chatbot-trigger-close {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* Subtle pulse animation when idle */
@keyframes chatbot-pulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(0, 184, 169, 0.4); }
    50% { box-shadow: 0 4px 24px rgba(0, 184, 169, 0.6); }
}
.chatbot-trigger:not(.open) {
    animation: chatbot-pulse 3s ease-in-out infinite;
}
.chatbot-trigger:hover, .chatbot-trigger.open {
    animation: none;
}

/* ── Chat Panel ── */
.chatbot-panel {
    position: fixed;
    bottom: 92px;
    right: 24px;
    width: 380px;
    height: 520px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: opacity var(--motion-slow) ease, transform var(--motion-slow) ease;
}
.chatbot-panel.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* ── Header ── */
.chatbot-header {
    background: linear-gradient(135deg, var(--cvify-teal), var(--cvify-teal-dark));
    color: #fff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.chatbot-avatar {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.chatbot-avatar svg {
    width: 20px;
    height: 20px;
    color: #fff;
}
.chatbot-header-title {
    font-weight: 600;
    font-size: 0.95rem;
}
.chatbot-header-status {
    font-size: 0.75rem;
    opacity: 0.85;
}
.chatbot-close {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 4px;
    opacity: 0.8;
    transition: opacity var(--motion-fast);
}
.chatbot-close:hover {
    opacity: 1;
}
.chatbot-close svg {
    width: 20px;
    height: 20px;
}

/* ── Messages Area ── */
.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f8fafb;
}

/* ── Message Bubbles ── */
.chatbot-msg {
    display: flex;
    max-width: 85%;
}
.chatbot-msg.bot {
    align-self: flex-start;
}
.chatbot-msg.user {
    align-self: flex-end;
}
.chatbot-msg-bubble {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 0.875rem;
    line-height: 1.5;
    word-wrap: break-word;
}
.chatbot-msg.bot .chatbot-msg-bubble {
    background: #fff;
    color: var(--text-primary);
    border: 1px solid #e5e7eb;
    border-bottom-left-radius: 4px;
}
.chatbot-msg.user .chatbot-msg-bubble {
    background: linear-gradient(135deg, var(--cvify-teal), var(--cvify-teal-dark));
    color: #fff;
    border-bottom-right-radius: 4px;
}

/* ── Typing Indicator ── */
.chatbot-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 18px !important;
}
.chatbot-dot {
    width: 8px;
    height: 8px;
    background: var(--cvify-teal);
    border-radius: 50%;
    opacity: 0.4;
    animation: chatbot-bounce 1.4s ease-in-out infinite;
}
.chatbot-dot:nth-child(2) { animation-delay: 0.2s; }
.chatbot-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes chatbot-bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

/* ── Input Area ── */
.chatbot-input-area {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
    flex-shrink: 0;
}
.chatbot-input {
    flex: 1;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 0.875rem;
    font-family: inherit;
    resize: none;
    outline: none;
    max-height: 80px;
    line-height: 1.4;
    transition: border-color var(--motion-fast);
}
.chatbot-input:focus {
    border-color: var(--cvify-teal);
}
.chatbot-input::placeholder {
    color: var(--text-muted);
}
.chatbot-send {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: var(--cvify-teal);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background var(--motion-fast), transform var(--motion-fast);
}
.chatbot-send:hover {
    background: var(--cvify-teal-dark);
    transform: scale(1.05);
}
.chatbot-send svg {
    width: 18px;
    height: 18px;
}

/* ── CTA Banner (landing page) ── */
.chatbot-cta-banner {
    text-align: center;
    padding: 40px 24px;
    background: linear-gradient(135deg, #f0fdfa 0%, #ecfdf5 100%);
    border-top: 1px solid rgba(0, 184, 169, 0.15);
}
.chatbot-cta-banner p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}
.chatbot-cta-banner button {
    background: linear-gradient(135deg, var(--cvify-teal), var(--cvify-teal-dark));
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--motion-fast), box-shadow var(--motion-fast);
}
.chatbot-cta-banner button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 184, 169, 0.35);
}

/* ── Chatbot Responsive ── */
@media (max-width: 480px) {
    .chatbot-panel {
        width: calc(100vw - 16px);
        height: calc(100vh - 120px);
        bottom: 80px;
        right: 8px;
        border-radius: 12px;
    }
    .chatbot-trigger {
        bottom: 16px;
        right: 16px;
        width: 50px;
        height: 50px;
    }
    .chatbot-trigger svg {
        width: 22px;
        height: 22px;
    }
}
