/**
 * Skill Farm Premium Frontend Styles
 * Luxury design inspired by private banks and Vogue
 */

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

:root {
    --cream-primary: #FEFCF6;
    --cream-secondary: #FAF6ED;
    --cream-accent: #F5F0E5;
    --cream-dark: #F0EBE0;
    --green-primary: #1B3B2F;
    --green-secondary: #2D5444;
    --green-accent: #4A7259;
    --green-light: #6B8F6F;
    --gold-primary: #C8A882;
    --gold-secondary: #B8956C;
    --gold-light: #D4C4A8;
    --text-primary: #1A1A1A;
    --text-secondary: #555555;
    --text-tertiary: #888888;
    --border-elegant: #E5DFD0;
    --border-gold: #D4C4A8;
    --shadow-elegant: 0 12px 48px rgba(27, 59, 47, 0.06);
    --shadow-luxury: 0 24px 64px rgba(27, 59, 47, 0.08);
    --shadow-subtle: 0 4px 16px rgba(27, 59, 47, 0.04);
    --shadow-deep: 0 32px 80px rgba(27, 59, 47, 0.12);
}

.skill-farm-wrapper {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(160deg, var(--cream-primary) 0%, var(--cream-secondary) 35%, var(--cream-accent) 70%, var(--cream-dark) 100%);
    color: var(--text-primary);
    line-height: 1.65;
    min-height: 100vh;
    font-weight: 300;
    letter-spacing: -0.01em;
    padding: 48px;
    position: relative;
}

.skill-farm-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(200, 168, 130, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(27, 59, 47, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Header Section */
.sf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 64px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border-elegant);
    border-radius: 32px;
    margin-bottom: 56px;
    box-shadow: var(--shadow-elegant);
}

.sf-brand {
    display: flex;
    align-items: center;
    gap: 24px;
}

.sf-brand-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-secondary) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    font-weight: 500;
    box-shadow: var(--shadow-elegant);
    border: 2px solid var(--gold-light);
}

.sf-brand-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 300;
    color: var(--green-primary);
    letter-spacing: -0.03em;
}

.sf-brand-text p {
    color: var(--text-secondary);
    font-size: 15px;
    margin-top: 4px;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* Main Layout with Sidebar */
.sf-main-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 48px;
    max-width: 1600px;
    margin: 0 auto;
}

/* Journey Sidebar */
.sf-sidebar {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Journey Progress */
.sf-journey-progress {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 28px;
    padding: 36px;
    border: 1px solid var(--border-elegant);
    box-shadow: var(--shadow-elegant);
    backdrop-filter: blur(20px);
}

.sf-journey-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 400;
    color: var(--green-primary);
    margin-bottom: 32px;
    letter-spacing: -0.02em;
}

.sf-progress-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sf-progress-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    position: relative;
}

.sf-progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 20px;
    top: 48px;
    width: 1px;
    height: calc(100% + 24px);
    background: var(--border-elegant);
}

.sf-step-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 18px;
    flex-shrink: 0;
    z-index: 1;
    background: var(--cream-dark);
    color: var(--text-tertiary);
    border: 1px solid var(--border-elegant);
}

.sf-progress-step.completed .sf-step-icon {
    background: rgba(255, 255, 255, 0.9);
    color: var(--green-primary);
    border: 1px solid var(--green-accent);
}

.sf-progress-step.active .sf-step-icon {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-secondary) 100%);
    color: white;
    border: 1px solid var(--gold-secondary);
    box-shadow: 0 0 0 4px rgba(200, 168, 130, 0.15);
}

.sf-step-content h4 {
    font-size: 16px;
    font-weight: 500;
    color: var(--green-primary);
    margin-bottom: 6px;
}

.sf-step-content p {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Metrics Card */
.sf-metrics-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 28px;
    padding: 32px;
    border: 1px solid var(--border-elegant);
    box-shadow: var(--shadow-subtle);
    backdrop-filter: blur(20px);
}

.sf-metrics-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 400;
    color: var(--green-primary);
    margin-bottom: 24px;
}

.sf-metric-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-elegant);
}

.sf-metric-item:last-child {
    border-bottom: none;
}

.sf-metric-item span:first-child {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 300;
}

.sf-metric-value {
    font-size: 18px;
    font-weight: 500;
    color: var(--green-primary);
}

/* Main Content Area */
.sf-main-content {
    display: block;
    width: 100%;
}

/* Integrated Opportunities Section */
.sf-opportunities-section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 32px;
    padding: 48px;
    border: 1px solid var(--border-elegant);
    box-shadow: var(--shadow-luxury);
    backdrop-filter: blur(20px);
}

/* Senna Introduction */
.sf-senna-intro {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-elegant);
}

.sf-senna-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.sf-senna-avatar {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 500;
    box-shadow: var(--shadow-subtle);
    border: 2px solid var(--cream-accent);
}

.sf-senna-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 400;
    color: var(--green-primary);
    letter-spacing: -0.02em;
}

.sf-senna-message {
    color: var(--text-primary);
    font-size: 16px;
    line-height: 1.8;
    font-weight: 300;
}

.sf-senna-message p {
    margin-bottom: 16px;
}

.sf-senna-message p:last-child {
    margin-bottom: 0;
}

/* Query Section */
.sf-query-section {
    background: var(--cream-primary);
    border-radius: 24px;
    padding: 32px;
    margin-bottom: 48px;
    border: 1px solid var(--border-elegant);
}

.sf-query-label {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 300;
    color: var(--green-primary);
    margin-bottom: 20px;
    display: block;
    letter-spacing: -0.02em;
}

.sf-query-input-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-end;
}

.sf-query-input {
    flex: 1;
    padding: 20px 24px;
    border: 1px solid var(--border-elegant);
    border-radius: 18px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    background: white;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    resize: vertical;
    min-height: 80px;
    line-height: 1.6;
}

.sf-query-input:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 4px rgba(200, 168, 130, 0.12);
}

.sf-query-submit {
    background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-secondary) 100%);
    color: white;
    border: none;
    padding: 20px 36px;
    border-radius: 18px;
    font-weight: 400;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    white-space: nowrap;
    border: 1px solid var(--green-accent);
}

.sf-query-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(27, 59, 47, 0.25);
}

/* Opportunities Title */
.sf-opportunities-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 400;
    color: var(--green-primary);
    margin-bottom: 32px;
    letter-spacing: -0.02em;
}

/* Chat Interface */
.sf-chat-container {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 32px;
    padding: 48px;
    border: 1px solid var(--border-elegant);
    box-shadow: var(--shadow-luxury);
    backdrop-filter: blur(20px);
    height: fit-content;
}

.sf-chat-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border-elegant);
}

.sf-chat-avatar {
    width: 72px;
    height: 72px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    box-shadow: var(--shadow-elegant);
    border: 2px solid var(--cream-accent);
}

.sf-chat-info h2 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 400;
    color: var(--green-primary);
    margin-bottom: 6px;
}

.sf-chat-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--green-accent);
    font-size: 14px;
}

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

/* Opportunities Grid - 2x3 Layout */
.sf-opportunities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 40px;
}

.sf-opportunity-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 28px;
    padding: 40px;
    border: 1px solid var(--border-elegant);
    transition: all 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: var(--shadow-subtle);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.sf-opportunity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--gold-primary) 0%, var(--gold-secondary) 100%);
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.sf-opportunity-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-deep);
    border-color: var(--gold-light);
}

.sf-opportunity-card:hover::before {
    opacity: 1;
}

.sf-match-score {
    position: absolute;
    top: 28px;
    right: 28px;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-secondary) 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid var(--gold-secondary);
    box-shadow: var(--shadow-subtle);
}

.sf-opportunity-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
}

.sf-company-logo {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--cream-secondary) 0%, var(--cream-accent) 100%);
    border: 1px solid var(--border-elegant);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    color: var(--green-primary);
    font-size: 24px;
    box-shadow: var(--shadow-subtle);
    flex-shrink: 0;
}

.sf-job-title {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 400;
    color: var(--green-primary);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.sf-company-name {
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 17px;
    margin-bottom: 16px;
    letter-spacing: 0.01em;
}

.sf-job-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 300;
}

.sf-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sf-apply-button {
    width: 100%;
    background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-secondary) 100%);
    color: white;
    border: none;
    padding: 18px 28px;
    border-radius: 20px;
    font-weight: 400;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
    margin-top: 28px;
    letter-spacing: 0.01em;
    border: 1px solid var(--green-accent);
}

.sf-apply-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(27, 59, 47, 0.3);
    background: linear-gradient(135deg, var(--green-secondary) 0%, var(--green-accent) 100%);
}

/* Input Section */
.sf-input-section {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 28px;
    padding: 40px;
    border: 1px solid var(--border-elegant);
    transition: all 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-subtle);
    margin-top: 32px;
}

.sf-input-label {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 300;
    color: var(--green-primary);
    margin-bottom: 20px;
    display: block;
    letter-spacing: -0.02em;
}

.sf-input-field {
    width: 100%;
    padding: 24px 28px;
    border: 1px solid var(--border-elegant);
    border-radius: 20px;
    font-size: 17px;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    background: var(--cream-primary);
    transition: all 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
    resize: vertical;
    min-height: 160px;
    line-height: 1.7;
    letter-spacing: -0.01em;
}

.sf-input-field:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 4px rgba(200, 168, 130, 0.12);
    background: rgba(255, 255, 255, 0.95);
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

.sf-opportunity-card {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
}

.sf-opportunity-card:nth-child(1) { animation-delay: 0.1s; }
.sf-opportunity-card:nth-child(2) { animation-delay: 0.2s; }
.sf-opportunity-card:nth-child(3) { animation-delay: 0.3s; }

/* User Profile Section */
.sf-user-profile {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sf-avatar {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-subtle);
    border: 2px solid var(--gold-light);
}

.sf-user-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sf-user-name {
    font-size: 16px;
    font-weight: 500;
    color: var(--green-primary);
    letter-spacing: -0.01em;
}

.sf-user-title {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 0.05em;
}

.sf-premium-badge {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-secondary) 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: var(--shadow-subtle);
    border: 1px solid var(--gold-secondary);
}

.sf-login-btn {
    background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-secondary) 100%);
    color: white;
    padding: 14px 32px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 400;
    font-size: 15px;
    letter-spacing: 0.01em;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    border: 1px solid var(--green-accent);
    display: inline-block;
}

.sf-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(27, 59, 47, 0.25);
    color: white;
    text-decoration: none;
}

/* Chat Messages Styling */
.sf-chat-messages {
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
    padding: 24px;
    background: var(--cream-primary);
    border-radius: 20px;
    margin-bottom: 28px;
    border: 1px solid var(--border-elegant);
}

.sf-message {
    margin-bottom: 20px;
    animation: fadeInUp 0.5s ease;
}

.sf-message p {
    background: white;
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid var(--border-elegant);
    line-height: 1.6;
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 300;
}

.sf-message-user p {
    background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-secondary) 100%);
    color: white;
    border: none;
    margin-left: 60px;
}

.sf-message-assistant p {
    background: white;
    margin-right: 60px;
}

/* Typing Indicator */
.sf-typing-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 16px 20px;
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border-elegant);
    width: fit-content;
    margin-bottom: 20px;
}

.sf-typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--text-tertiary);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.sf-typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.sf-typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Notification Styles */
.sf-notification {
    position: fixed;
    top: 40px;
    right: 40px;
    background: white;
    padding: 20px 28px;
    border-radius: 16px;
    box-shadow: var(--shadow-luxury);
    border: 1px solid var(--border-elegant);
    z-index: 10000;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    font-size: 15px;
    font-weight: 400;
    max-width: 400px;
}

.sf-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.sf-notification-success {
    border-left: 4px solid var(--green-accent);
    color: var(--green-primary);
}

.sf-notification-error {
    border-left: 4px solid #e74c3c;
    color: #c0392b;
}

/* Journey Step States */
.sf-progress-step.pending .sf-step-icon {
    background: var(--cream-accent);
    color: var(--text-tertiary);
    border: 1px solid var(--border-elegant);
}

.sf-progress-step.pending .sf-step-content h4 {
    color: var(--text-secondary);
}

.sf-progress-step.pending .sf-step-content p {
    color: var(--text-tertiary);
}

/* Opportunity Highlights */
.sf-opportunity-highlights {
    margin: 20px 0;
    padding-top: 20px;
    border-top: 1px solid var(--border-elegant);
}

.sf-highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.sf-highlight-icon {
    color: var(--green-accent);
    font-size: 16px;
    margin-top: 2px;
}

/* Empty State */
.sf-empty-state {
    text-align: center;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 28px;
    border: 1px solid var(--border-elegant);
}

/* Applied State */
.sf-opportunity-card.application-sent {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 240, 229, 0.95) 100%);
}

.sf-apply-button.applied {
    background: linear-gradient(135deg, var(--green-accent) 0%, var(--green-light) 100%);
    cursor: default;
}

.sf-apply-button.applied:hover {
    transform: none;
    box-shadow: none;
}

/* In View Animation */
.sf-opportunity-card.in-view {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
}

/* Show More Button */
.sf-show-more-wrapper {
    text-align: center;
    margin: 48px 0;
    padding-top: 32px;
    border-top: 1px solid var(--border-elegant);
}

.sf-show-more-button {
    background: linear-gradient(135deg, var(--cream-primary) 0%, var(--cream-secondary) 100%);
    color: var(--green-primary);
    border: 2px solid var(--gold-light);
    padding: 18px 48px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    letter-spacing: 0.02em;
}

.sf-show-more-button:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(200, 168, 130, 0.25);
}

/* Full-Screen Modal */
.sf-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(160deg, var(--cream-primary) 0%, var(--cream-secondary) 35%, var(--cream-accent) 70%, var(--cream-dark) 100%);
    z-index: 100000;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.sf-modal-overlay.active {
    display: block;
}

.sf-modal-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.sf-modal-close {
    position: fixed;
    top: 40px;
    right: 40px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--border-elegant);
    color: var(--green-primary);
    font-size: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100001;
    box-shadow: var(--shadow-elegant);
}

.sf-modal-close:hover {
    background: var(--green-primary);
    color: white;
    transform: rotate(90deg);
}

.sf-modal-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 32px;
    padding: 48px;
    margin-top: 40px;
    box-shadow: var(--shadow-deep);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-elegant);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sf-modal-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-elegant);
    margin-bottom: 32px;
}

.sf-modal-avatar {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
    font-weight: 500;
    box-shadow: var(--shadow-luxury);
    border: 3px solid var(--cream-accent);
}

.sf-modal-info h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 400;
    color: var(--green-primary);
    margin-bottom: 8px;
}

.sf-modal-info p {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 0.05em;
}

/* Modal Messages Area */
.sf-modal-messages {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
    background: var(--cream-primary);
    border-radius: 24px;
    margin-bottom: 32px;
    min-height: 400px;
}

.sf-modal-message {
    margin-bottom: 24px;
    animation: slideInUp 0.4s ease;
}

.sf-modal-message.senna {
    margin-right: 80px;
}

.sf-modal-message.user {
    margin-left: 80px;
    text-align: right;
}

.sf-modal-message-content {
    background: white;
    padding: 24px;
    border-radius: 20px;
    border: 1px solid var(--border-elegant);
    display: inline-block;
    max-width: 100%;
}

.sf-modal-message.user .sf-modal-message-content {
    background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-secondary) 100%);
    color: white;
    border: none;
}

/* Visual Cards for Engagement */
.sf-visual-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.sf-visual-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(250, 246, 237, 0.9) 100%);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid var(--border-elegant);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    text-align: center;
}

.sf-visual-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-luxury);
    border-color: var(--gold-light);
}

.sf-visual-card-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.sf-visual-card-title {
    font-weight: 500;
    color: var(--green-primary);
    margin-bottom: 8px;
}

.sf-visual-card-description {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Score Display */
.sf-score-display {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 100%);
    border-radius: 24px;
    padding: 32px;
    text-align: center;
    margin: 24px 0;
    color: white;
}

.sf-score-number {
    font-size: 64px;
    font-weight: 600;
    margin-bottom: 8px;
}

.sf-score-label {
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Action Plan */
.sf-action-plan {
    background: var(--cream-primary);
    border-radius: 20px;
    padding: 24px;
    margin: 24px 0;
}

.sf-action-plan h4 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: var(--green-primary);
    margin-bottom: 20px;
}

.sf-action-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
    padding: 16px;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-elegant);
}

.sf-action-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--green-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    flex-shrink: 0;
}

.sf-action-text {
    flex: 1;
    color: var(--text-primary);
    line-height: 1.6;
}

/* Modal Input Area */
.sf-modal-input-area {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--cream-primary);
    border-radius: 20px;
    border: 1px solid var(--border-elegant);
}

.sf-modal-input {
    flex: 1;
    padding: 20px;
    border: 1px solid var(--border-elegant);
    border-radius: 16px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    background: white;
    resize: vertical;
    min-height: 80px;
    max-height: 200px;
}

.sf-modal-input:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 4px rgba(200, 168, 130, 0.12);
}

.sf-modal-send {
    background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-secondary) 100%);
    color: white;
    border: none;
    padding: 20px 40px;
    border-radius: 16px;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    white-space: nowrap;
}

.sf-modal-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(27, 59, 47, 0.25);
}

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

/* Responsive */
@media (max-width: 1400px) {
    .sf-main-layout {
        grid-template-columns: 320px 1fr;
        gap: 32px;
    }
}

@media (max-width: 1200px) {
    .sf-main-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .sf-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    
    .sf-query-input-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .sf-query-submit {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .skill-farm-wrapper {
        padding: 20px;
    }
    
    .sf-header {
        padding: 24px;
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }
    
    .sf-user-profile {
        justify-content: center;
    }
    
    .sf-brand-text h1 {
        font-size: 32px;
    }
    
    .sf-sidebar {
        grid-template-columns: 1fr;
    }
    
    .sf-journey-progress {
        padding: 24px;
    }
    
    .sf-chat-container {
        padding: 32px 24px;
    }
    
    .sf-opportunity-card {
        padding: 28px 24px;
    }
}