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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 0;
    scroll-behavior: smooth;
}

/* ========================================
   HERO LANDING SECTION
   ======================================== */

.hero-landing {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    padding: 40px 20px;
    padding-top: 100px; /* Add space for fixed nav bar */
}

.hero-content {
    text-align: center;
    color: white;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 40px;
    opacity: 0.95;
}

.hero-steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 35px;
    max-width: 1000px;
}

.hero-step-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.hero-step-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.hero-step-number {
    display: inline-block;
    width: 45px;
    height: 45px;
    line-height: 45px;
    background: rgba(255, 215, 0, 0.9);
    color: #667eea;
    border-radius: 50%;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.hero-step-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    color: white;
}

.hero-step-icon svg {
    width: 100%;
    height: 100%;
}

.hero-step-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

.hero-step-card p {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.4;
    color: white;
}

.hero-cta {
    padding: 18px 50px;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    background: #f0f0f0;
}

.scroll-indicator {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.7;
    cursor: pointer;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-indicator span {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Responsive Hero Styles */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
        margin-bottom: 40px;
    }

    .hero-steps-container {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }

    .hero-step-card {
        padding: 25px 15px;
    }

    .hero-step-number {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 1.5rem;
    }

    .hero-step-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }

    .hero-step-card h3 {
        font-size: 1.2rem;
    }

    .hero-step-card p {
        font-size: 0.95rem;
    }

    .hero-cta {
        padding: 16px 40px;
        font-size: 1.1rem;
    }
}

/* ========================================
   TOP NAVIGATION BAR
   ======================================== */

.top-nav {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    padding: 12px 40px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    cursor: pointer;
    justify-self: start;
}

.nav-tabs-wrapper {
    display: flex;
    justify-content: center;
    grid-column: 2;
}

.nav-tabs {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 5px;
    display: flex;
    gap: 5px;
}

.nav-tab {
    padding: 10px 30px;
    border: none;
    border-radius: 50px;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-tab:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.nav-tab.active {
    background: white;
    color: #667eea;
}

.nav-auth-container {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-self: end;
}

.nav-credits-display {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
}

.nav-auth-btn {
    padding: 10px 30px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    background: #059669;
}

.nav-auth-btn.has-notification {
    background: rgba(255, 215, 0, 0.9);
    color: #333;
    animation: pulse-notification 2s ease-in-out infinite;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px 10px;
}

.mobile-close-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 5px 10px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1002;
}

.mobile-close-btn.active {
    display: block;
}

.mobile-menu {
    display: none;
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    position: fixed;
    top: 60px; /* Will be dynamically calculated via JS to account for nav height */
    right: 0;
    width: 100%;
    max-width: 300px;
    height: calc(100vh - 60px); /* Will be dynamically calculated via JS */
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    padding: 30px 20px 20px 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu.active {
    transform: translateX(0);
}

.nav-tab-mobile {
    display: block;
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 10px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

.nav-tab-mobile:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.nav-tab-mobile.active {
    background: white;
    color: #667eea;
}

.mobile-menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 20px 0;
}

.nav-auth-btn-mobile {
    width: 100%;
    padding: 15px 20px;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-tabs-wrapper {
        display: none;
    }

    .nav-logo {
        font-size: 1.1rem;
    }

    .nav-auth-btn {
        display: block;
        padding: 8px 16px;
        font-size: 0.85rem;
        margin: 0 auto;
    }

    .nav-container {
        grid-template-columns: auto 1fr auto;
        gap: 10px;
        position: relative;
    }

    .mobile-menu-btn {
        display: block;
        position: static;
        transform: none;
    }

    .mobile-menu {
        display: block;
    }

    .top-nav {
        padding: 15px 0;
    }

    .nav-container {
        padding: 0 15px;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    padding-top: 80px; /* Add space for fixed nav bar */
}

header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

.header-top {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    margin-bottom: 20px;
}

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

.header-center {
    text-align: center;
    grid-column: 2;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

.auth-btn {
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.auth-btn.has-notification {
    background: rgba(255, 215, 0, 0.3);
    border-color: #ffd700;
    animation: pulse-notification 2s ease-in-out infinite;
}

@keyframes pulse-notification {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
    }
}

.buy-credits-header-btn {
    padding: 10px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid white;
    color: white;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    margin-right: 10px;
}

.buy-credits-header-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.my-resumes-btn-header,
.how-it-works-btn-header {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    width: fit-content;
}

.my-resumes-btn-header.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.my-resumes-btn-header:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.auth-btn:hover,
.my-resumes-btn-header:hover:not(:disabled),
.how-it-works-btn-header:hover {
    background: white;
    color: #667eea;
}

/* Generate Button Section */
.register-prompt-section {
    display: none;
    text-align: center;
    margin-bottom: 15px;
    justify-content: center;
    align-items: center;
}

.register-prompt-btn {
    padding: 14px 40px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(76, 175, 80, 0.4);
    transition: all 0.3s;
}

.register-prompt-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.5);
}

.register-prompt-btn:active {
    transform: translateY(0);
}

.generate-section-top {
    text-align: center;
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.generate-btn-top {
    padding: 16px 50px;
    background: linear-gradient(135deg, #cccccc 0%, #999999 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: not-allowed;
    box-shadow: 0 6px 15px rgba(153, 153, 153, 0.4);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    opacity: 0.6;
}

.generate-btn-top.has-jobs {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(245, 87, 108, 0.4);
    opacity: 1;
}

.generate-btn-top.has-jobs:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 87, 108, 0.5);
}

.generate-btn-top.has-jobs:active {
    transform: translateY(0);
}

.generate-credits-badge {
    font-size: 0.9em;
    opacity: 0.9;
    margin-left: 8px;
}

.input-section {
    display: grid;
    grid-template-columns: 1.1fr 1.9fr;
    gap: 20px;
    margin-bottom: 6px;
    align-items: stretch;
}

.how-it-works-btn-inline {
    padding: 14px 40px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.how-it-works-btn-inline:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 255, 255, 0.3);
}

.how-it-works-btn-inline:active {
    transform: translateY(0);
}

.left-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.left-column .section {
    margin-bottom: 0;
}

.right-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.right-column .section {
    margin-bottom: 0;
}

/* New layout: Input cards column (1/3) */
.input-cards-column {
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
}

.input-cards-column .section {
    margin-bottom: 0;
}

/* New layout: Front page preview column (2/3) */
.front-page-preview-column {
    display: flex;
    flex-direction: column;
}

.front-page-preview-panel {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 600px;
}

.front-page-preview-panel .preview-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.resume-select {
    padding: 5px 8px;
    border: 2px solid #667eea;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    background: white;
    color: #667eea;
    cursor: pointer;
    transition: all 0.3s ease;
    max-width: 200px;
}

.resume-select:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.resume-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.generate-btn-inline {
    padding: 6px 12px;
    background: linear-gradient(135deg, #cccccc 0%, #999999 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: not-allowed;
    transition: all 0.3s;
    opacity: 0.6;
    white-space: nowrap;
}

.generate-btn-inline.has-jobs {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    cursor: pointer;
    opacity: 1;
}

.generate-btn-inline.has-jobs:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.4);
}

.generate-btn-inline.has-jobs:active {
    transform: translateY(0);
}

/* Glow effect for new resume */
.resume-select.new-resume-glow {
    animation: dropdown-glow 2s ease-in-out 3;
    border-color: #10b981;
}

@keyframes dropdown-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
        border-color: #e5e7eb;
    }
    50% {
        box-shadow: 0 0 15px 5px rgba(16, 185, 129, 0.4);
        border-color: #10b981;
    }
}

.section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease;
}

/* Unified Steps Card with Tabs */
.unified-steps-card {
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
    max-height: 100%;
    width: 100%;
    min-width: 0;
}

.step-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 2px solid #e5e7eb;
}

.step-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    font-family: inherit;
}

.step-tab:hover {
    background: rgba(102, 126, 234, 0.05);
}

.step-tab.active {
    background: white;
}

.step-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.tab-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #e5e7eb;
    color: #6b7280;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.step-tab.active .tab-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.tab-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: #6b7280;
    transition: color 0.3s ease;
}

.step-tab.active .tab-label {
    color: #1f2937;
}

.tab-badge {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.tab-badge.required {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.tab-badge.optional {
    background: #d1d5db;
    color: #6b7280;
}

.step-content {
    display: none;
    padding: 30px;
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
    width: 100%;
    min-width: 0;
}

.step-content.active {
    display: flex;
    flex-direction: column;
}

.step-content .section-content {
    padding: 0;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

/* Generate Button Footer */
.generate-button-footer {
    padding: 16px 20px;
    border-top: 2px solid #e5e7eb;
    background: white;
}

.generate-btn-bottom {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    opacity: 1;
    white-space: nowrap;
}

.generate-btn-bottom.has-jobs {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    cursor: pointer;
    opacity: 1;
}

.generate-btn-bottom.has-jobs:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

.generate-btn-bottom.has-jobs:active {
    transform: translateY(0);
}

/* Desktop: Match height with preview panel */
@media (min-width: 769px) {
    .input-cards-column .unified-steps-card {
        height: 100%;
    }

    .front-page-preview-panel {
        height: 100%;
    }
}

.glow-yellow {
    animation: glow-yellow-pulse 2s ease-in-out infinite;
    border: 2px solid rgba(255, 215, 0, 0.4);
    border-radius: 8px;
}

@keyframes glow-yellow-pulse {
    0%, 100% {
        box-shadow: 0 0 8px 2px rgba(255, 215, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 12px 3px rgba(255, 215, 0, 0.3);
    }
}

.small-section {
    padding: 20px;
}

.small-section h2 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.small-section h3 {
    font-size: 1rem;
    color: #667eea;
    margin-top: 15px;
    margin-bottom: 10px;
}

/* Section Header with Collapse */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.section-header h2 {
    margin: 0;
}

.collapse-btn {
    width: 28px;
    height: 28px;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    border-radius: 6px;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.collapse-btn:hover {
    background: #667eea;
    color: white;
}

.section-content {
    display: block;
}

.section h2 {
    color: #333;
    margin-bottom: 8px;
    font-size: 1.5rem;
}

.subtitle {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.input-group {
    position: relative;
    margin-bottom: 15px;
}

.input-group textarea {
    width: 100%;
    padding: 12px;
    padding-right: 40px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 191px;
    transition: border-color 0.3s;
}

.input-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

/* Paste Resume Styles */
.paste-resume-container {
    margin-top: 15px;
}

.paste-resume-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 400px;
    transition: border-color 0.3s;
    line-height: 1.6;
}

.paste-resume-input:focus {
    outline: none;
    border-color: #667eea;
}

/* Compact Job Card Styles */
.job-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
}

/* Old styles - now using job-title-input and company-name-input */

.company-name-compact {
    width: 100%;
    padding: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.85rem;
    margin-bottom: 8px;
    transition: border-color 0.3s;
}

.company-name-compact:focus {
    outline: none;
    border-color: #667eea;
}

.job-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.job-dates {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.job-start-date,
.job-end-date {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
}

.job-start-date:focus,
.job-end-date:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.date-separator {
    color: #64748b;
    font-weight: 500;
    user-select: none;
}

.job-title-input,
.company-name-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.95rem;
    background: white;
    color: #333;
    transition: border-color 0.3s;
}

.job-title-input:focus,
.company-name-input:focus {
    outline: none;
    border-color: #667eea;
}

.remove-job-btn-compact {
    width: 24px;
    height: 24px;
    border: none;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    flex-shrink: 0;
}

.remove-job-btn-compact:hover {
    background: #ff3838;
}

.accomplishments-compact {
    margin-bottom: 10px;
}

.accomplishment-item {
    position: relative;
    margin-bottom: 8px;
}

.accomplishment-item textarea {
    width: 100%;
    padding: 8px;
    padding-right: 35px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.85rem;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.3s;
}

.accomplishment-item textarea:focus {
    outline: none;
    border-color: #667eea;
}

.add-accomplishment-btn {
    width: 100%;
    padding: 8px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.add-accomplishment-btn:hover {
    background: #5568d3;
}

/* Personal Info & Education Styles */
.personal-info input {
    padding: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.3s;
}

.personal-info input:focus {
    outline: none;
    border-color: #667eea;
}

.contact-row-full {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
}

.education-item {
    display: grid;
    grid-template-columns: 3fr 3fr 80px auto;
    gap: 6px;
    margin-bottom: 8px;
    align-items: center;
}

.education-item input,
.education-item select {
    padding: 6px 8px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.85rem;
    transition: border-color 0.3s;
}

.education-item input:focus,
.education-item select:focus {
    outline: none;
    border-color: #667eea;
}

.grad-year-input {
    width: 80px;
}

/* Skills Textarea */
.skills-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 113px;
    transition: border-color 0.3s;
}

.skills-textarea:focus {
    outline: none;
    border-color: #667eea;
}

.remove-btn-small {
    width: 22px;
    height: 22px;
    border: none;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
    flex-shrink: 0;
}

.remove-btn-small:hover {
    background: #ff3838;
}

.add-btn-small {
    width: 100%;
    padding: 8px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 5px;
}

.add-btn-small:hover {
    background: #5568d3;
}

.remove-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    border: none;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.remove-btn:hover {
    background: #ff3838;
}

.add-btn {
    width: 100%;
    padding: 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.add-btn:hover {
    background: #5568d3;
}

/* Experience Buttons Container */
.experience-buttons {
    display: flex;
    gap: 12px;
    width: 100%;
    align-items: center;
}

.experience-buttons .add-btn {
    flex: 1;
}

/* Experience Tooltip */
.experience-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    margin-left: 6px;
    vertical-align: middle;
    -webkit-tap-highlight-color: transparent;
}

.tooltip-icon {
    font-size: 0.95rem;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.experience-tooltip:hover .tooltip-icon,
.experience-tooltip.show .tooltip-icon {
    opacity: 1;
}

.tooltip-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    padding: 8px 12px;
    background-color: #333;
    color: white;
    font-size: 0.85rem;
    white-space: nowrap;
    border-radius: 6px;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #333;
}

.experience-tooltip:hover .tooltip-text,
.experience-tooltip.show .tooltip-text {
    visibility: visible;
    opacity: 1;
}


/* Mobile-specific tooltip styling */
@media (max-width: 768px) {
    .tooltip-text {
        white-space: normal;
        max-width: 200px;
        text-align: center;
    }
}


#resumes-output {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.resume-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.resume-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #667eea;
}

.resume-title {
    font-size: 1.8rem;
    color: #333;
}

.download-btn {
    padding: 10px 24px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.download-btn:hover {
    background: #5568d3;
}

.resume-content {
    line-height: 1.8;
}

.resume-section {
    margin-bottom: 25px;
}

.resume-section h3 {
    color: #667eea;
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.resume-section ul {
    list-style: none;
    padding-left: 0;
}

.resume-section li {
    padding-left: 25px;
    margin-bottom: 10px;
    position: relative;
    color: #444;
}

.resume-section li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.job-description {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #666;
    border-left: 4px solid #667eea;
}

.loading {
    background: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    font-size: 1.2rem;
    color: #667eea;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.error {
    background: #fff3cd;
    border: 2px solid #ffc107;
    color: #856404;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 16px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-content h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.modal-content p {
    color: #666;
    margin-bottom: 25px;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-content input {
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.modal-content input:focus {
    outline: none;
    border-color: #667eea;
}

.signup-btn {
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.signup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.modal-note {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #666;
}

.modal-note a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.modal-note a:hover {
    text-decoration: underline;
}

/* Verification Modal Styles */
.verification-content {
    max-width: 400px;
    position: relative;
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.modal-close-btn:hover {
    color: #333;
}

.verification-content #verification-code {
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 0.5rem;
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.verification-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.verify-btn {
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.verify-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.resend-code-btn {
    padding: 12px;
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.resend-code-btn:hover {
    background: #667eea;
    color: white;
}

.verification-note {
    text-align: center;
    margin-top: 15px;
    font-size: 0.85rem;
    color: #888;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .top-nav {
        margin: 0;
        width: 100%;
        padding: 15px 0;
    }

    .container {
        padding: 20px 0;
        padding-top: 80px; /* Add space for fixed nav bar */
    }

    .input-section {
        grid-template-columns: 1fr;
    }

    .left-column,
    .right-column {
        gap: 15px;
    }

    /* Mobile responsiveness for new layout */
    .input-cards-column {
        gap: 15px;
    }

    .front-page-preview-column {
        margin-top: 20px;
    }


    .generate-btn-top {
        width: 100%;
        font-size: 1rem;
        padding: 14px 30px;
    }

    header {
        margin-bottom: 20px;
    }

    .header-top {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-bottom: 15px;
    }

    .header-left {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .header-center {
        order: 1;
    }

    .header-right {
        order: 2;
        flex-direction: column;
        gap: 8px;
        margin-top: 10px;
    }

    .auth-btn {
        font-size: 0.85rem;
        padding: 8px 16px;
        margin: 0;
    }

    header h1 {
        font-size: 1.8rem;
        margin-bottom: 5px;
    }

    header p {
        font-size: 0.95rem;
    }

    .resume-card {
        padding: 25px;
    }

    .job-card {
        padding: 12px;
    }

    .section {
        padding: 15px;
        margin-bottom: 15px;
    }

    .small-section {
        padding: 12px;
    }

    .section-header h2 {
        font-size: 1.2rem;
    }

    .contact-row-full {
        flex-direction: column;
        gap: 10px;
    }

    .contact-row-full input {
        width: 100%;
        margin-bottom: 0;
    }

    .education-item {
        flex-direction: column;
        gap: 10px;
    }

    .education-item input,
    .education-item select {
        width: 100%;
    }

    .skills-textarea {
        min-height: 120px;
    }

    .job-card {
        padding: 10px;
    }

    .job-card input,
    .job-card textarea {
        width: 100%;
        margin-bottom: 8px;
    }

    .job-header {
        flex-direction: column;
        gap: 8px;
    }

    .job-title-input,
    .company-name-input {
        width: 100%;
    }

    .confirmation-popup {
        width: 90vw;
        max-width: 380px;
        left: 50%;
        right: auto;
    }

    .confirmation-body {
        padding: 10px;
    }

    .confirmation-item {
        padding: 8px;
        margin-bottom: 8px;
    }

    .confirmation-header {
        padding: 10px 12px;
    }

    .confirmation-header h3 {
        font-size: 0.95rem;
    }

    .confirmation-item-preview {
        font-size: 0.8rem;
    }

    .confirmation-item-title {
        font-size: 0.9rem;
    }

    .confirmation-item-credit {
        font-size: 0.8rem;
    }

    .buy-credits-content {
        padding: 15px;
        max-width: 95vw;
    }

    .credit-packages {
        max-width: 100%;
        gap: 10px;
    }

    .credit-package {
        padding: 15px 12px;
    }

    .package-credits {
        font-size: 1.2rem;
        margin-bottom: 4px;
    }

    .package-price {
        font-size: 1.5rem;
        margin-bottom: 3px;
    }

    .package-per-credit {
        font-size: 0.75rem;
        margin-bottom: 10px;
    }

    .my-resumes-page {
        padding: 15px;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .highlight-toggle-container {
        flex-wrap: wrap;
        gap: 10px;
    }

    .pdf-btn {
        font-size: 0.8rem;
        padding: 5px 12px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 8px;
    }

    .top-nav {
        margin: 0;
        width: 100%;
    }

    header {
        margin-bottom: 15px;
    }

    .header-top {
        margin-bottom: 10px;
    }

    header h1 {
        font-size: 1.6rem;
        margin-bottom: 3px;
    }

    header p {
        font-size: 0.9rem;
    }

    .auth-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .generate-btn-top {
        font-size: 0.95rem;
        padding: 12px 20px;
    }

    .clear-btn-bottom {
        width: 95%;
        font-size: 0.95rem;
        padding: 10px 20px;
    }

    .section {
        padding: 10px;
        margin-bottom: 10px;
    }

    .small-section {
        padding: 8px;
    }

    .section-header h2 {
        font-size: 1.1rem;
    }

    .skills-textarea {
        min-height: 100px;
    }

    .job-card {
        padding: 8px;
    }

    .contact-row-full input,
    .education-item input,
    .education-item select,
    .job-card input,
    .job-card textarea {
        font-size: 14px;
        padding: 8px;
    }

    .add-btn-small,
    .remove-btn-small {
        font-size: 14px;
        padding: 6px 12px;
    }

    .my-resumes-page {
        padding: 10px;
    }

    .pdf-btn {
        font-size: 0.75rem;
        padding: 4px 10px;
    }

    .resume-header-actions {
        gap: 6px;
    }
}

/* Confirmation Popup */
.confirmation-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 475px;
    max-height: 80vh;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    z-index: 1001;
    overflow: hidden;
}

.confirmation-popup.active {
    display: flex;
    flex-direction: column;
}

/* Backdrop overlay */
.confirmation-popup.active::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
    backdrop-filter: blur(3px);
}

.confirmation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.confirmation-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.confirmation-controls {
    display: flex;
    gap: 8px;
}

.close-btn {
    width: 28px;
    height: 28px;
    border: 2px solid white;
    background: transparent;
    color: white;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: white;
    color: #667eea;
}

.confirmation-body {
    padding: 20px;
    overflow-y: auto;
    max-height: 500px;
}

.confirmation-item {
    padding: 15px;
    margin-bottom: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #f8f9fa;
    transition: all 0.3s;
}

.confirmation-item.disabled {
    opacity: 0.5;
    background: #f0f0f0;
}

.confirmation-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
}

.remove-job-from-confirmation-btn {
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.remove-job-from-confirmation-btn:hover {
    background: #cc0000;
    transform: scale(1.1);
}

.confirmation-item-title {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.confirmation-item-credit {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.confirmation-item-preview {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.4;
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.confirm-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.confirm-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.confirm-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.confirm-btn.confirmed {
    background: #4caf50;
    cursor: default;
}

.confirm-btn.confirmed:hover {
    transform: none;
    box-shadow: none;
}

/* Confirmation Footer */
.confirmation-footer {
    padding: 20px;
    border-top: 2px solid #e0e0e0;
    background: #f8f9fa;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.generate-all-btn {
    padding: 14px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.generate-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.generate-all-btn:active {
    transform: translateY(0);
}

.go-to-resumes-btn {
    padding: 14px 40px;
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.go-to-resumes-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.go-to-resumes-btn:active {
    transform: translateY(0);
}

.go-to-resumes-btn.has-notification {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
    border: 2px solid #ffd700;
    animation: pulse-notification 2s ease-in-out infinite;
}

.go-to-resumes-btn.has-notification:hover {
    background: linear-gradient(135deg, #ffed4e 0%, #ffd700 100%);
    color: #333;
    border-color: #ffed4e;
}

.go-to-resumes-btn.glow-yellow {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
    border: 2px solid #ffd700;
    animation: glow-yellow-pulse 2s ease-in-out infinite;
}

.go-to-resumes-btn.glow-yellow:hover {
    background: linear-gradient(135deg, #ffed4e 0%, #ffd700 100%);
    color: #333;
    border-color: #ffed4e;
}

/* My Resumes Page */
.my-resumes-page {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 900;
    overflow-y: auto;
    overflow-x: visible;
    padding: 110px 20px 20px 20px;
    -webkit-overflow-scrolling: touch;
}

.my-resumes-page.active {
    display: block;
}

/* ========================================
   BUY CREDITS PAGE
   ======================================== */

.buy-credits-page {
    display: none;
    width: 100%;
    min-height: calc(100vh - 60px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 77px 20px 60px 20px;
}

.buy-credits-page.active {
    display: block;
}

.buy-credits-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 30px;
}

.buy-credits-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 20px 16px 20px;
}

.pricing-title {
    font-size: 3rem;
    color: white;
    text-align: center;
    margin-bottom: 10px;
    font-weight: 700;
}

.pricing-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-bottom: 32px;
}

.pricing-packages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    justify-items: center;
    padding: 0 20px;
}

.pricing-card {
    background: white;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 16px;
    padding: 32px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 380px;
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.pricing-card.popular {
    border-color: #f093fb;
    background: white;
    box-shadow: 0 8px 24px rgba(240, 147, 251, 0.3);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.pack-name {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: 700;
}

.pack-description {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 25px;
}

.pack-price {
    font-size: 2.5rem;
    color: #667eea;
    font-weight: 700;
    margin-bottom: 5px;
}

.pack-credits {
    font-size: 1rem;
    color: #666;
    margin-bottom: 15px;
    padding: 8px 16px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 20px;
    display: inline-block;
    align-self: flex-start;
}

.pack-badge {
    font-size: 0.85rem;
    color: #10b981;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pack-badge::before {
    content: "✓";
    font-size: 1rem;
}

.pack-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    flex-grow: 1;
}

.pack-features li {
    color: #555;
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    font-size: 0.95rem;
}

.pack-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: 700;
}

.pack-btn {
    width: 100%;
    padding: 14px 24px;
    background: #cccccc;
    border: none;
    color: #888;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: not-allowed;
    transition: all 0.3s ease;
}

.pack-btn:not(:disabled) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    cursor: pointer;
}

.pack-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(240, 147, 251, 0.4);
}

@media (max-width: 1024px) {
    .pricing-packages {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .pricing-title {
        font-size: 2rem;
    }

    .pricing-subtitle {
        font-size: 1rem;
        margin-bottom: 40px;
    }

    .pricing-packages {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .pricing-card {
        max-width: 100%;
    }

    .buy-credits-container {
        padding: 20px 15px;
    }
}

.my-resumes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 30px;
    color: white;
}

.my-resumes-header h2 {
    font-size: 2rem;
    margin: 0;
}

.back-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    height: 44px;
}

.refresh-btn {
    padding: 10px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.back-btn:hover {
    background: white;
    color: #667eea;
}

.refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);
}

.refresh-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.refresh-icon {
    display: inline-block;
    font-size: 1.2rem;
    line-height: 1;
}

.refresh-btn.spinning .refresh-icon {
    animation: spin 1s linear infinite;
}

/* Split-screen layout for My Resumes */
.split-resumes-view {
    display: flex;
    gap: 20px;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    height: calc(100vh - 18px);
    min-height: 47px;
}

.resumes-selector {
    flex: 0 0 36%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.resumes-selector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    overflow: visible;
}

.resumes-selector-actions {
    position: relative;
}

.resumes-selector h2 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
}

.resumes-selector-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.refresh-btn-compact,
.download-all-btn-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: white;
    border: 2px solid #667eea;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 6px 12px;
    color: #667eea;
    font-size: 0.85rem;
    font-weight: 600;
}

.refresh-btn-compact:hover,
.download-all-btn-compact:hover {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
}

.refresh-icon {
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
}

.download-all-btn-compact svg {
    flex-shrink: 0;
}

.my-resumes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.resume-list-item {
    background: white;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.resume-list-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.resume-list-item.active {
    border-color: #667eea;
    background: linear-gradient(135deg, #f5f7ff 0%, #e8ebff 100%);
}

.resume-list-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.resume-list-item h4 {
    margin: 0;
    color: #333;
    font-size: 1rem;
    flex: 1;
}

.resume-list-item-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.resume-list-item .status-badge {
    font-size: 0.75rem;
    padding: 3px 8px;
}

.resume-list-item-date {
    font-size: 0.85rem;
    color: #666;
}

.resume-preview-panel {
    flex: 1;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.preview-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
    font-size: 1.2rem;
}

.preview-panel-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.preview-header {
    padding: 4px 12px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preview-header h3 {
    margin: 0;
    color: #333;
    font-size: 1rem;
}

.preview-actions {
    display: flex;
    gap: 8px;
}

.download-btn-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.download-btn-preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.edit-btn-preview {
    display: flex;
    align-items: center;
    gap: 3px;
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 5px 6px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edit-btn-preview:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.edit-btn-preview svg {
    width: 14px;
    height: 14px;
}

.edit-chevron {
    transition: transform 0.3s ease;
    margin-left: 2px;
}

.edit-btn-preview.open .edit-chevron,
.example-edit-btn.open .edit-chevron {
    transform: rotate(180deg);
}

.personal-details-btn-preview {
    display: flex;
    align-items: center;
    gap: 3px;
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 5px 6px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.personal-details-btn-preview:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.personal-details-btn-preview svg {
    width: 14px;
    height: 14px;
}

.personal-details-btn-preview.glow-yellow {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
    border: 2px solid #ffd700;
    animation: glow-yellow-pulse 2s ease-in-out infinite;
}

.personal-details-btn-preview.glow-yellow:hover {
    background: linear-gradient(135deg, #ffed4e 0%, #ffd700 100%);
    color: #333;
    border-color: #ffed4e;
}

.personal-details-btn-preview.glow-yellow svg {
    color: #333;
}

.my-resumes-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 20px;
    transition: opacity 0.3s ease;
}

.my-resume-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, opacity 0.3s;
}

.my-resume-card:hover {
    transform: translateY(-4px);
}

.my-resume-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 10px;
}

.my-resume-header h3 {
    font-size: 1.1rem;
    color: #333;
    margin: 0;
    flex: 1;
}

.resume-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pdf-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.pdf-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.pdf-btn:active {
    transform: translateY(0);
}

.delete-resume-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.delete-resume-btn:hover {
    background: #ff3838;
    transform: scale(1.1);
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-processing {
    background: #fff3cd;
    color: #856404;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

.status-failed {
    background: #f8d7da;
    color: #721c24;
}

.my-resume-meta {
    margin-bottom: 15px;
    color: #666;
    font-size: 0.85rem;
}

.my-resume-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 15px 0;
}

.resume-summary {
    background: #f8f9fa;
    padding: 15px;
    border-left: 4px solid #667eea;
    border-radius: 6px;
    margin-bottom: 10px;
}

.resume-summary p {
    color: #444;
    line-height: 1.6;
    font-size: 0.9rem;
    margin: 0;
    font-style: italic;
}

.spinner-small {
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.processing-text {
    color: #666;
    font-size: 0.95rem;
}

.completed-text {
    color: #155724;
    font-size: 0.95rem;
    font-weight: 600;
}

.failed-text {
    color: #721c24;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.retry-resume-btn {
    padding: 10px 24px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
}

.retry-resume-btn:hover:not(:disabled) {
    background: #5568d3;
}

.retry-resume-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* Resume Section Dropdowns */
.resume-section-dropdown {
    width: 100%;
    margin-bottom: 10px;
}

.dropdown-toggle {
    width: 100%;
    padding: 12px 15px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.dropdown-toggle:hover {
    background: #e9ecef;
    border-color: #667eea;
}

.dropdown-arrow {
    color: #667eea;
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.dropdown-content {
    margin-top: 8px;
    padding: 15px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.skill-category {
    margin-bottom: 20px;
}

.skill-category:last-child {
    margin-bottom: 0;
}

.skill-category-title {
    color: #667eea;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.skills-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skills-list li {
    background: #667eea;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.job-accomplishment {
    margin-bottom: 20px;
}

.job-accomplishment:last-child {
    margin-bottom: 0;
}

.job-accomplishment h4 {
    color: #667eea;
    font-size: 1rem;
    margin-bottom: 10px;
}

.bullets-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bullets-list li {
    padding-left: 20px;
    margin-bottom: 8px;
    position: relative;
    color: #444;
    line-height: 1.5;
    font-size: 0.9rem;
}

.bullets-list li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.loading-resumes, .error-resumes, .no-resumes {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    font-size: 1.2rem;
    color: #666;
    grid-column: 1 / -1;
}

.error-resumes {
    color: #721c24;
    background: #f8d7da;
}

/* Account Menu Popup */
.account-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 1000;
}

.account-menu.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.account-menu-content {
    background: white;
    padding: 30px 40px;
    border-radius: 12px;
    min-width: 350px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.account-menu-content h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-align: center;
}

.account-info {
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.account-email {
    color: #333;
    font-size: 1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.account-credits {
    color: #667eea;
    font-size: 1.1rem;
    font-weight: 700;
}

.my-resumes-menu-btn {
    width: 100%;
    padding: 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-bottom: 10px;
}

.my-resumes-menu-btn:hover {
    background: #5a6fd8;
}

.my-resumes-menu-btn.has-notification {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
    animation: pulse-notification 2s ease-in-out infinite;
}

.my-resumes-menu-btn.has-notification:hover {
    background: linear-gradient(135deg, #ffed4e 0%, #ffd700 100%);
    color: #333;
}

.buy-credits-menu-btn {
    width: 100%;
    padding: 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-bottom: 10px;
}

.buy-credits-menu-btn:hover {
    background: #5a6fd8;
}

.logout-btn {
    width: 100%;
    padding: 12px;
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.logout-btn:hover {
    background: #ff3838;
}

.purchase-history-btn {
    width: 100%;
    padding: 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-bottom: 10px;
}

.purchase-history-btn:hover {
    background: #5568d3;
}

.delete-account-btn {
    width: 100%;
    padding: 12px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.delete-account-btn:hover {
    background: #5a6268;
}

/* Purchase History Modal */
.purchase-history-content {
    max-width: 600px !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
}

.purchase-history-list {
    margin-top: 20px;
}

.purchase-item {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
}

.purchase-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.purchase-item-package {
    font-weight: 600;
    color: #333;
    font-size: 1.05rem;
}

.purchase-item-amount {
    font-weight: 700;
    color: #667eea;
    font-size: 1.1rem;
}

.purchase-item-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #666;
}

.purchase-item-credits {
    color: #28a745;
    font-weight: 600;
}

.purchase-item-date {
    color: #999;
}

.purchase-history-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

/* Delete Account Modal */
.delete-account-content {
    max-width: 500px !important;
    max-height: 85vh !important;
    overflow-y: auto !important;
    padding: 30px !important;
}

.warning-box {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.warning-box p {
    margin: 8px 0;
    color: #856404;
}

.warning-box strong {
    color: #721c24;
}

.warning-box ul {
    margin: 10px 0;
    padding-left: 25px;
    color: #856404;
}

.warning-box ul li {
    margin: 5px 0;
}

.delete-confirmation-section {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.delete-confirmation-section label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #333;
}

.delete-confirmation-section input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.delete-account-submit-btn {
    background: #dc3545 !important;
    color: white;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.delete-account-submit-btn:hover {
    background: #c82333 !important;
}

/* Buy Credits Modal */
#buy-credits-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.buy-credits-content {
    background: white;
    padding: 30px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
}

.credit-packages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.credit-package {
    position: relative;
    padding: 18px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.credit-package:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.credit-package.popular {
    border-color: #4CAF50;
    border-width: 3px;
}

.credit-package.best-value {
    border-color: #667eea;
    border-width: 3px;
}

.popular-badge, .best-value-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
}

.popular-badge {
    background: #4CAF50;
}

.best-value-badge {
    background: #667eea;
}

.package-credits {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 6px;
}

.package-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: #667eea;
    margin-bottom: 4px;
}

.package-per-credit {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 12px;
}

.package-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.package-btn:hover {
    transform: scale(1.05);
}

.close-modal-btn {
    width: 100%;
    padding: 12px;
    background: #e0e0e0;
    color: #333;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.close-modal-btn:hover {
    background: #d0d0d0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media print {
    body {
        background: white;
    }

    .download-btn,
    .generate-btn,
    .add-btn,
    .remove-btn,
    .input-section,
    header,
    .generate-section {
        display: none;
    }

    .resume-card {
        box-shadow: none;
        page-break-after: always;
    }
}

/* My Resume Meta Section */
.my-resume-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

/* Highlight Toggle Container */
.highlight-toggle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

/* Resumes Action Buttons */
.resumes-action-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

/* Download All Container */
.download-all-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
}

.download-all-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.download-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.download-all-btn:active {
    transform: translateY(0);
}

/* Highlight Toggle Button */

/* Bold content styling */
.my-resume-body b {
    font-weight: 600;
}

/* ========================================
   PDF PREVIEW STYLES
   ======================================== */

/* Preview Placeholder */
.preview-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border: 2px dashed #cbd5e0;
}

.preview-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.preview-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.preview-btn svg {
    flex-shrink: 0;
}

/* Preview Loading */
.preview-loading {
    text-align: center;
    padding: 40px;
}

.preview-loading p {
    margin-top: 15px;
    color: #666;
    font-size: 0.95rem;
}

/* Preview Error */
.preview-error {
    text-align: center;
    padding: 40px 20px;
    color: #e53e3e;
}

.preview-error p {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

/* Preview Container */
.preview-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

/* Preview Controls */
.preview-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    background: white;
    flex-wrap: wrap;
    gap: 8px;
    overflow: hidden;
}

.preview-controls-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.preview-controls-left label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #4a5568;
    white-space: nowrap;
}

.font-select {
    padding: 6px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.2s;
}

.font-select:hover {
    border-color: #667eea;
}

.font-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.preview-controls-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.zoom-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s;
}

.zoom-btn:hover {
    background: #f7fafc;
    border-color: #667eea;
    color: #667eea;
}

.zoom-level {
    min-width: 50px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #4a5568;
}

.template-select {
    padding: 6px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.2s;
    min-width: 150px;
}

.template-select:hover {
    border-color: #667eea;
}

.template-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.font-size-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.spacing-controls {
    display: flex;
    align-items: center;
    gap: 0;
}

.size-btn {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: bold;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s;
}

.size-btn:hover {
    background: #f7fafc;
    border-color: #667eea;
    color: #667eea;
}

.font-size-display {
    min-width: 40px;
    text-align: center;
    font-size: 0.725rem;
    font-weight: 600;
    color: #4a5568;
}

.control-group input[type="checkbox"] {
    margin-right: 6px;
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.control-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
}

/* Preview Edit Controls - Collapsible */
.preview-edit-controls {
    flex-direction: row;
    align-items: center;
    gap: 15px;
    padding: 0;
    flex-wrap: wrap;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    display: none;
}

.preview-edit-controls[style*="display: flex"],
.preview-edit-controls.open {
    display: flex !important;
    max-height: 500px;
    padding: 10px 12px;
}

.preview-edit-controls .control-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 1;
}

.preview-edit-controls .control-group:nth-child(1),
.preview-edit-controls .control-group:nth-child(2) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.preview-edit-controls .control-group:nth-child(3) {
    flex-basis: 100%;
    flex-wrap: wrap;
}

.preview-edit-controls .control-group label {
    font-size: 0.775rem;
    font-weight: 600;
    color: #4a5568;
    white-space: nowrap;
}

.preview-edit-controls .template-select {
    min-width: 140px;
    max-width: 160px;
    font-size: 0.775rem;
    padding: 4px 8px;
}

.preview-edit-controls .font-select {
    min-width: 100px;
    max-width: 120px;
    font-size: 0.775rem;
    padding: 4px 8px;
}

/* Checkbox Row - Two checkboxes on same line */
.preview-edit-controls .checkbox-row {
    display: flex;
    gap: 20px;
    width: 100%;
    align-items: center;
}

.preview-edit-controls .checkbox-row label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 0.775rem;
    font-weight: 600;
}

.preview-edit-controls .checkbox-row input[type="checkbox"] {
    cursor: pointer;
}

/* Section order checkboxes inline */
#section-order-checkboxes,
#example-section-order-checkboxes,
#front-page-section-order-checkboxes {
    display: inline-flex;
    gap: 15px;
    align-items: center;
}

#section-order-checkboxes label,
#example-section-order-checkboxes label,
#front-page-section-order-checkboxes label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 0.775rem;
    font-weight: 600;
}

#section-order-checkboxes input[type="checkbox"],
#example-section-order-checkboxes input[type="checkbox"] {
    cursor: pointer;
}

/* Preview Zoom Controls - Inline with action buttons */
.preview-zoom-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 10px;
    border-left: 1px solid #e5e7eb;
}

/* Section Order Controls */
.section-order-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.section-order-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.order-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.order-checkbox input[type="checkbox"] {
    cursor: pointer;
}

.control-group.zoom-and-headers {
    display: flex;
    align-items: center;
    gap: 20px;
}

.zoom-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.expand-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    background: white;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.expand-btn:hover {
    background: #f7fafc;
    border-color: #667eea;
}

.expand-btn svg {
    stroke: #4a5568;
}

.expand-btn:hover svg {
    stroke: #667eea;
}

/* Preview Canvas Wrapper */
.preview-canvas-wrapper {
    background: white;
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: auto;
    flex: 1;
    position: relative;
    text-align: center;
}

/* Front page preview canvas - condensed */
#front-page-preview-wrapper {
    background: #f9fafb;
    padding: 15px;
    max-height: 900px;
    overflow-y: auto;
}

#front-page-preview-wrapper .preview-canvas {
    transform-origin: top center;
}

.preview-canvas {
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    vertical-align: top;
}

/* Watermark Overlay for Non-Purchasers */
.preview-watermark {
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
    align-content: space-around;
    gap: 10px 15px;
    pointer-events: none;
    z-index: 10;
    transform: rotate(-45deg);
    overflow: hidden;
}

.watermark-text {
    color: rgba(150, 150, 150, 0.35);
    font-size: 1.3rem;
    font-weight: 700;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 2px;
    user-select: none;
}

/* Download Button on Card */
.download-btn-card {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.download-btn-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.4);
}

.download-btn-card svg {
    flex-shrink: 0;
}

/* ========================================
   PREVIEW MODAL (Fullscreen)
   ======================================== */

.preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.preview-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

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

.preview-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e2e8f0;
}

.preview-modal-header h3 {
    font-size: 1.3rem;
    color: #2d3748;
    margin: 0;
}

.modal-close-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7fafc;
    border: none;
    border-radius: 6px;
    font-size: 1.5rem;
    color: #718096;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-close-btn:hover {
    background: #edf2f7;
    color: #2d3748;
}

.preview-modal-body {
    flex: 1;
    overflow: auto;
    padding: 25px;
    background: #f8f9fa;
}

.preview-modal-canvas {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.preview-modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: center;
}

.download-btn-modal {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.download-btn-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Mobile Responsiveness for Preview */
@media (max-width: 768px) {
    .split-resumes-view {
        flex-direction: column;
        height: auto;
        min-height: auto;
        gap: 15px;
    }

    .resumes-selector {
        flex: 0 0 auto;
        width: 100%;
        max-height: 325px;
        padding: 15px;
    }

    .resumes-selector-header {
        flex-wrap: wrap;
        gap: 10px;
    }

    .resumes-selector h2 {
        font-size: 1.2rem;
    }

    .resumes-selector-actions {
        flex-wrap: wrap;
    }

    .refresh-btn-compact,
    .download-all-btn-compact {
        font-size: 0.8rem;
        padding: 5px 10px;
    }

    .resume-preview-panel {
        flex: 1;
        min-height: calc(100vh - 350px);
    }

    .preview-header {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 12px;
    }

    .preview-header h3 {
        font-size: 0.9rem;
        text-align: center;
    }

    .preview-actions {
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 3px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .personal-details-btn-preview,
    .edit-btn-preview {
        font-size: 0.7rem;
        padding: 5px 8px;
        gap: 2px;
        flex: 0 0 auto;
        min-width: 0;
    }

    .download-btn-preview {
        font-size: 0.75rem;
        padding: 8px;
        width: 36px;
        height: 36px;
        flex: 0 0 36px;
    }

    .personal-details-btn-preview svg,
    .edit-btn-preview svg,
    .download-btn-preview svg {
        width: 14px;
        height: 14px;
        flex-shrink: 0;
    }

    .preview-zoom-controls {
        width: auto;
        flex: 0 1 auto;
        justify-content: flex-end;
        gap: 4px;
    }

    .preview-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .preview-controls-left,
    .preview-controls-right {
        justify-content: center;
    }

    .preview-edit-controls {
        gap: 10px;
        padding: 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        display: none;
    }

    .preview-edit-controls .control-group {
        flex: 0 0 100%;
        min-width: 0;
    }

    .preview-edit-controls .control-group:nth-child(2) {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px;
    }

    .preview-edit-controls .control-group:nth-child(2) > label:first-child,
    .preview-edit-controls .control-group:nth-child(2) .font-select,
    .preview-edit-controls .control-group:nth-child(2) .font-size-controls {
        flex-shrink: 0;
        white-space: nowrap;
    }

    .preview-edit-controls .control-group:nth-child(2) .font-select {
        min-width: 120px;
        max-width: 150px;
    }

    .preview-edit-controls .control-group:nth-child(2) .font-size-controls {
        display: flex;
        gap: 4px;
    }

    .preview-edit-controls .control-group:nth-child(2) > label[style*="margin-left"] {
        flex: 0 0 auto;
        margin-left: 0 !important;
        margin-top: 8px;
        white-space: nowrap;
        margin-right: 8px;
    }

    .preview-edit-controls .control-group:nth-child(2) .spacing-controls {
        flex-shrink: 0;
        white-space: nowrap;
        display: flex;
        gap: 4px;
        margin-top: 8px;
    }

    .preview-edit-controls .template-select,
    .preview-edit-controls .font-select {
        max-width: 200px;
        font-size: 0.85rem;
    }

    .preview-edit-controls .checkbox-row {
        flex-wrap: wrap !important;
        gap: 8px;
        justify-content: flex-start;
    }

    .preview-edit-controls .checkbox-row label {
        white-space: nowrap !important;
        font-size: 0.85rem !important;
        flex: 0 0 auto;
    }

    #section-order-checkboxes,
    #example-section-order-checkboxes,
    #front-page-section-order-checkboxes {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px;
        width: 100%;
    }

    #section-order-checkboxes label,
    #example-section-order-checkboxes label,
    #front-page-section-order-checkboxes label {
        font-size: 0.85rem !important;
        flex: 0 0 auto;
    }

    .preview-canvas-wrapper {
        max-height: none;
        height: calc(100vh - 450px);
        min-height: 600px;
        padding: 10px;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }

    .preview-modal-content {
        max-height: 90vh;
        margin: 10px;
    }

    .preview-modal-body {
        padding: 15px;
    }
}

/* Disabled credit packages for production */
.credit-package.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f8f9fa;
    border-color: #dee2e6;
}

.credit-package.disabled:hover {
    transform: none;
    box-shadow: none;
}

.credit-package.disabled .package-btn {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.7;
}

.credit-package.disabled .package-btn:hover {
    background: #6c757d;
    transform: none;
}

/* ========================================
   PERSONAL DETAILS MODAL
   ======================================== */

#personal-details-modal {
    z-index: 3000;
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.update-personal-details-btn {
    padding: 10px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.update-personal-details-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);
}

.update-personal-details-btn .checkmark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 4px;
    font-size: 12px;
    transition: all 0.3s ease;
    color: transparent;
}

.update-personal-details-btn .checkmark.filled {
    background: white;
    color: #667eea;
    border-color: white;
}

.update-personal-details-btn.needs-attention {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
    animation: pulse-notification 2s ease-in-out infinite;
}

.update-personal-details-btn.needs-attention:hover {
    background: linear-gradient(135deg, #ffed4e 0%, #ffd700 100%);
    color: #333;
}

.update-personal-details-btn.needs-attention .checkmark {
    border-color: rgba(51, 51, 51, 0.6);
}

.personal-details-content {
    max-width: 500px;
    width: 90%;
    padding: 25px 30px;
}

.personal-details-content h2 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.personal-details-content .modal-subtitle {
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.personal-details-content form > input {
    padding: 8px;
    margin-bottom: 6px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.personal-details-content form > input:focus {
    outline: none;
    border-color: #667eea;
}

.education-section {
    margin-top: 8px;
}

.education-section h3 {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 6px;
}

#education-container {
    max-height: 250px;
    overflow-y: auto;
    padding-right: 5px;
}

#education-container::-webkit-scrollbar {
    width: 8px;
}

#education-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#education-container::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

#education-container::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

.education-entry {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    padding-right: 35px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 8px;
    position: relative;
}

.education-entry input {
    padding: 8px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.education-entry input:focus {
    outline: none;
    border-color: #667eea;
}

.remove-education-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    line-height: 1;
}

.remove-education-btn:hover {
    background: #cc0000;
}

.add-education-btn {
    padding: 8px 16px;
    background: transparent;
    border: 2px dashed #667eea;
    color: #667eea;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
    margin-bottom: 10px;
    font-weight: 500;
}

.add-education-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: #764ba2;
    color: #764ba2;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.modal-actions .save-btn,
.modal-actions .cancel-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-actions .save-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.modal-actions .save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.modal-actions .cancel-btn {
    background: #e0e0e0;
    color: #666;
}

.modal-actions .cancel-btn:hover {
    background: #d0d0d0;
}

/* ========================================
   JOB SEARCH COMPONENTS
   ======================================== */

/* Mode Toggle */
.job-input-mode-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    background: #f5f5f5;
    padding: 4px;
    border-radius: 8px;
}

.mode-toggle-btn {
    flex: 1;
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mode-toggle-btn:hover {
    color: #667eea;
}

.mode-toggle-btn.active {
    background: white;
    color: #667eea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Mode containers */
.job-input-mode {
    display: none;
}

.job-input-mode.active {
    display: block;
}

/* Job Search Container */
.job-search-container {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

/* Search Filters */
.search-filters {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.search-main-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    align-items: center;
}

.filter-toggle-btn {
    padding: 12px 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #667eea;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-toggle-btn:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.advanced-filters {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
    padding: 16px;
    background: #f8f9ff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.search-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.search-input,
.filter-select {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    height: 48px;
    box-sizing: border-box;
    font-family: inherit;
    width: 100%;
    min-width: 0;
}

.search-input:focus,
.filter-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn.pulse {
    animation: pulse-search 2s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
}

@keyframes pulse-search {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(102, 126, 234, 0);
    }
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.search-btn:active {
    transform: translateY(0);
}

.search-input.error {
    border-color: #ff4757;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Job Search Results */
.job-search-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 8px;
}

.job-search-results::-webkit-scrollbar {
    width: 8px;
}

.job-search-results::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.job-search-results::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

.job-search-results::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

/* Job Result Card */
.job-result-card {
    display: flex;
    gap: 8px;
    padding: 10px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.job-result-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.job-result-card.expanded {
    border-color: #667eea;
}

.job-result-checkbox {
    display: flex;
    align-items: flex-start;
    padding-top: 2px;
}

.job-result-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #667eea;
}

.job-result-content {
    flex: 1;
}

.job-result-header {
    margin-bottom: 5px;
}

.job-result-header h4 {
    font-size: 1rem;
    color: #333;
    margin: 0 0 2px 0;
}

.job-result-company {
    font-size: 0.85rem;
    color: #667eea;
    font-weight: 600;
}

.job-result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.78rem;
    color: #666;
}

.job-location,
.job-type {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.job-remote-badge {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.job-result-description {
    font-size: 0.82rem;
    color: #555;
    line-height: 1.3;
    margin-bottom: 5px;
}

.job-result-expanded {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

.job-full-description {
    margin-bottom: 12px;
}

.job-full-description strong {
    display: block;
    margin-bottom: 8px;
    color: #333;
}

.job-full-description p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    white-space: pre-wrap;
}

.job-apply-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.job-apply-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Loading State */
.job-search-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    gap: 16px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.job-search-loading p {
    color: #666;
    font-size: 0.95rem;
}

/* Empty State */
.job-search-empty,
.job-search-error {
    padding: 40px;
    text-align: center;
    color: #666;
}

.job-search-error {
    color: #d32f2f;
}

.job-search-error p {
    margin: 8px 0;
}

/* Add Selected Jobs Button */
.add-selected-jobs-btn {
    padding: 14px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 12px;
}

.add-selected-jobs-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.add-selected-jobs-btn:active {
    transform: translateY(0);
}

/* Selected Jobs Display */
.selected-jobs-display {
    margin-top: 24px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.selected-jobs-display h3 {
    font-size: 1rem;
    color: #333;
    margin-bottom: 12px;
}

.selected-jobs-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-main-row {
        display: flex;
        gap: 10px;
    }

    .search-main-row .search-input {
        flex: 1;
    }

    .search-main-row .filter-toggle-btn {
        padding: 10px 12px;
        min-width: auto;
    }

    .search-main-row .search-btn {
        padding: 10px 12px;
        min-width: auto;
    }

    .search-row {
        grid-template-columns: 1fr;
    }

    .filter-row {
        grid-template-columns: 1fr;
    }

    .job-result-card {
        flex-direction: column;
    }

    .job-result-checkbox {
        padding-top: 0;
    }

    .experience-buttons {
        flex-direction: column;
    }
}

/* ========================================
   HOW IT WORKS SECTION (INLINE)
   ======================================== */

.how-it-works-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 50px 30px;
    margin: 40px 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.how-it-works-title {
    font-size: 2.5rem;
    color: white;
    text-align: center;
    margin-bottom: 10px;
    font-weight: 700;
}

.how-it-works-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    margin-bottom: 50px;
    font-weight: 400;
}

/* Steps Container */
.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.step-card {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 20px auto 25px;
    color: #667eea;
}

.step-icon svg {
    width: 100%;
    height: 100%;
}

.step-card h3 {
    font-size: 1.5rem;
    color: #333;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 700;
}

.step-card p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 20px;
}

.step-features {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: auto;
}

.step-features li {
    padding: 10px 15px;
    margin-bottom: 8px;
    background: #f8f9ff;
    border-left: 4px solid #667eea;
    border-radius: 4px;
    color: #333;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Magic Section */
.magic-section {
    background: white;
    border-radius: 16px;
    padding: 40px 35px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.magic-section h2 {
    font-size: 2.2rem;
    color: #333;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 700;
}

.magic-description {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    margin-bottom: 40px;
}

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

.magic-feature {
    text-align: center;
    padding: 25px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border: 2px solid #e8ecff;
    transition: all 0.3s;
}

.magic-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
}

.magic-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.magic-feature h4 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 12px;
    font-weight: 700;
}

.magic-feature p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}


/* Mobile Responsive */
@media (max-width: 1024px) {
    .steps-container {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .how-it-works-section {
        padding: 30px 20px;
    }

    .how-it-works-title {
        font-size: 1.8rem;
    }

    .how-it-works-subtitle {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    .step-card {
        padding: 30px 20px;
    }

    .magic-section {
        padding: 30px 20px;
    }

    .magic-section h2 {
        font-size: 1.6rem;
    }

    .header-left {
        flex-direction: column;
        gap: 8px;
    }

    .my-resumes-btn-header,
    .how-it-works-btn-header {
        font-size: 0.85rem;
        padding: 8px 12px;
    }

    .how-it-works-btn-inline {
        width: 90%;
        font-size: 1rem;
        padding: 12px 30px;
    }
}

/* ========================================
   EXAMPLE EDITOR SECTION
   ======================================== */

.example-editor-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 50px 40px;
    margin: 40px 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.example-editor-title {
    font-size: 2.5rem;
    color: white;
    text-align: center;
    margin-bottom: 12px;
    font-weight: 700;
}

.example-editor-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    margin-bottom: 40px;
}

.example-editor-container {
    max-width: 900px;
    margin: 0 auto;
}

.example-editor-panel {
    background: white;
    border-radius: 12px;
    padding: 20px 25px 25px 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.example-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
}

.example-editor-header h3 {
    font-size: 1.5rem;
    color: #333;
    font-weight: 700;
}

.example-editor-header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.example-editor-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.example-zoom-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 15px;
    border-left: 1px solid #e5e7eb;
}

.example-editor-controls {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    padding: 0;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.example-editor-controls .control-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.example-editor-controls .control-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4a5568;
    white-space: nowrap;
}

.example-editor-controls .checkbox-row {
    display: flex;
    gap: 20px;
    width: 100%;
    align-items: center;
}

.example-editor-controls .checkbox-row label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 600;
}

.example-editor-controls .checkbox-row input[type="checkbox"] {
    cursor: pointer;
}

.example-canvas-wrapper {
    background: #f5f5f5;
    border-radius: 6px;
    padding: 20px;
    min-height: 800px;
    text-align: center;
    position: relative;
    overflow: auto;
}

.example-editor-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.example-editor-footer p {
    color: #666;
    font-size: 0.95rem;
    font-style: italic;
}

@media (max-width: 768px) {
    .example-editor-section {
        padding: 30px 0;
        margin-left: -10px;
        margin-right: -10px;
    }

    .example-editor-title {
        font-size: 1.8rem;
        padding: 0 15px;
    }

    .example-editor-subtitle {
        font-size: 0.95rem;
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .example-editor-container {
        max-width: 100%;
        padding: 0;
        margin: 0;
    }

    .example-editor-panel {
        padding: 15px 10px;
        margin: 0 10px;
        border-radius: 8px;
    }

    .example-editor-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
        padding: 0;
        padding-bottom: 15px;
    }

    .example-editor-header-actions {
        width: 100%;
        flex-wrap: wrap;
        gap: 10px;
    }

    .example-zoom-controls {
        padding-left: 0;
        border-left: none;
        flex-direction: row;
    }

    .example-editor-controls {
        gap: 10px;
        padding: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .example-editor-controls .control-group {
        flex: 0 0 100%;
        min-width: 0;
    }

    .example-editor-controls .control-group:nth-child(2) {
        flex-wrap: wrap;
    }

    .example-editor-controls .control-group:nth-child(2) > label:first-child,
    .example-editor-controls .control-group:nth-child(2) .font-select,
    .example-editor-controls .control-group:nth-child(2) .font-size-controls {
        flex: 0 0 auto;
    }

    .example-editor-controls .control-group:nth-child(2) > label[style*="margin-left"] {
        flex: 0 0 auto;
        margin-left: 0 !important;
        margin-top: 8px;
        margin-right: 8px;
    }

    .example-editor-controls .control-group:nth-child(2) .spacing-controls {
        flex: 0 0 auto;
        margin-top: 8px;
    }

    .example-editor-controls .template-select,
    .example-editor-controls .font-select {
        max-width: 200px;
        font-size: 0.85rem;
    }

    .example-editor-controls .checkbox-row {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: flex-start;
    }

    .example-canvas-wrapper {
        min-height: 480px;
        padding: 10px 5px;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
        width: 100%;
        margin: 0;
        background: #f8f9fa;
        border-radius: 4px;
    }

    .example-editor-footer {
        padding: 10px;
        margin-top: 10px;
    }
}

/* Version Tag */
.version-tag {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 9999;
    pointer-events: none;
}
