/* style.css - Complete updated version with all fixes */

:root {
    --primary: #667eea;
    --primary-dark: #764ba2;
    --accent: #f093fb;
    --success: #4ade80;
    --warning: #fbbf24;
    --danger: #f87171;
    --info: #60a5fa;
    --dark-bg: #0a0a0f;
    --dark-card: #12121f;
    --dark-text: #e8e8ef;
    --dark-border: rgba(255,255,255,0.1);
    --light-bg: #f8fafc;
    --light-card: #ffffff;
    --light-text: #1e293b;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    --shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --sidebar-width: 280px;
    --sidebar-collapsed: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--dark-bg);
    color: var(--dark-text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

body:not(.dark-theme) {
    --dark-bg: var(--light-bg);
    --dark-card: var(--light-card);
    --dark-text: var(--light-text);
    --dark-border: rgba(0,0,0,0.1);
}

/* Install Banner (PWA) */
.install-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--gradient);
    color: white;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    z-index: 10000;
    font-size: 14px;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.install-banner button {
    background: white;
    color: var(--primary);
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
}

/* Voice Overlay */
.voice-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.voice-pulse {
    width: 100px;
    height: 100px;
    background: var(--primary);
    border-radius: 50%;
    animation: voicePulse 1.5s infinite;
    margin-bottom: 30px;
}

@keyframes voicePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

/* Header Styles - DARK/BLACK THEME */
.top-header {
    background: #0a0a0f;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Header hover - Dark purple with GLOW effect */
.top-header:hover {
    background: #025e4288;
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.3), 0 0 60px rgba(118, 75, 162, 0.2);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
}

/* Dream Job Badge - with BOX and GLOW on hover */
.dream-job-badge {
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
}

.dream-job-badge:hover {
    color: #ffd700;
    background: rgba(11, 136, 153, 0.1); /* BOX */
    box-shadow: 0 0 20px rgba(85, 255, 0, 0.4), 0 0 40px rgba(0, 60, 255, 0.2); /* GLOW */
    transform: scale(1.02);
}

.target-icon {
    opacity: 0;
    transform: scale(0.8) translateX(-10px);
    transition: all 0.3s ease;
    font-size: 16px;
    display: inline-block;
    margin-right: 6px;
}

.dream-job-badge:hover .target-icon {
    opacity: 1;
    transform: scale(1.2) translateX(0);
}

/* Font Controls - SQUARE with ROUNDED CORNERS + WHITE BORDER */
.font-controls-center {
    display: flex;
    gap: 10px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
}

.font-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 2px solid rgba(255,255,255,0.5); /* THINNER + TRANSPARENT WHITE */
    background: transparent;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
}


/* Font buttons hover - GRADIENT FILL */
.font-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.font-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
}

/* Auth Buttons - NO BORDERS with shimmer effect */
.auth-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* LOGIN - Transparent default, GRADIENT on hover, NO BORDER, with shimmer */
.login-btn {
    background: transparent;
    color: white;
    border: none;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffd700;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* SIGN UP - GRADIENT default, TRANSPARENT on hover, NO BORDER, with shimmer */
.signup-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.signup-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.signup-btn:hover::before {
    left: 100%;
}

.signup-btn:hover {
    background: transparent;
    color: #ffd700;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Theme Toggle - SQUARE with ROUNDED CORNERS, GRADIENT on hover */
/* Theme toggle - THINNER, SUBTLER white border */
.theme-btn-header {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    border: 2px solid rgba(255,255,255,0.5); /* THINNER + TRANSPARENT WHITE */
    background: transparent;
    color: #fbbf24;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.theme-btn-header:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
    transform: rotate(180deg) scale(1.1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}
/* Dashboard Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    padding: 20px;
}

.modal-content {
    background: var(--dark-card);
    border-radius: var(--radius);
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--dark-border);
    animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--dark-border);
}

.close-modal {
    background: none;
    border: none;
    color: var(--dark-text);
    font-size: 24px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.close-modal:hover {
    background: rgba(255,255,255,0.1);
}

/* Dashboard Stats 2x2 Grid Layout */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 16px;
    padding: 20px;
}

.stat-card {
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--dark-border);
    transition: var(--transition);
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.pro-stat {
    background: linear-gradient(135deg, rgba(255,215,0,0.1), rgba(255,237,78,0.1));
    border-color: rgba(255,215,0,0.3);
    cursor: pointer;
}

.pro-stat .stat-number {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dashboard-chart {
    padding: 20px;
    border-top: 1px solid var(--dark-border);
}

.chart-placeholder {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 130px;
    padding: 16px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    margin-top: 14px;
}

.chart-bar {
    flex: 1;
    background: var(--primary);
    border-radius: 6px 6px 0 0;
    opacity: 0.5;
    transition: var(--transition);
    min-height: 20px;
}

.chart-bar.active {
    opacity: 1;
    background: var(--gradient);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

.dashboard-history {
    padding: 20px;
    border-top: 1px solid var(--dark-border);
}

.history-list {
    margin-top: 14px;
}

.empty-state {
    text-align: center;
    color: rgba(255,255,255,0.5);
    padding: 30px;
}

/* Main Header */
.main-header {
    background: var(--gradient);
    padding: 20px 0;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
}

.main-header:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
}

.main-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
    animation: backgroundMove 20s linear infinite;
}

@keyframes backgroundMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 30px); }
}

/* INCREASED ICON SIZE - Second Header */
.ai-logo {
    width: 85px;
    height: 85px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 2px solid rgba(255,255,255,0.2);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.logo-icon {
    position: absolute;
    top: 8px;
    left: 10px;
    font-size: 32px;
    animation: float 3s ease-in-out infinite;
}

.logo-text {
    font-size: 32px;
    font-weight: 900;
    color: white;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.logo-resume {
    position: absolute;
    bottom: 8px;
    right: 10px;
    font-size: 30px;
    animation: float 3s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.title-section {
    flex: 1;
    text-align: center;
}

.title-section h1 {
    font-size: 32px;
    font-weight: 800;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    transition: all 0.3s ease;
}

/* Title Hover Glow Effect */
.title-section h1:hover {
    text-shadow: 0 0 20px rgba(255,255,255,0.8), 0 0 40px rgba(255,255,255,0.4);
    transform: scale(1.02);
}

.title-highlight {
    background: linear-gradient(135deg, #fff, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.title-section h1:hover .title-highlight {
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
    filter: brightness(1.2);
}

.divider {
    color: rgba(255,255,255,0.6);
    font-weight: 300;
}

/* POWERED BY ADVANCED AI - 18px with GLOW HOVER */
.powered-by {
    margin-top: 8px;
    font-size: 18px;
    color: rgba(255,255,255,0.95);
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 6px 16px;
    border-radius: 8px;
    letter-spacing: 0.5px;
}

.powered-by:hover {
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 40px rgba(255, 215, 0, 0.4);
    transform: scale(1.05);
    background: rgba(255,255,255,0.1);
}

.header-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

/* Social Proof */
.social-proof {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 7px 12px;
    border-radius: 24px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
    transition: var(--transition);
    cursor: pointer;
}

.social-proof:hover {
    background: rgba(59, 130, 246, 0.3);
    border-color: #3b82f6;
}

.proof-number {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: white;
}

.proof-text {
    font-size: 11px;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* PRO Button */
.pro-badge {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    padding: 8px 16px;
    border-radius: 24px;
    font-weight: 800;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
    transition: var(--transition);
}

.pro-badge:hover {
    transform: scale(1.05) rotate(-2deg);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.5);
    background: linear-gradient(135deg, #b8860b, #d4af37);
    color: white;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 80px;
    left: 20px;
    z-index: 999;
    width: 44px;
    height: 44px;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 10px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--dark-text);
    transition: all 0.3s;
}

/* Main Layout with Sidebar */
.main-layout {
    display: flex;
    min-height: calc(100vh - 140px);
    position: relative;
}

/* Left Sidebar - SCROLLABLE (NOT FIXED) */
.left-sidebar {
    width: var(--sidebar-width);
    background: var(--dark-card);
    border-right: 1px solid var(--dark-border);
    position: absolute;
    left: 0;
    top: 0;
    height: auto;
    min-height: 100%;
    z-index: 100;
    transition: width 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
}

.left-sidebar.collapsed {
    width: var(--sidebar-collapsed);
    min-height: 100%;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--dark-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h3 {
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}

.left-sidebar.collapsed .sidebar-header h3 {
    display: none;
}

.sidebar-collapse {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid var(--dark-border);
    background: rgba(255,255,255,0.05);
    color: var(--dark-text);
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-collapse:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.left-sidebar.collapsed .sidebar-collapse {
    transform: rotate(180deg);
}

.sidebar-nav {
    padding: 10px;
    padding-bottom: 30px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 6px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.nav-item:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--dark-border);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.2);
}

.nav-item.active .nav-icon {
    transform: scale(1.1);
}

.nav-icon {
    font-size: 20px;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.nav-label {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: opacity 0.3s;
}

.left-sidebar.collapsed .nav-label {
    opacity: 0;
    width: 0;
    display: none;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 30px 20px;
    transition: margin-left 0.3s ease;
    position: relative;
    z-index: 1;
}

.left-sidebar.collapsed ~ .main-content {
    margin-left: var(--sidebar-collapsed);
}

/* Content Sections */
.content-section {
    display: none;
}

.content-section.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.card {
    background: var(--dark-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid var(--dark-border);
}

.card-title {
    font-size: 26px;
    font-weight: 800;
    text-align: center;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.card-subtitle {
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 15px;
    margin-bottom: 24px;
}

/* Stepper - ALL STEPS HAVE TOOLTIPS */
.stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 24px 0;
    flex-wrap: wrap;
    gap: 6px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.4;
    transition: var(--transition);
    position: relative;
}

.step.active, .step.completed {
    opacity: 1;
}

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 6px;
    border: 3px solid transparent;
    transition: var(--transition);
}

.step.active .step-icon {
    background: var(--gradient);
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 0 25px rgba(102, 126, 234, 0.5);
    transform: scale(1.1);
}

.step.completed .step-icon {
    background: var(--success);
}

.step-label {
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    max-width: 90px;
}

/* ALL STEPPER TOOLTIPS with backward arrow */
.step-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: white;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    margin-bottom: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    z-index: 10;
}

/* Backward pointing arrow for ALL tooltips */
.step-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--primary);
}

.step:hover .step-tooltip {
    opacity: 1;
    visibility: visible;
}

.step-arrow {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.arrow-line {
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0.2), var(--primary));
}

.arrow-head {
    color: var(--primary);
    margin-left: -4px;
    font-size: 12px;
}

/* Progress Bar */
.progress-container {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.progress-bar {
    flex: 1;
    height: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--gradient);
    border-radius: 5px;
    transition: width 0.5s ease;
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.5);
}

.progress-text {
    font-weight: 800;
    color: var(--primary);
    min-width: 45px;
    text-align: right;
    font-size: 14px;
}

/* Template Cards */
.template-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.template-card {
    background: rgba(255,255,255,0.05);
    border: 2px solid var(--dark-border);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.template-card:hover, .template-card.active {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.2);
}

.template-card.active::before {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.template-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.template-card h4 {
    font-size: 15px;
    margin-bottom: 6px;
}

.template-card p {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 12px;
}

.template-preview {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.preview-line {
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    width: 80%;
}

.preview-line.highlight {
    background: var(--primary);
    width: 100%;
}

/* Form Elements */
.form-label {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-limit {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    font-weight: 400;
}

/* Radio Group Compact */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.radio-group.compact .radio-option {
    padding: 6px 10px;
    font-size: 0.75em;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 10px;
    background: rgba(255,255,255,0.05);
    border: 2px solid var(--dark-border);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    font-size: 0.8em;
}

.radio-option:hover {
    border-color: var(--primary);
    background: rgba(102, 126, 234, 0.1);
}

.radio-option input {
    display: none;
}

.radio-custom {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    position: relative;
    transition: var(--transition);
}

.radio-option input:checked + .radio-custom {
    border-color: var(--primary);
    background: var(--primary);
}

.radio-option input:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 5px;
    height: 5px;
    background: white;
    border-radius: 50%;
}

.radio-label {
    font-weight: 600;
    font-size: 11px;
}

.ocr-tag {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--success);
    color: #000;
    font-size: 8px;
    padding: 1px 4px;
    border-radius: 4px;
    font-weight: 700;
}

/* Cloud Import */
.cloud-import {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.cloud-import span {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

.cloud-btn {
    padding: 8px 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    color: var(--dark-text);
    cursor: pointer;
    transition: var(--transition);
    font-size: 13px;
}

.cloud-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Job Description */
.input-group {
    margin-bottom: 20px;
}

.dynamic-label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 15px;
}

.hint {
    font-weight: 400;
    color: rgba(255,255,255,0.5);
    font-size: 13px;
}

.job-textarea, .resume-textarea {
    width: 100%;
    padding: 14px;
    background: rgba(255,255,255,0.05);
    border: 2px solid var(--dark-border);
    border-radius: 10px;
    color: var(--dark-text);
    font-size: 14px;
    resize: vertical;
    min-height: 100px;
    transition: var(--transition);
    font-family: inherit;
}

.resume-textarea {
    min-height: 160px;
}

.job-textarea:focus, .resume-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.2);
}

.match-score {
    margin-top: 14px;
    padding: 14px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.match-bar {
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.match-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 4px;
    transition: width 0.5s ease;
    width: 0%;
}

.match-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.extract-keywords {
    background: var(--primary);
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

.keywords-cloud {
    margin-top: 14px;
    padding: 14px;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
}

.keywords-cloud h4 {
    margin-bottom: 10px;
    font-size: 14px;
}

.keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.keyword-tag {
    background: rgba(102, 126, 234, 0.2);
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 13px;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

/* Real-time Section */
.realtime-section {
    margin-bottom: 20px;
}

.realtime-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    background: rgba(255,255,255,0.03);
    border-radius: 14px;
    padding: 16px;
    border: 1px solid var(--dark-border);
}

.realtime-input, .realtime-preview {
    display: flex;
    flex-direction: column;
}

.realtime-input label, .realtime-preview label {
    font-weight: 600;
    margin-bottom: 10px;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

#realtime-resume {
    flex: 1;
    min-height: 160px;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    padding: 14px;
    color: var(--dark-text);
    font-size: 14px;
    resize: vertical;
}

.realtime-stats {
    display: flex;
    gap: 16px;
    margin-top: 10px;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

.preview-content {
    flex: 1;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 14px;
    overflow-y: auto;
    min-height: 160px;
}

.preview-placeholder {
    color: rgba(255,255,255,0.4);
    text-align: center;
    padding: 30px;
}

.preview-legend {
    display: flex;
    gap: 16px;
    margin-top: 10px;
    font-size: 12px;
}

.legend-good { color: var(--success); }
.legend-warning { color: var(--warning); }
.legend-bad { color: var(--danger); }

/* Upload Area */
.upload-area {
    border: 3px dashed rgba(102, 126, 234, 0.3);
    border-radius: 16px;
    padding: 40px 24px;
    text-align: center;
    margin-bottom: 20px;
    transition: var(--transition);
    background: rgba(102, 126, 234, 0.03);
    position: relative;
}

.upload-area.dragover {
    border-color: var(--primary);
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.02);
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.8;
}

.upload-text {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.upload-or {
    color: rgba(255,255,255,0.5);
    margin-bottom: 16px;
    font-size: 14px;
}

.browse-btn {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.browse-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.file-types {
    margin-top: 16px;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

.upload-features {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 14px;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

.file-input {
    display: none;
}

/* Upload Preview */
.upload-preview {
    padding: 16px;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,0.05);
    padding: 16px;
    border-radius: 14px;
    border: 1px solid var(--dark-border);
}

.file-icon {
    font-size: 40px;
}

.file-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.file-name {
    font-weight: 700;
    font-size: 15px;
    word-break: break-all;
}

.file-size {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}

.file-meta {
    font-size: 12px;
    color: var(--success);
}

.remove-file {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--danger);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}

.remove-file:hover {
    transform: rotate(90deg) scale(1.1);
}

.file-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.file-action-btn {
    flex: 1;
    padding: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    color: var(--dark-text);
    cursor: pointer;
    transition: var(--transition);
    font-size: 13px;
}

.file-action-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* Paste Area */
.paste-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.paste-btn {
    padding: 8px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--dark-border);
    border-radius: 6px;
    color: var(--dark-text);
    cursor: pointer;
    font-size: 13px;
    transition: var(--transition);
}

.paste-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* Email & Privacy */
.email-input {
    width: 100%;
    padding: 14px;
    background: rgba(255,255,255,0.05);
    border: 2px solid var(--dark-border);
    border-radius: 10px;
    color: var(--dark-text);
    font-size: 14px;
    margin-bottom: 14px;
    transition: var(--transition);
}

.email-input:focus {
    outline: none;
    border-color: var(--primary);
}

.privacy-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 14px;
}

.privacy-toggle input {
    display: none;
}

.toggle-slider {
    width: 46px;
    height: 24px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    position: relative;
    transition: var(--transition);
}

.toggle-slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: var(--transition);
}

.privacy-toggle input:checked + .toggle-slider {
    background: var(--success);
}

.privacy-toggle input:checked + .toggle-slider::after {
    left: 24px;
}

.toggle-label {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}

.privacy-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.privacy-badge {
    padding: 6px 14px;
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}

/* Loading Animation */
.loading-animation {
    text-align: center;
    padding: 40px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.spinner {
    width: 70px;
    height: 70px;
    border: 4px solid rgba(102, 126, 234, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
}

.loading-steps {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.loading-step {
    padding: 8px 16px;
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    transition: var(--transition);
}

.loading-step.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.5);
}

.loading-progress-detail {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}

/* Result Section */
.result-section {
    background: rgba(102, 126, 234, 0.08);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary);
}

.result-section h3 {
    font-size: 18px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.result-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
}

.result-label {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}

.result-value {
    font-weight: 700;
    font-size: 15px;
    color: var(--primary);
}

/* Health Score */
.health-score-section {
    background: rgba(255,255,255,0.03);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
}

.health-score-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

.health-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 16px;
}

.health-metric {
    text-align: center;
}

.metric-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: conic-gradient(var(--primary) 0%, transparent 0%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    position: relative;
}

.metric-circle::before {
    content: '';
    position: absolute;
    width: 70px;
    height: 70px;
    background: var(--dark-card);
    border-radius: 50%;
}

.metric-number {
    position: relative;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}

.metric-label {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

/* ATS Result */
.ats-result {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    position: relative;
}

.score-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 8px 16px;
    border-radius: 16px;
    font-weight: 800;
    font-size: 12px;
}

.score-badge.bronze { background: #cd7f32; color: white; }
.score-badge.silver { background: #c0c0c0; color: #333; }
.score-badge.gold { background: #ffd700; color: #333; }
.score-badge.platinum { background: linear-gradient(135deg, #e5e4e2, #ffffff); color: #333; }

.ats-result h3 {
    font-size: 20px;
    margin-bottom: 24px;
}

.score-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: conic-gradient(var(--primary) 0deg, var(--primary-dark) 0deg, rgba(255,255,255,0.1) 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
    box-shadow: 0 0 40px rgba(102, 126, 234, 0.3);
}

.score-circle::before {
    content: '';
    position: absolute;
    width: 130px;
    height: 130px;
    background: var(--dark-card);
    border-radius: 50%;
}

.score-number {
    position: relative;
    font-size: 48px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.score-percent {
    position: relative;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.score-message {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 14px;
}

.score-expectation {
    background: rgba(255,255,255,0.05);
    padding: 14px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.score-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-bottom: 24px;
}

.score-action-btn {
    padding: 12px 24px;
    border-radius: 10px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

#improve-btn {
    background: var(--gradient);
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

#share-btn {
    background: rgba(255,255,255,0.1);
    color: var(--dark-text);
    border: 2px solid var(--dark-border);
}

.score-action-btn:hover {
    transform: translateY(-3px);
}

.score-breakdown {
    text-align: left;
    max-width: 450px;
    margin: 0 auto;
}

.breakdown-item {
    display: grid;
    grid-template-columns: 110px 1fr 45px;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.breakdown-bar {
    height: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    overflow: hidden;
}

.breakdown-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 5px;
    transition: width 1s ease;
}

.breakdown-fill.job-match {
    background: linear-gradient(90deg, var(--success), #34d399);
}

.breakdown-percent {
    text-align: right;
    font-weight: 700;
    color: var(--primary);
    font-size: 14px;
}

/* Analysis Result */
.analysis-result {
    background: rgba(255,255,255,0.03);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
}

.analysis-result h3 {
    font-size: 18px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.analysis-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.analysis-item {
    padding: 16px;
    background: rgba(102, 126, 234, 0.08);
    border-left: 4px solid var(--primary);
    border-radius: 0 14px 14px 0;
    transition: var(--transition);
}

.analysis-item:hover {
    transform: translateX(6px);
    background: rgba(102, 126, 234, 0.12);
}

.analysis-item h4 {
    font-size: 15px;
    margin-bottom: 8px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.analysis-item p {
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    font-size: 14px;
}

.analysis-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.analysis-btn {
    padding: 10px 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    color: var(--dark-text);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.analysis-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* Rewrite Section */
.rewrite-section {
    background: linear-gradient(135deg, rgba(255,215,0,0.1), rgba(255,237,78,0.05));
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    border: 2px solid rgba(255,215,0,0.2);
}

.rewrite-section h3 {
    font-size: 18px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rewrite-desc {
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
    font-size: 14px;
}

.rewrite-examples {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.rewrite-item {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: center;
    background: rgba(0,0,0,0.2);
    padding: 16px;
    border-radius: 14px;
}

.rewrite-before, .rewrite-after {
    padding: 14px;
    border-radius: 10px;
}

.rewrite-before {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.3);
}

.rewrite-after {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    position: relative;
}

.rewrite-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 6px;
    display: block;
}

.rewrite-before .rewrite-label { color: var(--danger); }
.rewrite-after .rewrite-label { color: var(--success); }

.rewrite-arrow {
    font-size: 20px;
    color: var(--primary);
}

.use-rewrite {
    position: absolute;
    bottom: -10px;
    right: 10px;
    padding: 6px 14px;
    background: var(--success);
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.use-rewrite:hover {
    transform: scale(1.05);
}

.rewrite-generate {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.rewrite-generate:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

/* Recommended Section */
.recommended-section {
    background: rgba(255,255,255,0.03);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
}

.recommended-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

.pro-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.comparison-col {
    padding: 20px;
    border-radius: 14px;
    border: 2px solid var(--dark-border);
}

.comparison-col.free {
    background: rgba(255,255,255,0.03);
}

.comparison-col.pro {
    background: linear-gradient(135deg, rgba(255,215,0,0.1), rgba(255,237,78,0.1));
    border-color: rgba(255,215,0,0.3);
    position: relative;
    overflow: hidden;
}

.comparison-col.pro::before {
    content: 'POPULAR';
    position: absolute;
    top: 10px;
    right: -30px;
    background: #ffd700;
    color: #333;
    padding: 5px 35px;
    font-size: 10px;
    font-weight: 800;
    transform: rotate(45deg);
}

.comparison-col h4 {
    font-size: 16px;
    margin-bottom: 6px;
}

.pro-price {
    font-size: 20px;
    color: #ffd700;
    display: block;
    margin-bottom: 14px;
}

.comparison-col ul {
    list-style: none;
    margin-bottom: 20px;
}

.comparison-col li {
    padding: 8px 0;
    border-bottom: 1px solid var(--dark-border);
    font-size: 14px;
}

.comparison-col li.disabled {
    opacity: 0.4;
    text-decoration: line-through;
}

.upgrade-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
}

.upgrade-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
    margin-bottom: 24px;
}

.submit-btn, .download-btn, .compare-versions-btn {
    padding: 16px 32px;
    border-radius: 12px;
    border: none;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.submit-btn {
    background: var(--gradient);
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.download-btn {
    background: linear-gradient(135deg, var(--success), #22c55e);
    color: white;
    box-shadow: 0 8px 25px rgba(74, 222, 128, 0.3);
}

.compare-versions-btn {
    background: rgba(255,255,255,0.1);
    color: var(--dark-text);
    border: 2px solid var(--dark-border);
}

.submit-btn:hover, .download-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.5);
}

/* Quick Stats Inline */
.quick-stats-inline {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    background: rgba(102, 126, 234, 0.08);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.quick-stat-item {
    text-align: center;
    padding: 0 30px;
    flex: 1;
}

.quick-stat-value {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 6px;
}

.quick-stat-label {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    font-weight: 600;
}

.quick-stat-divider {
    width: 1px;
    height: 50px;
    background: rgba(255,255,255,0.2);
}

/* FAQ Inline */
.faq-inline {
    margin-bottom: 24px;
}

.faq-inline h3 {
    font-size: 18px;
    margin-bottom: 16px;
    text-align: center;
}

.faq-box {
    background: rgba(255,255,255,0.03);
    border-radius: 14px;
    border: 1px solid var(--dark-border);
    overflow: hidden;
}

.faq-item-inline {
    border-bottom: 1px solid var(--dark-border);
}

.faq-item-inline:last-child {
    border-bottom: none;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    background: rgba(255,255,255,0.03);
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(102, 126, 234, 0.1);
}

.faq-question span {
    font-size: 15px;
    font-weight: 600;
}

.faq-toggle-inline {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: none;
    color: var(--dark-text);
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
}

.faq-toggle-inline:hover {
    background: var(--primary);
}

.faq-item-inline.active .faq-toggle-inline {
    transform: rotate(45deg);
    background: var(--primary);
}

.faq-answer-inline {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    font-size: 14px;
}

.faq-item-inline.active .faq-answer-inline {
    max-height: 200px;
    padding: 0 20px 16px;
}

/* Achievements */
.achievements-section {
    background: rgba(255,255,255,0.03);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
}

.achievements-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
}

.achievement {
    text-align: center;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 14px;
    border: 2px solid var(--dark-border);
    opacity: 0.4;
    transition: var(--transition);
}

.achievement.unlocked {
    opacity: 1;
    border-color: var(--success);
    background: rgba(74, 222, 128, 0.1);
}

.achievement-icon {
    font-size: 28px;
    display: block;
    margin-bottom: 10px;
}

.achievement-name {
    font-size: 13px;
    font-weight: 600;
}

/* Sample Section */
.sample-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.sample-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--dark-border);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    transition: var(--transition);
}

.sample-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.sample-card h4 {
    font-size: 16px;
    margin-bottom: 6px;
}

.sample-card p {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 14px;
}

.sample-download {
    padding: 10px 20px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.sample-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

/* Insights Section */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.insight-card {
    background: rgba(255,255,255,0.03);
    border-radius: 14px;
    padding: 20px;
    border: 1px solid var(--dark-border);
}

.insight-card h4 {
    font-size: 16px;
    margin-bottom: 14px;
    color: var(--primary);
}

.trending-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    padding: 6px 14px;
    background: rgba(102, 126, 234, 0.2);
    border-radius: 16px;
    font-size: 13px;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.skill-tag.hot {
    background: rgba(248, 113, 113, 0.2);
    border-color: rgba(248, 113, 113, 0.3);
    animation: pulse 2s infinite;
}

.skill-tag.rising {
    background: rgba(251, 191, 36, 0.2);
    border-color: rgba(251, 191, 36, 0.3);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.industry-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.industry-item {
    display: grid;
    grid-template-columns: 100px 1fr 40px;
    align-items: center;
    gap: 14px;
}

.industry-bar {
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
}

.industry-bar div {
    height: 100%;
    background: var(--gradient);
    border-radius: 4px;
}

.salary-trends {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.salary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--dark-border);
}

.salary-up {
    color: var(--success);
    font-weight: 700;
}

.salary-same {
    color: var(--warning);
    font-weight: 700;
}

/* How It Works Section */
.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.how-card {
    background: rgba(255,255,255,0.05);
    border-radius: 14px;
    padding: 24px;
    text-align: center;
    border: 1px solid var(--dark-border);
    transition: var(--transition);
    position: relative;
}

.how-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.how-number {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    margin: 0 auto 16px;
}

.how-card h4 {
    font-size: 16px;
    margin-bottom: 10px;
}

.how-card p {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid var(--dark-border);
}

.faq-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.faq-item {
    margin-bottom: 14px;
    border: 1px solid var(--dark-border);
    border-radius: 10px;
    overflow: hidden;
}

.faq-item h4 {
    padding: 16px;
    background: rgba(255,255,255,0.03);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    transition: var(--transition);
}

.faq-item h4:hover {
    background: rgba(102, 126, 234, 0.1);
}

.faq-toggle {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 16px;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    font-size: 14px;
}

.faq-item.active .faq-answer {
    padding: 0 16px 16px;
    max-height: 200px;
}

/* Average Scores Section */
.avg-scores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.avg-score-card {
    background: rgba(255,255,255,0.05);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    border: 1px solid var(--dark-border);
    transition: var(--transition);
}

.avg-score-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.avg-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.avg-score-card h4 {
    font-size: 15px;
    margin-bottom: 12px;
}

.avg-score-bar {
    height: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.avg-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 5px;
    transition: width 1s ease;
}

.avg-score-num {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    display: block;
}

.avg-score-card p {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    margin-top: 4px;
}

.score-tips {
    background: rgba(102, 126, 234, 0.08);
    border-radius: 14px;
    padding: 20px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.score-tips h4 {
    font-size: 16px;
    margin-bottom: 14px;
    color: var(--primary);
}

.score-tips ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.score-tips li {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    padding-left: 20px;
    position: relative;
}

.score-tips li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

/* Quick Stats Section */
.quick-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.quick-stat-card {
    background: rgba(255,255,255,0.05);
    border-radius: 14px;
    padding: 24px;
    text-align: center;
    border: 1px solid var(--dark-border);
    transition: var(--transition);
}

.quick-stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.quick-stat-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 12px;
}

.quick-stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    display: block;
    margin-bottom: 6px;
}

.quick-stat-label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    display: block;
    margin-bottom: 8px;
}

.quick-stat-card p {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--dark-card);
    border-left: 4px solid var(--primary);
    padding: 14px 20px;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    animation: toastSlide 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    font-size: 14px;
}

@keyframes toastSlide {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }

/* Confetti */
.confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
}

/* Footer with Copyright */
.footer {
    background: rgba(0,0,0,0.3);
    border-top: 1px solid var(--dark-border);
    padding: 40px 20px;
    margin-top: 50px;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    font-size: 22px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.footer-tagline {
    color: rgba(255,255,255,0.6);
    margin-bottom: 20px;
    font-size: 14px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-badges {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-badge {
    padding: 6px 14px;
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

.footer-copyright {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    margin-top: 10px;
}

/* Responsive */
@media (max-width: 1024px) {
    .left-sidebar {
        transform: translateX(-100%);
        position: absolute;
    }
    
    .left-sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .font-controls-center {
        position: static;
        transform: none;
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 10px;
        border-color: rgba(255,255,255,0.3);
    }
    
    .container {
        flex-wrap: wrap;
    }
    
    .toll-free {
        order: 1;
    }
    
    .auth-buttons {
        order: 2;
    }
    
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-stats-inline {
        flex-direction: column;
        gap: 20px;
    }
    
    .quick-stat-divider {
        width: 50px;
        height: 1px;
    }
    
    .quick-stat-item {
        padding: 10px 0;
    }
}

@media (max-width: 768px) {
    .title-section h1 {
        font-size: 24px;
    }
    
    .realtime-container {
        grid-template-columns: 1fr;
    }
    
    .pro-comparison {
        grid-template-columns: 1fr;
    }
    
    .rewrite-item {
        grid-template-columns: 1fr;
    }
    
    .rewrite-arrow {
        transform: rotate(90deg);
    }
    
    .stepper {
        flex-direction: column;
        gap: 0;
    }
    
    .step-arrow {
        display: none;
    }
    
    .step {
        flex-direction: row;
        width: 100%;
        padding: 14px;
        margin-bottom: 6px;
        background: rgba(255,255,255,0.05);
        border-radius: 10px;
    }
    
    .step-icon {
        margin-bottom: 0;
        margin-right: 14px;
    }
    
    .step-label {
        text-align: left;
        max-width: none;
    }
    
    .step-tooltip {
        display: none;
    }
    
    .how-it-works-grid,
    .avg-scores-grid,
    .quick-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .insights-grid {
        grid-template-columns: 1fr;
    }
    
    .template-cards {
        grid-template-columns: 1fr;
    }
    
    .sample-options {
        grid-template-columns: 1fr;
    }
    
    .radio-group {
        justify-content: center;
    }
    
    .radio-option {
        padding: 6px 8px;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .ai-logo {
        width: 65px;
        height: 65px;
    }
    
    .logo-icon {
        font-size: 26px;
    }
    
    .logo-text {
        font-size: 26px;
    }
    
    .logo-resume {
        font-size: 24px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
body.high-contrast {
    --dark-bg: #000;
    --dark-card: #000;
    --dark-text: #fff;
    --primary: #ffff00;
    --primary-dark: #ffff00;
}