/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Navigation Styles */
.navbar {
    background-color: #2c3e50;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-logo {
    color: #fff;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
    padding: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo-img {
    height: 32px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 10px;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #ecf0f1;
    text-decoration: none;
    padding: 15px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s;
}

.nav-link:hover {
    background-color: #34495e;
}

.nav-btn {
    background-color: #3498db;
    padding: 8px 20px;
    border-radius: 5px;
    margin-left: 10px;
}

.nav-btn:hover {
    background-color: #2980b9;
}

/* Avatar in navigation */
.nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 5px;
    display: none;
    list-style: none;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    border-bottom: 1px solid #eee;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
}

.dropdown-menu a:hover {
    background-color: #f5f5f5;
}

.divider {
    border-top: 1px solid #eee;
    margin: 5px 0;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 0;
    background: white;
    border-radius: 10px;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.hero .lead {
    font-size: 20px;
    color: #7f8c8d;
    margin: 50px;
}

.hero-images {
    display: flex;
    gap: 20px;
    justify-content: center;
    padding: 40px 20px;
    background: white;
    border-radius: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    max-width: 350px;
}

.hero-image-container h4 {
    font-size: 16px;
    color: #2c3e50;
    text-align: left;
    margin: 0;
    font-weight: 600;
    width: 100%;
}

.hero-image {
    max-width: 350px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    object-fit: contain;
    display: block;
}

.hero-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Dashboard Styles */
.dashboard-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
}

.dashboard-hero h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.stat-card h3 {
    font-size: 36px;
    color: #3498db;
    margin-bottom: 10px;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 250px;
    gap: 30px;
}

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

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

/* Cards */
.card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card h2 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.card h3 {
    margin-bottom: 15px;
    color: #34495e;
}

/* Job Cards */
.job-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.job-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.job-card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.job-card .company {
    font-weight: 600;
    color: #34495e;
}

.job-card .location,
.job-card .salary {
    color: #7f8c8d;
    margin: 5px 0;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    align-items: start;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.activity-icon {
    font-size: 24px;
}

.activity-content small {
    color: #7f8c8d;
}

/* Application Status Badges */
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

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

.status-viewed {
    background: #d1ecf1;
    color: #0c5460;
}

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

/* Profile Styles */
.profile-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    margin-top: 30px;
}

.profile-avatar {
    text-align: center;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.profile-avatar img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 20px;
    object-fit: cover;
}

.profile-completion-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.completion-checklist {
    list-style: none;
    margin-top: 15px;
}

.completion-checklist li {
    padding: 5px 0;
}

.completion-checklist .completed {
    color: #27ae60;
}

.completion-checklist .pending {
    color: #7f8c8d;
}

/* Progress Bar */
.progress-bar {
    background: #ecf0f1;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    background: #3498db;
    height: 100%;
    transition: width 0.3s;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #34495e;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-large {
    padding: 15px 30px;
    font-size: 18px;
}

.btn-small {
    padding: 5px 15px;
    font-size: 14px;
}

/* Messages */
.success-message,
.error-message {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Login/Signup Container */
.login-container {
    max-width: 400px;
    margin: 50px auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.login-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

.login-hint {
    text-align: center;
    color: #7f8c8d;
    margin-top: 20px;
    font-size: 14px;
}

.signup-link {
    text-align: center;
    margin-top: 20px;
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

/* CTA Section */
.cta-section {
    background: white;
    padding: 60px;
    border-radius: 10px;
    text-align: center;
    margin: 40px 0;
}

.cta-section h2 {
    margin-bottom: 20px;
    color: #2c3e50;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: background 0.3s;
}

.action-item:hover {
    background: #e9ecef;
}

.action-item-extension {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.action-item-extension:hover {
    background: linear-gradient(135deg, #5568d3 0%, #653a8b 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

/* Skills */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.skill-tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 5px;
    }
    
    .dashboard-grid,
    .profile-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-images {
        flex-direction: column;
        align-items: center;
    }

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

/* Recent Applications Styles */
.premium-feature {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    margin: 10px 0;
}

.premium-feature p {
    margin: 5px 0;
}

.upgrade-link {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.upgrade-link:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.empty-applications {
    text-align: center;
    padding: 20px;
    color: #666;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 10px 0;
}

.empty-applications p {
    margin: 0;
}

/* Application status badges */
.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: #e3f2fd;
    color: #1976d2;
}

.status-viewed {
    background: #fff3e0;
    color: #f57c00;
}

.status-interview {
    background: #e8f5e8;
    color: #388e3c;
}

/* Dashboard Recent Applications Enhancements */
.application-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background: white;
    transition: box-shadow 0.2s ease;
}

.application-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.application-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.application-info {
    flex: 1;
}

.application-info h4 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 1.2em;
    font-weight: 600;
}

.company-name {
    margin: 0 0 5px 0;
    color: #667eea;
    font-weight: 600;
    font-size: 1em;
}

.location-info {
    margin: 0 0 8px 0;
    color: #666;
    font-size: 0.9em;
}

.applied-date {
    color: #999;
    font-size: 0.85em;
}

.application-actions-dashboard {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.find-out-more-btn {
    display: inline-flex;
    align-items: center;
    background: #f8f9fa;
    color: #667eea;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    white-space: nowrap;
}

.find-out-more-btn:hover {
    background: #667eea;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.application-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
}

.download-btn-small {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.85em;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.download-btn-small:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.view-details-btn {
    display: inline-flex;
    align-items: center;
    background: #f8f9fa;
    color: #666;
    padding: 6px 12px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.85em;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.view-details-btn:hover {
    background: #e9ecef;
    color: #333;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Responsive adjustments for dashboard applications */
@media (max-width: 768px) {
    .application-main {
        flex-direction: column;
        gap: 10px;
    }

    .application-actions-dashboard {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .application-actions {
        justify-content: center;
    }

    .find-out-more-btn, .download-btn-small {
        font-size: 0.85em;
        padding: 6px 12px;
    }
}

/* ==============================================
   PAGE-SPECIFIC STYLES
   ============================================== */

/* Dashboard Page Styles */
.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    margin: 0;
    color: #333;
}

.dashboard-header p {
    margin: 0.5rem 0 0 0;
    color: #666;
}

/* Credits Card Styles */
.language-selector {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.language-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    position: relative;
}

.language-btn:hover {
    border-color: #007bff;
    background: #f0f8ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.1);
}

.language-btn.selected {
    border-color: #28a745;
    background: #f0fff4;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
}

.language-btn .flag {
    font-size: 1.5rem;
    width: 1.5rem;
    height: 1.5rem;
    display: inline-flex;
    align-items: flex-end;
    justify-content: center;
    flex-shrink: 0;
}

.language-btn .check-mark {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    color: #28a745;
    font-weight: bold;
    font-size: 1.2rem;
}

.credits-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-bottom: 2rem;
}

.credits-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.credits-header h2 {
    color: white;
    margin: 0;
}

.credits-display {
    display: flex;
    align-items: baseline;
    font-weight: bold;
}

.credits-number {
    font-size: 2.5rem;
    color: #fff;
}

.credits-separator {
    font-size: 1.5rem;
    margin: 0 0.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.credits-max {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.credits-display-profile .credits-number {
    color: #868686;
}

.credits-display-profile .credits-separator {
    color: #868686;
}

.credits-display-profile .credits-max {
    color: #868686;
}

.credits-progress {
    margin: 1rem 0;
}

.credits-progress .progress-bar {
    background: rgba(255, 255, 255, 0.3);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.credits-progress .progress-fill {
    background: #fff;
    height: 100%;
    transition: width 0.3s ease;
}

.credits-info {
    color: rgba(255, 255, 255, 0.95);
    margin-top: 1rem;
}

.credits-info a {
    color: #fff;
    text-decoration: underline;
}

/* AI CV Section with Credits */
.ai-cv-section {
    position: relative;
}

.ai-cv-section.no-credits {
    opacity: 0.95;
}

.credits-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.credits-text {
    font-weight: 600;
    color: #333;
}

.no-credits-warning {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 0, 0, 0.05);
    border-radius: 8px;
    border: 2px dashed #ff6b6b;
}

.no-credits-warning h3 {
    color: #dc3545;
    margin-bottom: 1rem;
}

.btn-upgrade-inline {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.btn-upgrade-inline:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

/* CV Upload Section Styles */
.cv-upload-section {
    margin-bottom: 2rem;
}

.upload-prompt {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
}

.cv-flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
}

.cv-item {
    flex: 0 1 calc(33.333% - 1rem);
    min-width: 200px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.cv-item:hover {
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.default-cv {
    border-color: #28a745;
    background: #f0fff4;
}

.default-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #28a745;
    color: white;
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
}

.cv-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.cv-item h4 {
    margin: 0.5rem 0;
    font-size: 1rem;
    color: #333;
    word-break: break-word;
}

.cv-date {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1rem;
}

.cv-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 0.5rem;
}

/* Enhanced CV Action Buttons */
.cv-actions .btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 80px;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Button Icons */
.cv-actions .btn-icon {
    font-size: 0.75rem;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.cv-actions .btn-small:hover .btn-icon {
    opacity: 1;
}

/* View Button - Primary Blue */
.cv-actions .btn-small:not(.btn-danger):not(.btn-warning) {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

.cv-actions .btn-small:not(.btn-danger):not(.btn-warning):hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

/* Replace Button - Warning Styling */
.cv-actions .btn-small.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #000;
}

.cv-actions .btn-small.btn-warning:hover {
    background: linear-gradient(135deg, #e0a800 0%, #c69500 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3);
}

/* Delete Button - Enhanced Danger Styling */
.cv-actions .btn-small.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.cv-actions .btn-small.btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* Focus states for accessibility */
.cv-actions .btn-small:focus {
    outline: none;
    ring: 2px;
    ring-offset: 2px;
}

.cv-actions .btn-small:not(.btn-danger):not(.btn-warning):focus {
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.cv-actions .btn-small.btn-warning:focus {
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.25);
}

.cv-actions .btn-small.btn-danger:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25);
}

/* Inline form styling to prevent layout issues */
.cv-actions form {
    display: inline-block;
    margin: 0;
}

.cv-upload-box {
    border: 2px dashed #007bff;
    background: #f0f8ff;
    cursor: pointer;
}

.cv-upload-box:hover {
    background: #e6f2ff;
}

.cv-upload-label {
    cursor: pointer;
    display: block;
    width: 100%;
    height: 100%;
}

.cv-limit-reached {
    background: #f8f9fa;
    border-color: #dee2e6;
}

/* Form Styles */
.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-hint {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #666;
}

.form-hint code {
    background: #f1f3f4;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #333;
}

/* URL Input Group Styles */
.url-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.url-input {
    flex: 1;
}

.btn-retrieve {
    background: linear-gradient(135deg, #0a66c2 0%, #004182 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 6px rgba(10, 102, 194, 0.3);
    white-space: nowrap;
    min-width: 120px;
}

.btn-retrieve:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(10, 102, 194, 0.4);
}

.btn-retrieve:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

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

.required {
    color: #dc3545;
}

.ai-actions {
    text-align: center;
    margin: 2rem 0 1rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

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

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

.btn-ai-generate:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-ai-generate-pdf {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.btn-ai-generate-pdf:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.btn-ai-generate-pdf:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.ai-note {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-top: 1rem;
}

.btn-danger {
    background: #dc3545;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-premium {
    background: #ffc107;
    color: #333;
}

.btn-premium:hover {
    background: #e0a800;
}

.btn-set-default {
    background: #28a745;
    color: white;
}

.btn-set-default:hover {
    background: #218838;
}

.account-info {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.account-info a {
    color: #007bff;
    text-decoration: none;
}

.account-info a:hover {
    text-decoration: underline;
}

/* LinkedIn Tester Section */
.linkedin-tester-section {
    margin-bottom: 2rem;
}

.linkedin-actions {
    text-align: center;
    margin: 1.5rem 0;
}

.btn-linkedin-test {
    background: linear-gradient(135deg, #0a66c2 0%, #004182 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(10, 102, 194, 0.3);
}

.btn-linkedin-test:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(10, 102, 194, 0.4);
}

.btn-linkedin-test:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.scraping-results {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #e9ecef;
}

.scraping-results h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #333;
}

.result-item {
    margin-bottom: 1rem;
}

.result-item strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
}

.result-item span {
    color: #666;
}

.result-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Premium styling for custom prompts */
.premium-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
    margin-left: 8px;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
}

.premium-hint {
    color: #28a745 !important;
    font-weight: 600;
    margin-top: 5px;
    display: block;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

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

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border: none;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    padding: 10px 20px;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover,
.close:focus {
    color: #000;
}

.upgrade-content {
    padding: 40px;
    text-align: center;
}

.upgrade-content h2 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 2rem;
}

.price-tag {
    margin: 20px 0 40px 0;
}

.price {
    font-size: 3rem;
    color: #007bff;
    font-weight: bold;
}

.period {
    font-size: 1.2rem;
    color: #666;
}

.features-list {
    text-align: left;
    margin: 30px 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.2s;
}

.feature-item.highlight {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    border: 2px solid #ffc107;
}

.feature-item:hover {
    transform: translateX(5px);
    background: #e9ecef;
}

.feature-item.highlight:hover {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe8a1 100%);
}

.feature-icon {
    font-size: 2rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.feature-item strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.feature-item p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.upgrade-actions {
    margin: 30px 0;
}

.btn-upgrade-now {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    margin-bottom: 10px;
    width: 100%;
}

.btn-upgrade-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

.btn-maybe-later {
    background: transparent;
    color: #666;
    border: 2px solid #ddd;
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.btn-maybe-later:hover {
    border-color: #999;
    color: #333;
}

.disclaimer {
    margin-top: 20px;
    font-size: 0.8rem;
    color: #999;
    font-style: italic;
}

/* Custom Prompt Styles */
.premium-prompts-section {
    margin-top: 15px;
}

.btn-custom-prompt {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

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

.custom-prompt-section {
    margin-top: 15px;
    padding: 20px;
    border: 2px solid #667eea;
    border-radius: 8px;
    background: linear-gradient(135deg, #f5f7ff 0%, #e8ecff 100%);
    animation: slideDown 0.3s ease;
}

.custom-prompt-section label {
    color: #4a5568;
    font-weight: 600;
    margin-bottom: 8px;
}

.custom-prompt-section textarea {
    border: 2px solid #cbd5e0;
    border-radius: 6px;
    transition: border-color 0.3s ease;
}

.custom-prompt-section textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#customPromptArrow {
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.character-counter {
    text-align: right;
    margin-top: 5px;
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #666;
}

.character-counter.warning {
    color: #ff6b35;
    font-weight: 600;
}

.character-counter.danger {
    color: #e53e3e;
    font-weight: 700;
}

/* Extension Connect Page Styles */
.extension-connect-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.auto-auth-section {
    text-align: center;
    padding: 2rem;
}

.loading-spinner {
    margin: 2rem auto;
}

.spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.status-message {
    color: #666;
    margin-top: 1rem;
    font-style: italic;
}

.status-message.success {
    color: #28a745;
    font-weight: bold;
}

.status-message.error {
    color: #dc3545;
    font-weight: bold;
}

.token-display {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #28a745;
}

.token-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
    padding: 1rem;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.token-box code {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    word-break: break-all;
}

.btn-copy {
    padding: 0.5rem 1rem;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}

.btn-copy:hover {
    background: #0056b3;
}

.user-info {
    margin-top: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.user-info h3 {
    margin-top: 0;
    color: #333;
}

.existing-tokens {
    margin-top: 2rem;
    padding: 1rem;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
}

.existing-tokens h3 {
    margin-top: 0;
    color: #856404;
}

.existing-tokens ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.actions {
    margin-top: 2rem;
    text-align: center;
}

.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
    transition: all 0.3s;
}

/* Applications Page Styles */
.upgrade-message {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: center;
}

.upgrade-btn {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin-left: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.upgrade-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.applications-grid {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.application-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #667eea;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.application-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.application-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.application-header h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.4em;
}

.application-location-company {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.company-name {
    color: #667eea;
    font-weight: 600;
    font-size: 1.1em;
}

.location-badge {
    background: #f0f8ff;
    color: #1976d2;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.9em;
    font-weight: 500;
    border: 1px solid #e3f2fd;
}

.application-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.application-meta p {
    margin: 0;
    color: #666;
    font-size: 0.9em;
}

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

.job-description h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.1em;
}

.job-preview, .job-full {
    color: #555;
    line-height: 1.5;
    margin: 0;
}

.toggle-description {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    margin: 10px 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.toggle-description:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(102, 126, 234, 0.4);
}

.job-full {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.application-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
}

.download-btn {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(102, 126, 234, 0.3);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.download-btn-pdf {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    box-shadow: 0 4px 6px rgba(220, 53, 69, 0.3);
}

.download-btn-pdf:hover {
    box-shadow: 0 6px 12px rgba(220, 53, 69, 0.4);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.empty-state h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.empty-state p {
    margin: 0 0 20px 0;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.action-btn {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.action-btn:hover {
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

/* Redo functionality styles */
.redo-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    margin-left: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.redo-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(40, 167, 69, 0.4);
}

.redo-btn-disabled {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: not-allowed;
    font-size: 0.9em;
    font-weight: 600;
    margin-left: 10px;
    opacity: 0.7;
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.3);
}

.redo-form {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #28a745;
    animation: slideDown 0.3s ease-out;
}

.redo-form h4 {
    margin: 0 0 15px 0;
    color: #28a745;
    font-size: 1.1em;
}

.redo-form textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px;
    font-family: inherit;
    font-size: 0.9em;
    resize: vertical;
    margin-bottom: 15px;
}

.redo-form textarea:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.1);
}

.redo-actions {
    display: flex;
    gap: 10px;
}

.redo-status {
    margin: 0;
    color: #666;
    font-size: 0.9em;
}

.redo-count-badge {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
    margin-left: 5px;
    display: inline-block;
    box-shadow: 0 1px 3px rgba(40, 167, 69, 0.3);
}

.redo-count-badge.redo-limit-reached {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    box-shadow: 0 1px 3px rgba(220, 53, 69, 0.3);
}

/* Login Page Styles */
.oauth-section {
    margin-bottom: 2rem;
}

.google-signin-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: #fff;
    border: 2px solid #dadce0;
    border-radius: 4px;
    text-decoration: none;
    color: #3c4043;
    font-weight: 500;
    transition: all 0.3s ease;
}

.google-signin-btn:hover {
    background: #f8f9fa;
    border-color: #dadce0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.google-signin-btn img {
    width: 20px;
    height: 20px;
}

.divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #dadce0;
}

.divider span {
    background: white;
    padding: 0 1rem;
    position: relative;
    color: #5f6368;
    font-size: 0.875rem;
}

/* Profile Page Styles */
.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.profile-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-avatar {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.profile-avatar img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 1rem;
    object-fit: cover;
}

.profile-info-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.profile-info-card h3 {
    margin: 0 0 1rem 0;
    color: #333;
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.info-label {
    color: #666;
}

.info-value {
    font-weight: 500;
    color: #333;
}

.text-premium {
    color: #ffc107;
}

.btn-upgrade-small {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    margin-top: 1rem;
    background: #ffc107;
    color: #333;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background 0.3s;
}

.btn-upgrade-small:hover {
    background: #e0a800;
}

.profile-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.profile-section h2 {
    margin: 0 0 1.5rem 0;
    color: #333;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.profile-form {
    margin-top: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group input[readonly] {
    background-color: #e9ecef;
    cursor: not-allowed;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.credits-item {
    align-items: center;
}

.btn-cancel-subscription {
    background-color: #dc3545;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
    width: 100%;
}

.btn-cancel-subscription:hover {
    background-color: #c82333;
}

.btn-reactivate-subscription {
    background-color: #28a745;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
    width: 100%;
}

.btn-reactivate-subscription:hover {
    background-color: #218838;
}

.text-success {
    color: #28a745;
}

.text-warning {
    color: #ffc107;
}

.text-error {
    color: #dc3545;
}

/* Error Page Styles */
.error-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.error-container {
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.error-icon {
    color: #e74c3c;
    margin-bottom: 2rem;
}

.error-icon svg {
    width: 100px;
    height: 100px;
}

.error-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.error-message {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Mobile Blocker Overlay */
.mobile-blocker {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.mobile-blocker-content {
    text-align: center;
    color: white;
    max-width: 500px;
}

.mobile-blocker-icon {
    font-size: 5rem;
    margin-bottom: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.mobile-blocker h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.mobile-blocker p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
}

.mobile-blocker-note {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 2rem;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .mobile-blocker {
        display: flex;
    }

    /* Allow mobile access for specific pages (e.g., extension auth) */
    .allow-mobile .mobile-blocker {
        display: none !important;
    }

    .language-selector {
        flex-direction: column;
    }

    .language-btn {
        width: 100%;
    }

    .cv-item {
        flex: 1 1 100%;
    }

    .credits-badge {
        position: static;
        margin-bottom: 1rem;
        justify-content: center;
    }

    /* Enhanced mobile CV actions */
    .cv-actions {
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 0.75rem;
    }

    .cv-actions .btn-small {
        width: 100%;
        min-width: auto;
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .url-input-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn-retrieve {
        min-width: auto;
        padding: 0.75rem 1rem;
    }

    .modal-content {
        margin: 10% auto;
        width: 95%;
    }

    .upgrade-content {
        padding: 30px 20px;
    }

    .price {
        font-size: 2.5rem;
    }

    .application-meta {
        grid-template-columns: 1fr;
    }

    .application-card {
        padding: 20px;
    }

    .error-title {
        font-size: 2rem;
    }

    .error-message {
        font-size: 1rem;
    }

    .error-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 200px;
    }

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

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