:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --background: #f8fafc;
    --surface: #ffffff;
    --text: #1e293b;
    --text-secondary: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --premium: #7c3aed;
    --premium-dark: #6d28d9;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --radius-lg: 20px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 100;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
}

.logo-img {
    width: 190px;
    height: 100px;
    background: transparent;
    object-fit: contain;
}

.footer-logo-img {
    height: 120px;
    width: auto;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

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

.nav-links a:hover {
    color: var(--primary);
}

.nav-cta {
    background: linear-gradient(135deg, var(--premium), var(--premium-dark));
    color: white !important;
    padding: 0.65rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(124, 58, 237, 0.3);
    position: relative;
    overflow: hidden;
}

.nav-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.nav-cta:hover::before {
    left: 100%;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

/* Hero */
.hero {
    background: transparent;
    padding-bottom: 4rem;
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* ============================================
   ANIMATED BACKGROUND ELEMENTS
   ============================================ */

/* Floating Orbs Container */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

/* Gradient Orbs - Visible and Animated */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: gentleFloat 8s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.4) 0%, transparent 70%);
    top: -10%;
    right: -5%;
    animation-duration: 10s;
}

.orb-2 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.35) 0%, transparent 70%);
    bottom: 0%;
    left: -5%;
    animation-delay: -3s;
    animation-duration: 12s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.35) 0%, transparent 70%);
    top: 40%;
    right: 0%;
    animation-delay: -6s;
    animation-duration: 9s;
}

.orb-4 {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.3) 0%, transparent 70%);
    bottom: -10%;
    right: 30%;
    animation-delay: -4s;
    animation-duration: 11s;
}

/* Gentle Floating Animation - Noticeable Movement */
@keyframes gentleFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -20px) scale(1.05);
    }

    50% {
        transform: translate(-20px, 25px) scale(0.98);
    }

    75% {
        transform: translate(25px, 15px) scale(1.03);
    }
}

/* Re-enable shapes with subtle animation */
.shape {
    position: absolute;
    opacity: 0.1;
    animation: drift 15s linear infinite;
}

.shape-1,
.shape-2,
.shape-3,
.shape-4,
.shape-5 {
    display: block;
}

.shape-1 {
    width: 80px;
    height: 80px;
    border: 4px solid var(--primary);
    border-radius: 16px;
    top: 12%;
    left: 6%;
    animation-delay: 0s;
    transform: rotate(45deg);
}

.shape-2 {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--premium), var(--primary));
    border-radius: 50%;
    top: 22%;
    right: 12%;
    animation-delay: -6s;
    animation-duration: 28s;
    opacity: 0.25;
}

.shape-3 {
    width: 100px;
    height: 100px;
    border: 4px solid var(--success);
    border-radius: 50%;
    bottom: 25%;
    left: 10%;
    animation-delay: -12s;
    animation-duration: 32s;
}

.shape-4 {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--premium));
    top: 55%;
    right: 6%;
    animation-delay: -18s;
    transform: rotate(45deg);
    opacity: 0.2;
}

.shape-5 {
    width: 70px;
    height: 70px;
    border: 4px solid var(--warning);
    border-radius: 12px;
    bottom: 15%;
    right: 20%;
    animation-delay: -10s;
    animation-duration: 30s;
}

/* Drift Animation - More Dynamic */
@keyframes drift {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.15;
    }

    25% {
        transform: translateY(-20px) translateX(10px) rotate(90deg);
        opacity: 0.25;
    }

    50% {
        transform: translateY(-40px) translateX(-15px) rotate(180deg);
        opacity: 0.1;
    }

    75% {
        transform: translateY(-20px) translateX(20px) rotate(270deg);
        opacity: 0.2;
    }

    100% {
        transform: translateY(0) rotate(360deg);
        opacity: 0.15;
    }
}

/* Particles hidden for subtle effect */
.particles,
.particle {
    display: none;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--primary), var(--premium));
    border-radius: 50%;
    opacity: 0.4;
    animation: sparkle 3s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
}

.particle:nth-child(1) {
    top: 15%;
    left: 15%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 35%;
    left: 85%;
    animation-delay: 0.4s;
}

.particle:nth-child(3) {
    top: 55%;
    left: 25%;
    animation-delay: 0.8s;
}

.particle:nth-child(4) {
    top: 75%;
    left: 75%;
    animation-delay: 1.2s;
}

.particle:nth-child(5) {
    top: 25%;
    left: 55%;
    animation-delay: 1.6s;
}

.particle:nth-child(6) {
    top: 65%;
    left: 10%;
    animation-delay: 2s;
}

.particle:nth-child(7) {
    top: 45%;
    left: 92%;
    animation-delay: 2.4s;
}

.particle:nth-child(8) {
    top: 8%;
    left: 65%;
    animation-delay: 2.8s;
}

@keyframes sparkle {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
        box-shadow: 0 0 10px rgba(37, 99, 235, 0.3);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.8);
        box-shadow: 0 0 20px rgba(37, 99, 235, 0.6), 0 0 40px rgba(124, 58, 237, 0.3);
    }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 5% 2rem;
    text-align: center;
    position: relative;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.25rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--premium));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
}

.hero-cta .arrow {
    transition: transform 0.3s;
}

.hero-cta:hover .arrow {
    transform: translateX(4px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* ============================================
   Social Proof - Interviewed With Section
   ============================================ */
.interviewed-with-section {
    background: rgba(255, 255, 255, 0.7);
    padding: 4rem 5%;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    overflow: hidden;
}

.interviewed-with-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.interviewed-with-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.interviewed-with-disclaimer {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

/* Marquee Wrapper with fade edges */
.logo-marquee-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
}

/* Scrolling Marquee */
.logo-marquee {
    display: flex;
    align-items: center;
    gap: 4rem;
    animation: marquee-scroll 40s linear infinite;
    width: max-content;
}

.logo-marquee:hover {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.company-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.company-logo img {
    height: 80px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.company-logo:hover img {
    opacity: 1;
    transform: scale(1.05);
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .interviewed-with-section {
        padding: 2.5rem 5%;
    }

    .interviewed-with-title {
        font-size: 1.5rem;
    }

    .interviewed-with-disclaimer {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .logo-marquee {
        gap: 2rem;
        animation-duration: 25s;
    }

    .company-logo {
        padding: 0.5rem 1rem;
    }

    .company-logo img {
        height: 60px;
    }
}

/* Scanner Section */
.scanner-section {
    padding: 5rem 5%;
    background: transparent;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-secondary);
}

.scanner-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.input-card:hover {
    box-shadow: var(--shadow-lg);
}

.input-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.step-badge {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

/* Upload Zone */
.upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.03);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.upload-text {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.upload-subtext {
    color: var(--primary);
    font-weight: 500;
}

.upload-formats {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.file-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(37, 99, 235, 0.1));
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.file-icon {
    font-size: 2rem;
}

.file-name {
    font-weight: 600;
    display: block;
}

.file-size {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.remove-file {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s;
}

.remove-file:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

/* Textarea */
.textarea-wrapper {
    position: relative;
}

.textarea-wrapper textarea {
    width: 100%;
    min-height: 180px;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    transition: all 0.2s;
}

.textarea-wrapper textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.char-count {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.optional-field {
    margin-top: 1.25rem;
}

.optional-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.optional-field input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: all 0.2s;
}

.optional-field input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Mobile Resume Toggle (Upload vs Scan) - Hidden on Desktop */
.mobile-resume-toggle {
    display: none;
    gap: 0.5rem;
    margin-bottom: 1rem;
    background: var(--background);
    padding: 0.35rem;
    border-radius: 50px;
}

.resume-toggle-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.resume-toggle-btn.active {
    background: var(--surface);
    color: var(--primary);
    box-shadow: var(--shadow);
}

.resume-toggle-btn .toggle-icon {
    font-size: 1.1rem;
}

/* Scan Zone (Mobile Only) */
.scan-zone {
    border: 2px dashed var(--primary-light);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.03) 0%, rgba(37, 99, 235, 0.08) 100%);
}

.scan-zone:hover,
.scan-zone:active {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
    transform: scale(1.01);
}

.scan-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.scan-text {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.scan-subtext {
    color: var(--text-secondary);
    font-weight: 500;
    display: block;
    margin-bottom: 0.5rem;
}

.scan-formats {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Job Input Toggle (Paste vs URL) */
.job-input-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    background: var(--background);
    padding: 0.35rem;
    border-radius: 50px;
}

.job-toggle-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.job-toggle-btn.active {
    background: var(--surface);
    color: var(--primary);
    box-shadow: var(--shadow);
}

.job-toggle-btn .toggle-icon {
    font-size: 1.1rem;
}

/* URL Input Styles */
.url-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.url-input-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.2s;
}

.url-input-container:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.url-input-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.url-input-container input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    padding: 0.5rem;
    outline: none;
    min-width: 0;
}

.url-input-container input::placeholder {
    color: var(--text-secondary);
}

.fetch-url-btn {
    padding: 0.6rem 1.25rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fetch-url-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.fetch-url-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.mini-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.url-help-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: 0.5rem 0;
}

.url-help-text span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.url-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
}

.url-status.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.url-status.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.url-status.loading {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
}

.url-status-icon {
    font-size: 1rem;
}



/* Scan Button */
.scan-button {
    width: 100%;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.scan-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.scan-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.button-loader {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Loading Section */
.loading-section {
    padding: 5rem 5%;
    text-align: center;
}

.loading-content {
    max-width: 500px;
    margin: 0 auto;
}

.spinner-large {
    width: 80px;
    height: 80px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 2rem;
}

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

.loading-text {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.loading-steps {
    text-align: left;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.loading-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    color: var(--text-secondary);
    opacity: 0.5;
    transition: all 0.3s;
}

.loading-step.active {
    opacity: 1;
    color: var(--text);
}

.loading-step.done {
    color: var(--success);
}

.step-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.loading-step.done .step-check {
    background: var(--success);
    color: white;
}

/* Results Section */
.results-section {
    padding: 5rem 5%;
    background: linear-gradient(180deg, var(--background) 0%, #eff6ff 100%);
}

.results-header {
    text-align: center;
    margin-bottom: 3rem;
}

.results-header h2 {
    font-size: 2rem;
    font-weight: 700;
}

.results-header p {
    color: var(--text-secondary);
}

.results-container {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
}

/* Score Card */
.score-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.score-visual {
    margin-bottom: 1.5rem;
}

.score-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: conic-gradient(var(--primary) 0deg, var(--border) 0deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    position: relative;
    transition: all 1s ease-out;
}

.score-circle::before {
    content: '';
    position: absolute;
    inset: 8px;
    background: var(--surface);
    border-radius: 50%;
}

.score-circle span {
    position: relative;
    z-index: 1;
}

.score-circle::after {
    content: '/ 100';
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
    margin-top: -0.5rem;
}

.score-verdict {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.score-verdict.good {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.score-verdict.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.score-verdict.danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.score-summary {
    color: var(--text-secondary);
    max-width: 400px;
    margin: 0 auto;
}

/* Breakdown Card */
.breakdown-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.breakdown-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.breakdown-item {
    display: block;
}

.breakdown-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.breakdown-label {
    font-weight: 500;
}

.breakdown-value {
    font-weight: 600;
    color: var(--primary);
}

.progress-bar {
    height: 10px;
    background: var(--border);
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 1s ease-out, background 0.3s;
}

.progress-fill.good {
    background: linear-gradient(90deg, var(--success), #34d399);
}

.progress-fill.warning {
    background: linear-gradient(90deg, var(--warning), #fbbf24);
}

.progress-fill.danger {
    background: linear-gradient(90deg, var(--danger), #f87171);
}

/* Insights Card */
.insights-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.insights-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.insights-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.insight-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03), rgba(37, 99, 235, 0.08));
    border-left: 3px solid var(--primary);
}

.insight-icon {
    font-size: 1.25rem;
}

.insight-text {
    flex: 1;
}

.insight-text strong {
    display: block;
    margin-bottom: 0.25rem;
}

.insight-text p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Keywords Card */
.keywords-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.keywords-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.keywords-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.keywords-visible {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.keyword-tag {
    padding: 0.5rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
}

.keywords-blurred {
    position: relative;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: var(--radius);
    overflow: hidden;
}

.blur-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    z-index: 2;
}

.blur-overlay span {
    font-size: 2rem;
}

.blur-overlay p {
    font-weight: 600;
    color: var(--text);
}

.unlock-btn {
    background: linear-gradient(135deg, var(--premium), var(--premium-dark));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.unlock-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

/* Checklist Card */
.checklist-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.checklist-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checklist-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius);
    background: #f8fafc;
    border: 1px solid var(--border);
    transition: all 0.2s;
    cursor: pointer;
}

.checklist-item:hover {
    background: #f1f5f9;
}

.checklist-item.checked {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.3);
}

.check-box {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.checklist-item.checked .check-box {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.checklist-text {
    flex: 1;
}

.checklist-text strong {
    display: block;
    margin-bottom: 0.25rem;
}

.checklist-text p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

/* Premium Card */
.premium-card {
    background: linear-gradient(135deg, var(--premium), var(--premium-dark));
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.premium-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    color: white;
    backdrop-filter: blur(4px);
}

/* Premium Price Display */
.premium-price-display {
    margin: 1rem 0 0.5rem;
    position: relative;
    z-index: 1;
}

.premium-price-display .price-amount {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.premium-price-display .price-type {
    display: block;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.25rem;
    font-weight: 500;
}

.premium-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: white;
    position: relative;
    z-index: 1;
}

.premium-card>p,
.premium-tagline {
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

.premium-features {
    list-style: none;
    text-align: left;
    max-width: 320px;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 1;
}

.premium-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: white;
    font-size: 0.95rem;
}

.premium-cta {
    background: white;
    color: var(--premium);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
    margin: 0 auto;
    width: fit-content;
}

.premium-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Premium Trust Badges */
.premium-trust {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.25rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
}

.premium-trust span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.premium-guarantee {
    display: block;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Scan Again Button */
.scan-again-btn {
    width: 100%;
    padding: 1rem;
    background: var(--surface);
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.scan-again-btn:hover {
    background: var(--primary);
    color: white;
}

/* How It Works Section */
.how-section {
    padding: 5rem 5%;
    background: rgba(255, 255, 255, 0.7);
}

.steps-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.step-card {
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--background);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.step-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.step-connector {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 300;
    display: flex;
    align-items: center;
    padding-top: 3rem;
}

/* Footer */
.footer {
    background: var(--text);
    color: white;
    padding: 3rem 5%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    opacity: 0.7;
    margin-bottom: 1.5rem;
}

.copyright {
    font-size: 0.875rem;
    opacity: 0.5;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

.footer-divider {
    color: rgba(255, 255, 255, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 5%;
    }

    .navbar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 4%;
        flex-wrap: nowrap;
    }

    .logo {
        width: auto;
        justify-content: flex-start;
        margin-bottom: 0;
    }

    .logo-img {
        width: 150px;
        height: 80px;
    }

    .hamburger-menu {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(180deg, #f8f8fb 0%, #ffffff 50%, #f0f0ff 100%);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 0;
        z-index: 1000;
        padding: 0;
        overflow-y: auto;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links::before {
        content: '';
        display: block;
        width: 120px;
        height: 65px;
        background: url('assets/logo.png') center/contain no-repeat;
        margin: 80px auto 30px;
    }

    .nav-links a {
        font-size: 1.1rem;
        display: block;
        padding: 1rem 2rem;
        width: 80%;
        max-width: 280px;
        text-align: center;
        border-radius: 12px;
        margin: 0.4rem 0;
        background: white;
        box-shadow: 0 2px 8px rgba(124, 58, 237, 0.08);
        transition: all 0.2s ease;
    }

    .nav-links a:hover {
        background: var(--primary);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
    }

    .nav-links a:first-child {
        display: block;
    }

    .auth-buttons {
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1.5rem;
        padding: 1.5rem;
        width: 80%;
        max-width: 280px;
        background: white;
        border-radius: 16px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }

    .auth-btn {
        width: 100%;
        text-align: center;
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
        border-radius: 10px;
    }

    .auth-btn.login-btn {
        background: transparent;
        border: 2px solid var(--primary);
        color: var(--primary);
    }

    .auth-btn.signup-btn {
        background: linear-gradient(135deg, var(--primary), var(--premium));
        color: white;
        border: none;
    }

    /* User menu - hidden by default, shown only when logged in */
    .user-menu {
        margin-top: 1rem;
        padding: 0;
        width: 80%;
        max-width: 280px;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
        /* Don't use !important - respect inline display:none from JavaScript */
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    /* Only show user menu on mobile when it has logged-in class */
    .user-menu.logged-in {
        display: flex;
    }

    /* Hide the avatar button on mobile */
    .user-menu .user-avatar {
        display: none;
    }

    /* Show dropdown directly without needing hover/click - only when logged in */
    .user-menu.logged-in .user-dropdown {
        display: flex;
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: white;
        border-radius: 16px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        padding: 1rem;
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
    }

    .user-menu .user-info {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #eee;
        margin-bottom: 0.5rem;
    }

    .user-menu .dropdown-divider {
        display: none;
    }

    .user-menu .dropdown-item {
        padding: 1rem 1.25rem;
        font-size: 1rem;
        border-radius: 10px;
        background: #f8f8fb;
        text-align: center;
        transition: all 0.2s ease;
    }

    .user-menu .dropdown-item:hover {
        background: var(--primary);
        color: white;
    }

    /* Style logout button specially */
    .user-menu .dropdown-item#logout-btn {
        background: linear-gradient(135deg, #ef4444, #dc2626);
        color: white;
    }

    .user-menu .dropdown-item#logout-btn:hover {
        background: linear-gradient(135deg, #dc2626, #b91c1c);
    }

    .mobile-menu-footer {
        margin-top: auto;
        padding: 2rem;
        text-align: center;
        color: var(--text-secondary);
        font-size: 0.85rem;
    }

    .hero-content {
        padding: 2rem 5%;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-divider {
        width: 60px;
        height: 1px;
    }

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

    .step-connector {
        transform: rotate(90deg);
        padding: 1rem 0;
    }

    .input-card {
        padding: 1.5rem;
    }

    .upload-zone {
        padding: 2rem 1rem;
    }

    /* Mobile Resume Toggle - Show on mobile */
    .mobile-resume-toggle {
        display: flex;
    }

    /* Hide desktop text, show mobile text */
    .upload-text.desktop-only-text,
    .upload-subtext.desktop-only-text {
        display: none;
    }

    .upload-text.mobile-only-text {
        display: block !important;
    }

    /* Scan zone styles on mobile */
    .scan-zone {
        padding: 2.5rem 1rem;
    }

    .score-circle {
        width: 140px;
        height: 140px;
        font-size: 2.5rem;
    }
}

/* Step Icon Wrapper */
.step-icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.step-card:hover .step-icon-wrapper {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    transform: scale(1.1);
}

.step-icon-svg {
    width: 32px;
    height: 32px;
    color: var(--primary);
    transition: all 0.3s;
}

.step-card:hover .step-icon-svg {
    color: white;
}

.step-connector svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-content {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    max-width: 440px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-xl);
    animation: modalSlide 0.3s ease-out;
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--border);
    color: var(--text);
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.modal-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal-content>p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.api-input-wrapper {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.api-input-wrapper input {
    flex: 1;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: monospace;
    transition: all 0.2s;
}

.api-input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.toggle-visibility {
    padding: 0 1rem;
    background: var(--border);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 1.25rem;
    transition: all 0.2s;
}

.toggle-visibility:hover {
    background: var(--text-secondary);
}

.api-help-link {
    display: block;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.api-help-link:hover {
    text-decoration: underline;
}

.save-api-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.save-api-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.api-note {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

/* Footer Links */
.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

/* API Status Indicator */
.api-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 1rem;
}

.api-status.disconnected {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.api-status-dot {
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    gap: 0.75rem;
    margin-left: 1rem;
}

.auth-btn {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.login-btn {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.login-btn:hover {
    background: var(--border);
}

.signup-btn {
    background: var(--primary);
    color: white;
}

.signup-btn:hover {
    background: var(--primary-dark);
}

/* User Menu */
.user-menu {
    position: relative;
    margin-left: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 100;
}

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

.user-info {
    padding: 1rem;
}

.user-name {
    display: block;
    font-weight: 600;
    color: var(--text);
}

.user-email {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text);
    text-decoration: none;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: var(--border);
}

/* Auth Modal */
.auth-modal-content {
    max-width: 400px;
}

.auth-form {
    text-align: center;
}

.form-group {
    text-align: left;
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.form-group input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: all 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.auth-submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 0.5rem;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.auth-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger);
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-align: center;
}

.auth-switch {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.auth-switch a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.forgot-password-link {
    display: block;
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 1rem;
    transition: color 0.2s;
}

.forgot-password-link:hover {
    color: var(--primary);
}

.auth-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--success);
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-align: center;
}

/* Results Actions */
.results-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.save-results-btn,
.download-results-btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.save-results-btn {
    background: var(--surface);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.save-results-btn:hover {
    background: var(--primary);
    color: white;
}

.download-results-btn {
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
    border: none;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

.download-results-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Saved Scans Section */
.saved-scans-section {
    padding: 5rem 5%;
    background: var(--background);
    min-height: 60vh;
}

.saved-scans-container {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
}

.saved-scan-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.saved-scan-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.scan-info {
    flex: 1;
}

.scan-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.scan-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.scan-score-badge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: white;
    margin: 0 1.5rem;
}

.scan-score-badge.good {
    background: linear-gradient(135deg, var(--success), #059669);
}

.scan-score-badge.warning {
    background: linear-gradient(135deg, var(--warning), #d97706);
}

.scan-score-badge.danger {
    background: linear-gradient(135deg, var(--danger), #dc2626);
}

.scan-actions {
    display: flex;
    gap: 0.5rem;
}

.scan-action-btn {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.scan-action-btn.view-btn {
    background: var(--primary);
    color: white;
}

.scan-action-btn.view-btn:hover {
    background: var(--primary-dark);
}

.scan-action-btn.delete-btn {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.scan-action-btn.delete-btn:hover {
    background: var(--danger);
    color: white;
}

.back-to-scanner-btn {
    display: block;
    margin: 2rem auto 0;
    padding: 1rem 2rem;
    background: var(--surface);
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.back-to-scanner-btn:hover {
    background: var(--primary);
    color: white;
}

.no-scans-message {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

/* Additional scan card styles */
.scan-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.scan-score {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
}

.scan-score.score-good {
    background: linear-gradient(135deg, var(--success), #059669);
}

.scan-score.score-warning {
    background: linear-gradient(135deg, var(--warning), #d97706);
}

.scan-score.score-danger {
    background: linear-gradient(135deg, var(--danger), #dc2626);
}

.scan-meta h4 {
    margin: 0 0 0.25rem;
    font-size: 1.1rem;
}

.scan-details {
    margin: 0.75rem 0;
}

.scan-verdict {
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.scan-verdict.good {
    color: var(--success);
}

.scan-verdict.warning {
    color: var(--warning);
}

.scan-verdict.danger {
    color: var(--danger);
}

.scan-file {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.loading-scans {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.no-scans-message .empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    animation: toastSlide 0.3s ease-out;
}

@keyframes toastSlide {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.toast-icon {
    font-size: 1.25rem;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-buttons {
        display: none;
    }

    .results-actions {
        flex-direction: column;
    }

    .saved-scan-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .scan-actions {
        width: 100%;
        justify-content: center;
    }
}

/* AI Fixes Modal */
.ai-fixes-modal-content {
    max-width: 700px;
    width: 95%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2.5rem;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
}

.ai-fixes-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.ai-fixes-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.ai-fixes-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--premium));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.ai-fixes-header p {
    color: var(--text-secondary);
}

.ai-fixes-loading {
    text-align: center;
    padding: 3rem 0;
}

.ai-fixes-loading p {
    color: var(--text-secondary);
    margin-top: 1rem;
}

.ai-fixes-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.ai-fixes-section {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.ai-fixes-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* All Keywords Container */
.all-keywords-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.all-keywords-container .keyword-tag {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(99, 102, 241, 0.15));
    color: var(--premium);
    border: 1px solid rgba(124, 58, 237, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Bullet Points Container */
.bullet-points-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bullet-point-item {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(16, 185, 129, 0.1));
    border-radius: var(--radius);
    border-left: 3px solid var(--success);
}

.bullet-point-item .bullet-icon {
    color: var(--success);
    font-weight: bold;
}

.bullet-point-item .bullet-text {
    flex: 1;
    line-height: 1.5;
}

.bullet-point-item .copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.bullet-point-item .copy-btn:hover {
    color: var(--primary);
}

/* Optimized Summary */
.optimized-summary-container {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(37, 99, 235, 0.1));
    border-radius: var(--radius);
    padding: 1.25rem;
    border-left: 3px solid var(--primary);
    line-height: 1.7;
    position: relative;
}

.optimized-summary-container .copy-summary-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s;
}

.optimized-summary-container .copy-summary-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* AI Fixes Actions */
.ai-fixes-actions {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.download-optimized-btn {
    flex: 1;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.download-optimized-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.copy-all-btn {
    flex: 1;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.copy-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

@media (max-width: 600px) {
    .ai-fixes-modal-content {
        padding: 1.5rem;
    }

    .ai-fixes-actions {
        flex-direction: column;
    }
}

/* Download Format Section */
.download-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.download-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.download-format-buttons {
    display: flex;
    gap: 0.5rem;
}

.download-format-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: white;
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.download-format-btn:hover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
    transform: translateY(-2px);
}

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

#download-pdf:hover {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
    color: #ef4444;
}

#download-docx:hover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
    color: var(--primary);
}

#download-txt:hover {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.05);
    color: var(--success);
}

@media (max-width: 500px) {
    .download-format-buttons {
        flex-direction: column;
    }
}

/* ============================================
   PAYWALL MODAL STYLES
   ============================================ */

.paywall-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.paywall-modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 1.5rem;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.paywall-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.paywall-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text);
}

.paywall-header {
    text-align: center;
    margin-bottom: 2rem;
}

.paywall-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

.paywall-header h2 {
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.paywall-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.paywall-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.paywall-free,
.paywall-premium {
    padding: 1.5rem;
    border-radius: 1rem;
    position: relative;
}

.paywall-free {
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
}

.paywall-free h4 {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.paywall-free ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.paywall-free li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.paywall-free .blurred-item {
    opacity: 0.5;
    filter: blur(1px);
}

.paywall-premium {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    border: 2px solid #1e40af;
    color: white;
    transform: scale(1.02);
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.3);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.paywall-premium h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.paywall-price {
    margin-bottom: 1rem;
}

.price-main {
    font-size: 2.5rem;
    font-weight: 800;
}

.price-period {
    font-size: 1rem;
    opacity: 0.8;
    display: block;
}

.paywall-premium ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.paywall-premium li {
    padding: 0.4rem 0;
    font-size: 0.9rem;
}

.paywall-cta {
    width: 100%;
    padding: 1rem 2rem;
    background: white;
    color: var(--primary);
    border: none;
    border-radius: 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

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

.paywall-trust-section {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1.5rem 0;
    border-top: 1px solid #e2e8f0;
    margin-bottom: 1rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.trust-icon {
    font-size: 1.2rem;
}

.paywall-secure-note {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Premium CTA icon spacing */
.premium-cta .cta-icon {
    margin-right: 0.5rem;
}

.premium-cta.premium-active {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
}

/* Responsive Paywall */
@media (max-width: 700px) {
    .paywall-comparison {
        grid-template-columns: 1fr;
    }

    .paywall-premium {
        transform: none;
        order: -1;
    }

    .paywall-trust-section {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .paywall-modal-content {
        padding: 1.5rem;
    }

    .paywall-header h2 {
        font-size: 1.5rem;
    }
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */

.testimonials-section {
    padding: 5rem 5%;
    background: linear-gradient(180deg, var(--background) 0%, rgba(99, 102, 241, 0.05) 100%);
}

.testimonials-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    max-width: 1100px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
}

.testimonial-card.featured {
    grid-column: span 3;
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.05));
    border-color: rgba(99, 102, 241, 0.3);
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.testimonial-quote {
    font-size: 4rem;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary), var(--premium));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.4;
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-family: Georgia, serif;
}

.testimonial-text {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    margin-top: 1.5rem;
    font-style: normal;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--premium));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}

.author-title {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.testimonial-score {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.score-before {
    color: var(--danger);
    font-weight: 500;
    font-size: 0.9rem;
}

.score-arrow {
    color: var(--text-secondary);
}

.score-after {
    color: var(--success);
    font-weight: 600;
    font-size: 0.9rem;
}

.testimonials-cta {
    text-align: center;
    margin-top: 3rem;
}

.testimonials-cta .cta-text {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.testimonials-cta .btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--premium));
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.3s ease;
}

.testimonials-cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

@media (max-width: 1024px) {
    .testimonials-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonial-card.featured {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .testimonials-container {
        grid-template-columns: 1fr;
    }

    .testimonial-card.featured {
        grid-column: span 1;
    }

    .testimonial-quote {
        font-size: 3rem;
    }
}

/* ========================================
   ENHANCED RESULTS SECTION STYLES
   ======================================== */

/* Score Label */
.score-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
    font-weight: 600;
}

/* Rationale Card (Why You Got This Score) */
.rationale-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid #fbbf24;
}

.rationale-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #92400e;
}

.rationale-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rationale-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
}

.rationale-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.rationale-text {
    font-size: 0.95rem;
    color: #78350f;
    line-height: 1.5;
}

/* Checks Card (Collapsible 20+ Checks) */
.checks-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.checks-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: #f8fafc;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: background 0.2s;
}

.checks-header:hover {
    background: #f1f5f9;
}

.checks-toggle-icon {
    transition: transform 0.3s;
}

.checks-header.active .checks-toggle-icon {
    transform: rotate(180deg);
}

.checks-content {
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.checks-category {
    margin-bottom: 1.5rem;
}

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

.checks-category h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.check-status {
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.check-status.pass {
    background: #d1fae5;
    color: #065f46;
}

.check-status.warning {
    background: #fef3c7;
    color: #92400e;
}

.check-status.fail {
    background: #fee2e2;
    color: #991b1b;
}

.check-text {
    flex: 1;
    color: var(--text-secondary);
}

/* Targeted Match Card */
.targeted-match-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
}

.targeted-match-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
}

.keyword-coverage {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.coverage-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: conic-gradient(var(--primary) 0deg, #e5e7eb 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.coverage-circle::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
}

.coverage-circle span {
    position: relative;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.coverage-info strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.coverage-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.must-add-keywords h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.keyword-group {
    margin-bottom: 1rem;
}

.keyword-group-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.keyword-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.keyword-tag {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: #f3e8ff;
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.keyword-tag.blurred {
    filter: blur(4px);
    user-select: none;
}

.keywords-blurred {
    position: relative;
    margin-top: 1.5rem;
    padding: 2rem 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    min-height: 140px;
    overflow: visible;
}

.blurred-keywords-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    filter: blur(5px);
    pointer-events: none;
    padding-bottom: 1rem;
}

.blur-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 1.5rem;
}

.blur-overlay span {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.blur-overlay p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.unlock-btn {
    padding: 0.85rem 1.75rem;
    background: linear-gradient(135deg, var(--primary), var(--premium));
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.25);
}

.unlock-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.35);
}

/* Fixes Preview Card */
.fixes-preview-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
}

.fixes-preview-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
}

.fix-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.fix-section:last-of-type {
    border-bottom: none;
    margin-bottom: 1rem;
}

.fix-section h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.fix-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.bullet-preview {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.bullet-before,
.bullet-after {
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.bullet-before {
    background: #fee2e2;
    border-left: 3px solid #ef4444;
}

.bullet-after {
    background: #d1fae5;
    border-left: 3px solid #10b981;
}

.bullet-before .label,
.bullet-after .label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
    display: block;
}

.bullet-before .label {
    color: #991b1b;
}

.bullet-after .label {
    color: #065f46;
}

.bullet-preview.locked {
    position: relative;
    min-height: 100px;
    background: repeating-linear-gradient(45deg,
            #f8fafc,
            #f8fafc 10px,
            #f1f5f9 10px,
            #f1f5f9 20px);
}

.bullet-preview .locked-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
}

.bullet-preview .locked-overlay span {
    font-size: 1.5rem;
}

.bullet-preview .locked-overlay p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.quantify-suggestions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quantify-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 10px;
    border-left: 3px solid var(--primary);
}

.quantify-icon {
    font-size: 1.25rem;
}

.quantify-text strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.quantify-text p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Premium Features Locked */
.premium-features-locked {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.locked-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px dashed #d1d5db;
}

.locked-feature .feature-icon {
    font-size: 1.25rem;
}

.locked-feature .feature-text {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.locked-feature .lock-icon {
    font-size: 1rem;
    color: #9ca3af;
}

/* Premium Tools Card */
.premium-tools-card {
    position: relative;
    background: linear-gradient(135deg, #faf5ff 0%, #ede9fe 100%);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid #c4b5fd;
    overflow: hidden;
}

.premium-tools-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.premium-tools-header h3 {
    font-size: 1.2rem;
    margin: 0;
}

.premium-badge-small {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    background: linear-gradient(135deg, var(--primary), var(--premium));
    color: white;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.tools-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.tool-link-card {
    display: block;
    padding: 1.25rem;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #ddd6fe;
}

.tool-link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.15);
}

.tool-link-card .tool-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.75rem;
}

.tool-link-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.tool-link-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.tool-link-card .tool-cta {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

.premium-cta-text {
    background: linear-gradient(135deg, var(--primary), var(--premium));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Tools Locked Overlay */
.tools-locked-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    z-index: 10;
}

.tools-locked-overlay.hidden {
    display: none;
}

.tools-locked-content {
    text-align: center;
    padding: 2rem;
}

.lock-icon-large {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.tools-locked-content h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.tools-locked-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.unlock-tools-btn {
    padding: 0.9rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--premium));
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.25);
}

.unlock-tools-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.35);
}

/* Breakdown Card Enhancements */
.breakdown-card .breakdown-item {
    margin-bottom: 1.25rem;
}

.breakdown-card .breakdown-item:last-child {
    margin-bottom: 0;
}

.breakdown-description {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    line-height: 1.4;
}

/* Responsive for new components */
@media (max-width: 768px) {
    .keyword-coverage {
        flex-direction: column;
        text-align: center;
    }

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

    .rationale-item {
        flex-direction: column;
        text-align: center;
    }
}

/* =============================================
   AI RESUME REWRITER CARD
   ============================================= */

.ai-rewriter-card {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(76, 29, 149, 0.3);
    position: relative;
    overflow: hidden;
}

.ai-rewriter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.ai-rewriter-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.ai-rewriter-icon {
    font-size: 2.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.ai-rewriter-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.ai-rewriter-description {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.ai-rewriter-features {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.rewriter-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    font-size: 0.95rem;
}

.feature-check {
    font-size: 1rem;
}

.ai-rewriter-cta {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.ai-rewriter-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

.ai-rewriter-cta .cta-icon {
    font-size: 1.25rem;
}

.ai-rewriter-cta .cta-text {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .ai-rewriter-card {
        padding: 1.5rem;
    }

    .ai-rewriter-header h3 {
        font-size: 1.25rem;
    }

    .ai-rewriter-cta {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}