* {
    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: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    min-height: 100vh;
}

/* Contact Card (Top Right) */
.contact-card {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 320px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.contact-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 12px 12px 0 0;
    font-weight: 600;
    font-size: 16px;
}

.contact-card-body {
    padding: 20px;
}

.contact-card-body p {
    margin-bottom: 15px;
    font-size: 13px;
    line-height: 1.6;
    color: #555;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-links a {
    display: block;
    padding: 10px 12px;
    background: #f5f5f5;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-size: 13px;
    transition: all 0.3s;
    border-left: 3px solid #667eea;
}

.contact-links a:hover {
    background: #667eea;
    color: white;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.contact-links a strong {
    display: block;
    margin-bottom: 2px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-card-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    padding: 0;
    line-height: 1;
}

.contact-card-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Mobile responsiveness for contact card */
@media (max-width: 768px) {
    .contact-card {
        position: relative;
        top: 0;
        right: 0;
        width: 100%;
        margin-bottom: 20px;
        border-radius: 8px;
    }
    
    .contact-card-header {
        border-radius: 8px 8px 0 0;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #667eea;
}

h1 {
    color: #667eea;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.subtitle {
    color: #666;
    font-size: 1.1em;
}

.actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.form-section {
    margin-bottom: 40px;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
}

.form-section h2 {
    color: #333;
    font-size: 1.8em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.section-help {
    color: #666;
    font-size: 0.95em;
    margin-bottom: 20px;
    padding: 12px 15px;
    background: #e3f2fd;
    border-radius: 5px;
    border-left: 3px solid #2196f3;
}

.experience-simple, .education-simple {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #ddd;
    position: relative;
}

.experience-simple h3, .education-simple h3 {
    color: #667eea;
    font-size: 1.1em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
    padding-right: 40px;
}

.remove-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    padding: 0;
    line-height: 1;
}

.remove-btn:hover {
    background: #c82333;
    transform: scale(1.1);
}

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

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

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

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

small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.85em;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

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

.btn-success {
    background: #28a745;
    color: white;
    font-size: 16px;
    padding: 15px 30px;
}

.btn-success:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.btn-danger {
    background: #dc3545;
    color: white;
    padding: 8px 16px;
    font-size: 12px;
}

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

.experience-item,
.project-item,
.certification-item,
.education-item {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    position: relative;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.item-title {
    font-weight: 600;
    color: #667eea;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #ddd;
}

.message-box {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 5px;
    color: white;
    font-weight: 600;
    z-index: 1000;
    animation: slideIn 0.3s ease-in-out;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.message-box.success {
    background: #28a745;
}

.message-box.error {
    background: #dc3545;
}

.message-box.info {
    background: #17a2b8;
}

.analysis-results {
    background: white;
    padding: 20px;
    margin-top: 15px;
    border-radius: 8px;
    border: 1px solid #667eea;
}

.analysis-results h3 {
    color: #667eea;
    margin-bottom: 15px;
}

.keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.keyword-tag {
    background: #667eea;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

/* All Keywords Section */
.all-keywords-section {
    background: #f8f9fa;
    border: 2px solid #667eea;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.2);
}

.keywords-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.keywords-header h2 {
    color: #667eea;
    margin: 0;
    flex: 1;
}

.keywords-header p {
    flex: 1 1 100%;
    margin: 10px 0 0 0;
    color: #666;
}

.keywords-filter {
    margin-bottom: 20px;
}

.keywords-filter input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.keywords-filter input:focus {
    outline: none;
    border-color: #667eea;
}

.all-keywords-content {
    max-height: 500px;
    overflow-y: auto;
    padding: 10px;
}

.keywords-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.loading, .error, .no-results {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 1.1em;
}

.error {
    color: #dc3545;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-overlay .spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

.loading-overlay p {
    color: white;
    margin-top: 20px;
    font-size: 16px;
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .form-actions {
        flex-direction: column;
    }
}

/* ============== USER STATUS BADGE ============== */
.user-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
    margin-top: 15px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.user-status-badge.premium {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
}

.user-status-badge.free {
    background: rgba(255, 255, 255, 0.3);
    color: #333;
}

.user-status-badge.locked {
    background: rgba(255, 100, 100, 0.3);
    color: #333;
}

.badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-premium {
    background: #333;
    color: #FFD700;
}

.badge-free {
    background: #28a745;
    color: white;
}

.badge-locked {
    background: #dc3545;
    color: white;
}

/* ============== MODAL STYLES ============== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: slideUp 0.4s ease;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}

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

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

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

/* Email Modal */
.email-modal {
    text-align: center;
}

.email-modal h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #333;
}

.email-modal p {
    color: #666;
    margin-bottom: 25px;
    font-size: 16px;
}

.email-modal input {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: border-color 0.3s;
}

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

.modal-note {
    font-size: 12px;
    color: #999;
    margin-top: 15px;
}

/* Payment Modal */
.payment-modal {
    text-align: center;
}

.payment-modal h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #333;
}

.payment-subtitle {
    color: #666;
    margin-bottom: 25px;
    font-size: 16px;
}

.price-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
}

.price-amount {
    font-size: 48px;
    font-weight: 700;
    display: block;
}

.price-label {
    font-size: 14px;
    opacity: 0.9;
}

.payment-benefits {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    text-align: left;
}

.benefit {
    padding: 8px 0;
    color: #333;
    font-size: 14px;
}

.benefit:not(:last-child) {
    border-bottom: 1px solid #e0e0e0;
}

.payment-methods h3 {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
}

.payment-btn {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.payment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.stripe-btn:hover {
    border-color: #635bff;
    background: #f0efff;
}

.paypal-btn:hover {
    border-color: #003087;
    background: #e6f0ff;
}

.crypto-btn:hover {
    border-color: #f7931a;
    background: #fff8e6;
}

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

.payment-note {
    font-size: 12px;
    color: #999;
    margin-top: 20px;
}

/* Success Modal */
.success-modal {
    text-align: center;
}

.success-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.success-modal h2 {
    font-size: 28px;
    color: #28a745;
    margin-bottom: 15px;
}

.success-modal p {
    color: #666;
    margin-bottom: 10px;
}

.success-email {
    background: #f8f9fa;
    padding: 10px 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 14px;
}

/* Button Sizes */
.btn-large {
    padding: 15px 40px;
    font-size: 18px;
}

/* Mobile Responsive for Modals */
@media (max-width: 768px) {
    .modal-content {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .price-amount {
        font-size: 36px;
    }
    
    .payment-modal h2,
    .email-modal h2,
    .success-modal h2 {
        font-size: 24px;
    }
    
    .user-status-badge {
        font-size: 12px;
        padding: 6px 12px;
    }
}

