/**
 * Recruiter Post Article Styles
 *
 * Additional styles for [sffc_recruiter_post_article] shortcode.
 * Extends gap-analyzer.css with recruiter-specific UI elements.
 *
 * @package SennaCareers
 * @since 1.0.0
 */

/* ==========================================================================
   Mobile-First Optimizations
   ========================================================================== */

/* Support for safe areas on modern mobile devices */
@supports (padding: max(0px)) {
    @media (max-width: 900px) {
        .inst-mobile-role-summary {
            padding-left: max(20px, env(safe-area-inset-left));
            padding-right: max(20px, env(safe-area-inset-right));
            padding-top: max(16px, env(safe-area-inset-top));
        }

        .inst-linkedin-layout.is-mobile-stack {
            padding-bottom: max(80px, calc(80px + env(safe-area-inset-bottom)));
        }

        .inst-mobile-panel-toggle.is-visible {
            min-height: max(72px, calc(72px + env(safe-area-inset-bottom)));
            padding-bottom: max(12px, calc(12px + env(safe-area-inset-bottom)));
        }

        .inst-outreach-floating-actions {
            bottom: max(88px, calc(88px + env(safe-area-inset-bottom)));
        }
    }
}

/* Smooth scrolling for mobile */
@media (max-width: 900px) {
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }

    .inst-linkedin-column {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Prevent text size adjustment on orientation change */
@media (max-width: 900px) {
    html {
        -webkit-text-size-adjust: 100%;
        -moz-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
}

/* ==========================================================================
   Sidebar Button Labels - Hidden by default (icon-only sidebar)
   ========================================================================== */

.inst-sidebar-btn-label {
    display: none;
}

/* ==========================================================================
   CV Step Tick Indicator
   ========================================================================== */

.inst-step-tick {
    display: none;
    width: 22px;
    height: 22px;
    background: #059669;
    border-radius: 50%;
    color: #fff;
    margin-left: auto;
    flex-shrink: 0;
    padding: 4px;
}

.inst-step-tick svg {
    width: 100%;
    height: 100%;
}

.inst-step-section.cv-ready .inst-step-tick {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: tickPop 0.3s ease;
}

.inst-step-section.cv-ready [data-cv-status] {
    display: none;
}

@keyframes tickPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ==========================================================================
   Sidebar Tooltips
   ========================================================================== */

[data-component="recruiter-post-analyzer"] .inst-sidebar-btn[data-tooltip] {
    position: relative;
}

[data-component="recruiter-post-analyzer"] .inst-sidebar-btn[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: #1a1a2e;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 1000;
    pointer-events: none;
}

[data-component="recruiter-post-analyzer"] .inst-sidebar-btn[data-tooltip]::before {
    content: '';
    position: absolute;
    left: calc(100% + 4px);
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-right-color: #1a1a2e;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 1000;
}

[data-component="recruiter-post-analyzer"] .inst-sidebar-btn:hover[data-tooltip]::after,
[data-component="recruiter-post-analyzer"] .inst-sidebar-btn:hover[data-tooltip]::before {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   Step Sections
   ========================================================================== */

.inst-step-section {
    margin-bottom: 20px;
}

.inst-step-section[data-step="1"] {
    /* CV section - collapsed by default */
}

.inst-step-section[data-step="2"] {
    /* JD section - open by default */
}

.inst-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--inst-brand, #0f5132);
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    margin-right: 10px;
    flex-shrink: 0;
}

.inst-step-instruction {
    font-size: 13px;
    color: var(--inst-gray-600, #4b5563);
    margin-bottom: 12px;
    padding: 10px 12px;
    background: var(--inst-gray-50, #f9fafb);
    border-radius: 6px;
    border-left: 3px solid var(--inst-brand, #0f5132);
}

/* ==========================================================================
   Job Meta Grid
   ========================================================================== */

.inst-job-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

@media (max-width: 640px) {
    .inst-job-meta-grid {
        grid-template-columns: 1fr;
    }
}

.inst-job-meta-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: var(--inst-gray-50, #f9fafb);
    border: 1px solid var(--inst-gray-200, #e5e7eb);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.inst-job-meta-card:hover {
    background: #fff;
    border-color: var(--inst-brand, #0f5132);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.inst-job-meta-card svg {
    width: 20px;
    height: 20px;
    color: var(--inst-brand, #0f5132);
    flex-shrink: 0;
    margin-top: 2px;
}

.inst-job-meta-card > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.inst-expert-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid rgba(13, 53, 62, 0.2);
    background: #ffffff;
    color: #0d353e;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.inst-expert-btn svg {
    width: 18px;
    height: 18px;
}

.inst-expert-btn:hover {
    background: rgba(13, 53, 62, 0.07);
    transform: translateY(-1px);
}

.inst-job-meta-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--inst-gray-500, #6b7280);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.inst-job-meta-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--inst-gray-900, #111827);
    line-height: 1.3;
}

/* ==========================================================================
   Key Requirements
   ========================================================================== */

.inst-key-requirements {
    margin-bottom: 20px;
    padding: 16px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #a7f3d0;
    border-radius: 10px;
}

.inst-key-requirements h4 {
    font-size: 14px;
    font-weight: 600;
    color: #065f46;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.inst-key-requirements h4::before {
    content: '';
    width: 4px;
    height: 16px;
    background: #059669;
    border-radius: 2px;
}

.inst-key-requirements ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.inst-key-requirements li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #047857;
    line-height: 1.5;
}

.inst-key-requirements li:last-child {
    margin-bottom: 0;
}

.inst-key-requirements li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
}

/* ==========================================================================
   Ideal Background
   ========================================================================== */

.inst-ideal-background {
    margin-bottom: 20px;
    padding: 16px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #93c5fd;
    border-radius: 10px;
}

.inst-ideal-background h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1e40af;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.inst-ideal-background h4::before {
    content: '';
    width: 4px;
    height: 16px;
    background: #3b82f6;
    border-radius: 2px;
}

.inst-ideal-background p {
    margin: 0;
    font-size: 13px;
    color: #1e3a8a;
    line-height: 1.6;
}

/* ==========================================================================
   Job Description Content
   ========================================================================== */

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

.inst-job-description h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--inst-gray-700, #374151);
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--inst-gray-200, #e5e7eb);
}

.inst-job-description-content {
    font-size: 14px;
    line-height: 1.7;
    color: var(--inst-gray-700, #374151);
}

.inst-job-description-content p {
    margin: 0 0 12px 0;
}

.inst-job-description-content p:last-child {
    margin-bottom: 0;
}

.inst-job-description-content ul,
.inst-job-description-content ol {
    margin: 0 0 12px 0;
    padding-left: 20px;
}

.inst-job-description-content li {
    margin-bottom: 6px;
}

/* ==========================================================================
   Recruiter Card
   ========================================================================== */

.inst-recruiter-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    border: 1px solid var(--inst-gray-200, #e5e7eb);
    border-radius: 12px;
    margin-bottom: 24px;
}

.inst-recruiter-avatar {
    width: 48px;
    height: 48px;
    background: var(--inst-brand, #0f5132);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    flex-shrink: 0;
    text-transform: uppercase;
}

.inst-recruiter-avatar--has-image {
    background: transparent;
    color: transparent;
    overflow: hidden;
}

.inst-recruiter-avatar--has-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.inst-recruiter-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.inst-recruiter-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--inst-gray-500, #6b7280);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.inst-recruiter-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--inst-gray-900, #111827);
}

.inst-recruiter-meta {
    font-size: 13px;
    color: var(--inst-gray-600, #4b5563);
}

.inst-recruiter-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0077b5;
    border-radius: 8px;
    color: #fff;
    transition: all 0.2s ease;
}

.inst-recruiter-link:hover {
    background: #005885;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
}

.inst-recruiter-link svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   CV Actions (Below Textarea)
   ========================================================================== */

.inst-cv-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.inst-cv-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: none;
    flex: 1;
    min-width: 140px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.inst-cv-action-btn:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.inst-cv-action-btn:active:before {
    width: 300px;
    height: 300px;
}

.inst-cv-action-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.inst-cv-action-btn--primary {
    background: linear-gradient(135deg, var(--inst-brand, #0f5132) 0%, #0a3d26 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(15, 81, 50, 0.25);
}

.inst-cv-action-btn--primary:hover {
    background: linear-gradient(135deg, #0a3d26 0%, #072a1a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 81, 50, 0.35);
}

.inst-cv-action-btn:not(.inst-cv-action-btn--primary) {
    background: #fff;
    color: #0077b5;
    border: 2px solid #0077b5;
}

.inst-cv-action-btn:not(.inst-cv-action-btn--primary):hover {
    background: #0077b5;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 119, 181, 0.3);
}

/* ==========================================================================
   Analyze CTA
   ========================================================================== */

.inst-analyze-cta {
    cursor: pointer;
    transition: all 0.25s ease;
    border: 2px dashed var(--inst-brand, #0f5132);
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    padding: 24px;
    border-radius: 16px;
    margin: 24px 0;
}

.inst-analyze-cta:hover {
    border-style: solid;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(15, 81, 50, 0.18);
}

.inst-analyze-cta .inst-exec-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.inst-analyze-cta .inst-exec-title {
    color: var(--inst-brand, #0f5132);
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.inst-analyze-cta .inst-exec-methodology {
    background: var(--inst-brand, #0f5132);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.inst-analyze-cta .inst-exec-thesis {
    color: #047857;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   Inline Analyze CTA (near step instruction)
   ========================================================================== */

.inst-analyze-cta-inline {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 2px solid #10b981;
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.inst-analyze-cta-inline:hover {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-color: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.inst-analyze-cta-inline:active {
    transform: translateY(0);
}

.inst-analyze-cta-inline .inst-analyze-cta-text {
    color: #065f46;
    font-size: 15px;
    font-weight: 600;
}

.inst-analyze-cta-inline .inst-exec-methodology {
    background: #059669;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(5, 150, 105, 0);
    }
}

/* ==========================================================================
   Action Buttons
   ========================================================================== */

.inst-action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.inst-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.inst-action-btn svg {
    width: 18px;
    height: 18px;
}

.inst-action-btn--primary {
    background: var(--inst-brand, #0f5132);
    color: #fff;
}

.inst-action-btn--primary:hover {
    background: #0a3d26;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 81, 50, 0.25);
}

.inst-action-btn:not(.inst-action-btn--primary) {
    background: var(--inst-gray-100, #f3f4f6);
    color: var(--inst-gray-700, #374151);
    border: 1px solid var(--inst-gray-300, #d1d5db);
}

.inst-action-btn:not(.inst-action-btn--primary):hover {
    background: var(--inst-gray-200, #e5e7eb);
    border-color: var(--inst-gray-400, #9ca3af);
}

/* ==========================================================================
   Article Badges
   ========================================================================== */

.inst-article-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
}

.inst-article-badge--urgent {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.inst-article-badge--featured {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}

/* ==========================================================================
   Modal Styles
   ========================================================================== */

.inst-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.inst-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.inst-modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 440px;
    width: 100%;
    overflow: hidden;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.inst-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--inst-gray-200, #e5e7eb);
}

.inst-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--inst-gray-900, #111827);
}

.inst-modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: var(--inst-gray-500, #6b7280);
    transition: all 0.2s ease;
}

.inst-modal-close:hover {
    background: var(--inst-gray-100, #f3f4f6);
    color: var(--inst-gray-700, #374151);
}

.inst-modal-close svg {
    width: 18px;
    height: 18px;
}

.inst-modal-body {
    padding: 24px;
}

.inst-modal-body p {
    margin: 0 0 16px 0;
    font-size: 14px;
    color: var(--inst-gray-600, #4b5563);
}

.inst-modal-role {
    padding: 16px;
    background: var(--inst-gray-50, #f9fafb);
    border-radius: 10px;
    margin-bottom: 16px;
}

.inst-modal-role strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--inst-gray-900, #111827);
    margin-bottom: 4px;
}

.inst-modal-role span {
    font-size: 14px;
    color: var(--inst-gray-600, #4b5563);
}

.inst-modal-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: #eff6ff;
    border-radius: 8px;
    font-size: 13px;
    color: #1e40af;
}

.inst-modal-note svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #3b82f6;
}

.inst-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    background: var(--inst-gray-50, #f9fafb);
    border-top: 1px solid var(--inst-gray-200, #e5e7eb);
}

.inst-modal-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.inst-modal-btn svg {
    width: 16px;
    height: 16px;
}

.inst-modal-btn--secondary {
    background: #fff;
    color: var(--inst-gray-700, #374151);
    border: 1px solid var(--inst-gray-300, #d1d5db);
}

.inst-modal-btn--secondary:hover {
    background: var(--inst-gray-100, #f3f4f6);
}

.inst-modal-btn--primary {
    background: var(--inst-brand, #0f5132);
    color: #fff;
}

.inst-modal-btn--primary:hover {
    background: #0a3d26;
}

/* Modal open body state */
body.modal-open,
body.inst-modal-open {
    overflow: hidden;
}

/* ==========================================================================
   Sidebar Button Variants
   ========================================================================== */

.inst-sidebar-btn--primary {
    background: var(--inst-brand, #0f5132) !important;
    color: #fff !important;
}

.inst-sidebar-btn--primary:hover {
    background: #0a3d26 !important;
}

.inst-sidebar-divider {
    width: 70%;
    height: 1px;
    background: var(--inst-gray-200, #e5e7eb);
    margin: 8px auto;
}

/* ==========================================================================
   Toast Notification Override
   ========================================================================== */

.inst-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    background: #0f172a;
    color: #fff;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10001;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 768px) {
    /* CV Action Buttons - Stack on mobile with enhanced touch */
    .inst-cv-actions {
        flex-direction: column;
        gap: 12px;
    }

    .inst-cv-action-btn {
        width: 100%;
        padding: 16px 20px;
        font-size: 16px;
        min-height: 52px;
        border-radius: 14px;
        font-weight: 600;
        letter-spacing: 0.01em;
    }

    .inst-cv-action-btn svg {
        width: 22px;
        height: 22px;
    }

    .inst-cv-action-btn:active {
        transform: scale(0.97);
    }

    /* Analyze CTA - Mobile optimized */
    .inst-analyze-cta {
        padding: 20px 18px;
        margin: 16px 0;
        border-radius: 16px;
        box-shadow: 0 4px 20px rgba(13, 53, 62, 0.1);
    }

    .inst-analyze-cta .inst-exec-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .inst-analyze-cta .inst-exec-title {
        font-size: 18px;
    }

    .inst-analyze-cta .inst-exec-methodology {
        align-self: flex-start;
    }

    .inst-analyze-cta .inst-exec-thesis {
        font-size: 13px;
    }

    /* Action Buttons */
    .inst-action-buttons {
        flex-direction: column;
    }

    .inst-action-btn {
        justify-content: center;
        width: 100%;
    }

    /* Recruiter Card */
    .inst-recruiter-card {
        flex-direction: column;
        text-align: center;
    }

    .inst-recruiter-link {
        margin-top: 12px;
    }

    /* Modal */
    .inst-modal-content {
        margin: 10px;
        max-height: calc(100vh - 40px);
        overflow-y: auto;
    }

    .inst-modal-footer {
        flex-direction: column;
    }

    .inst-modal-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Extra small screens - Enhanced touch targets */
@media (max-width: 480px) {
    .inst-cv-action-btn {
        padding: 18px 16px;
        font-size: 15px;
        min-height: 56px;
        border-radius: 12px;
    }

    .inst-cv-action-btn svg {
        width: 20px;
        height: 20px;
    }

    .inst-analyze-cta {
        padding: 18px 16px;
        margin: 12px 0;
    }

    .inst-analyze-cta .inst-exec-title {
        font-size: 17px;
        font-weight: 600;
    }

    .inst-analyze-cta .inst-exec-thesis {
        font-size: 12px;
    }
}

/* ==========================================================================
   Premium Lock UI - Freemium Model
   FREE: Report view (scores, gaps, what's wrong)
   PREMIUM: Toolkit view (CV rewrites, cover letter, interview prep, keywords)
   ========================================================================== */

/* Lock icon on toolkit button for free users */
.inst-view-toggle-btn.is-locked {
    position: relative;
}

.inst-view-toggle-btn.is-locked .inst-lock-icon {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(217, 119, 6, 0.3);
}

.inst-view-toggle-btn.is-locked .inst-lock-icon svg {
    width: 10px;
    height: 10px;
    color: #fff;
}

/* ==========================================================================
   Premium Preview Mode - Shows sample content with upgrade banner
   ========================================================================== */

/* Preview mode container */
.inst-toolkit-view.is-preview-mode {
    position: relative;
    padding-bottom: 100px; /* Space for floating banner */
}

/* Floating upgrade banner at bottom - Sophisticated Light Blue Design */
.inst-premium-banner {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-top: 1px solid #bae6fd;
    padding: 16px 20px;
    z-index: 100;
    margin-top: 24px;
    border-radius: 0 0 12px 12px;
    backdrop-filter: blur(8px);
}

.inst-premium-banner-content {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 100%;
}

.inst-premium-banner-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
}

.inst-premium-banner-icon svg {
    width: 22px;
    height: 22px;
    color: #fff;
}

.inst-premium-banner-text {
    flex: 1;
    min-width: 0;
}

.inst-premium-banner-text strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #0c4a6e;
    margin-bottom: 2px;
    letter-spacing: -0.01em;
}

.inst-premium-banner-text span {
    display: block;
    font-size: 12px;
    color: #0369a1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inst-premium-banner-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    border: none;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
    white-space: nowrap;
    flex-shrink: 0;
}

.inst-premium-banner-cta:hover {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.35);
    color: #fff;
}

/* Hide premium banner for premium users */
.inst-terminal.is-premium .inst-premium-banner {
    display: none;
}

.inst-terminal.is-premium .inst-toolkit-view.is-preview-mode {
    padding-bottom: 0;
}

/* ==========================================================================
   Preview Content Styles - Sample content for non-premium users
   ========================================================================== */

/* CV Preview Sample */
.inst-cv-preview-sample {
    background: #fff;
    border: 1px solid var(--inst-gray-200, #e5e7eb);
    border-radius: 8px;
    padding: 20px;
    font-size: 13px;
    line-height: 1.6;
}

.inst-cv-preview-header {
    text-align: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--inst-gray-200, #e5e7eb);
}

.inst-cv-preview-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--inst-gray-900, #111827);
}

.inst-cv-preview-title {
    font-size: 14px;
    color: var(--inst-gray-600, #4b5563);
    margin-top: 4px;
}

.inst-cv-preview-section {
    margin-bottom: 16px;
}

.inst-cv-preview-section:last-child {
    margin-bottom: 0;
}

.inst-cv-preview-section-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--inst-gray-500, #6b7280);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.inst-cv-preview-text {
    color: var(--inst-gray-700, #374151);
}

.inst-cv-preview-highlight {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 500;
    color: #166534;
}

.inst-cv-preview-bullet {
    padding-left: 16px;
    position: relative;
    margin-bottom: 6px;
    color: var(--inst-gray-700, #374151);
}

.inst-cv-preview-bullet::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #059669;
    font-weight: bold;
}

/* Toolkit Improvement Cards */
.inst-toolkit-improvement {
    background: #fff;
    border: 1px solid var(--inst-gray-200, #e5e7eb);
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 12px;
}

.inst-toolkit-improvement:last-child {
    margin-bottom: 0;
}

.inst-toolkit-improvement-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.inst-toolkit-improvement-section {
    font-size: 13px;
    font-weight: 600;
    color: var(--inst-gray-900, #111827);
}

.inst-toolkit-improvement-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.inst-toolkit-improvement-badge--high {
    background: #fef2f2;
    color: #dc2626;
}

.inst-toolkit-improvement-badge--medium {
    background: #fef3c7;
    color: #d97706;
}

.inst-toolkit-improvement-badge--low {
    background: #dcfce7;
    color: #16a34a;
}

.inst-toolkit-improvement-text {
    font-size: 13px;
    color: var(--inst-gray-600, #4b5563);
    margin: 0;
    line-height: 1.5;
}

/* Cover Letter Sample */
.inst-cover-letter-sample {
    background: #fff;
    border: 1px solid var(--inst-gray-200, #e5e7eb);
    border-radius: 8px;
    padding: 20px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--inst-gray-700, #374151);
}

.inst-cover-letter-sample p {
    margin: 0 0 12px 0;
}

.inst-cover-letter-sample p:last-child {
    margin-bottom: 0;
}

.inst-cover-preview-highlight {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 500;
    color: #1e40af;
}

.inst-cover-letter-fade {
    opacity: 0.5;
    position: relative;
}

.inst-cover-letter-fade::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(255,255,255,0.9) 100%);
}

/* Cover Points */
.inst-cover-point {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--inst-gray-100, #f3f4f6);
}

.inst-cover-point:last-child {
    border-bottom: none;
}

.inst-cover-point svg {
    width: 16px;
    height: 16px;
    color: #059669;
    flex-shrink: 0;
    margin-top: 2px;
}

.inst-cover-point span {
    font-size: 13px;
    color: var(--inst-gray-700, #374151);
    line-height: 1.5;
}

/* Keyword Chips */
.inst-keyword-chip {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    margin: 4px;
}

.inst-keyword-chip--missing {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.inst-keyword-chip--matched {
    background: #dcfce7;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* Interview Questions */
.inst-interview-question {
    background: #fff;
    border: 1px solid var(--inst-gray-200, #e5e7eb);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
}

.inst-interview-question:last-child {
    margin-bottom: 0;
}

.inst-interview-question-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.inst-interview-question-number {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.inst-interview-question-type {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 10px;
    background: #f3f4f6;
    color: var(--inst-gray-600, #4b5563);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.inst-interview-question-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--inst-gray-900, #111827);
    margin: 0 0 10px 0;
    line-height: 1.5;
}

.inst-interview-question-tips {
    font-size: 12px;
    color: var(--inst-gray-600, #4b5563);
    background: #f9fafb;
    padding: 10px 12px;
    border-radius: 6px;
    line-height: 1.5;
}

.inst-interview-question-tips strong {
    color: var(--inst-gray-700, #374151);
}

.inst-interview-question-tips--fade {
    opacity: 0.6;
    position: relative;
}

/* Hide premium banner for premium users */
.inst-terminal.is-premium .inst-premium-banner {
    display: none;
}

.inst-terminal.is-premium .inst-view-toggle-btn.is-locked .inst-lock-icon {
    display: none;
}

/* Free user - show lock badge on export buttons */
.inst-terminal.is-free [data-action="export"]::after,
.inst-terminal.is-free [data-action="download-cv-word"]::after,
.inst-terminal.is-free [data-action="download-cover-word"]::after {
    content: '';
    position: absolute;
    top: -4px;
    right: -4px;
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
    background-size: 8px 8px;
    background-position: center;
    background-repeat: no-repeat;
}

.inst-terminal.is-free .inst-pdf-download-btn,
.inst-terminal.is-free [data-action="download-cv-word"],
.inst-terminal.is-free [data-action="download-cover-word"] {
    position: relative;
}

/* Toolkit view needs relative positioning for overlay */
.inst-toolkit-view {
    position: relative;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .inst-modal,
    .inst-action-buttons,
    .inst-sidebar-btn--primary,
    .inst-analyze-cta,
    .inst-premium-banner {
        display: none !important;
    }
}

/* ==========================================================================
   EXPERT OUTREACH BUTTON STYLING
   Green gradient styling for Senna Recruiter Outreach buttons
   ========================================================================== */

/* Expert Button - Inline CV Actions */
.inst-cv-action-btn--expert {
    background: linear-gradient(135deg, #0f5132 0%, #065f46 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(15, 81, 50, 0.25);
}

.inst-cv-action-btn--expert:hover {
    background: linear-gradient(135deg, #065f46 0%, #064e3b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 81, 50, 0.35);
    color: #fff;
}

/* Expert Button - Main Action Buttons */
.inst-action-btn--expert {
    background: linear-gradient(135deg, #0f5132 0%, #065f46 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(15, 81, 50, 0.25);
}

.inst-action-btn--expert:hover {
    background: linear-gradient(135deg, #065f46 0%, #064e3b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 81, 50, 0.35);
    color: #fff;
}

/* Expert Button - Modal Footer */
.inst-modal-btn--expert {
    background: linear-gradient(135deg, #0f5132 0%, #065f46 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(15, 81, 50, 0.25);
}

.inst-modal-btn--expert:hover {
    background: linear-gradient(135deg, #065f46 0%, #064e3b 100%);
    box-shadow: 0 6px 20px rgba(15, 81, 50, 0.35);
    color: #fff;
}

/* ==========================================================================
   EXPERT OUTREACH MODAL STYLING
   Comprehensive modal design for Expert Outreach feature
   ========================================================================== */

.inst-modal--expert .inst-modal-content--expert {
    max-width: 520px;
    max-height: 90vh;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Expert Modal Body Scrollable */
.inst-modal--expert .inst-expert-modal-body {
    overflow-y: auto;
    max-height: calc(90vh - 140px);
    flex: 1;
}

/* Expert Modal Header */
.inst-expert-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: linear-gradient(135deg, #0f5132 0%, #065f46 100%);
    flex-shrink: 0;
}

.inst-expert-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.inst-expert-badge svg {
    width: 16px;
    height: 16px;
}

.inst-expert-modal-header .inst-modal-close {
    color: rgba(255, 255, 255, 0.8);
}

.inst-expert-modal-header .inst-modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* Expert Modal Body */
.inst-expert-modal-body {
    padding: 24px;
}

.inst-expert-title-section {
    text-align: center;
    margin-bottom: 20px;
}

.inst-expert-title-section h3 {
    margin: 0 0 6px 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--inst-gray-900, #111827);
}

.inst-expert-title-section p {
    margin: 0;
    font-size: 14px;
    color: var(--inst-gray-600, #4b5563);
}

/* Role Card */
.inst-expert-role-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #a7f3d0;
    border-radius: 12px;
    margin-bottom: 16px;
}

.inst-expert-role-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f5132;
    border-radius: 10px;
    flex-shrink: 0;
}

.inst-expert-role-icon svg {
    width: 22px;
    height: 22px;
    color: #fff;
}

.inst-expert-role-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.inst-expert-role-info strong {
    font-size: 15px;
    font-weight: 600;
    color: var(--inst-gray-900, #111827);
    line-height: 1.3;
}

.inst-expert-role-info span {
    font-size: 13px;
    color: var(--inst-gray-600, #4b5563);
}

/* Recruiter Card */
.inst-expert-recruiter-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--inst-gray-50, #f9fafb);
    border: 1px solid var(--inst-gray-200, #e5e7eb);
    border-radius: 10px;
    margin-bottom: 20px;
}

.inst-expert-recruiter-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #0f5132 0%, #065f46 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    flex-shrink: 0;
    text-transform: uppercase;
}

.inst-expert-recruiter-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.inst-expert-recruiter-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--inst-gray-500, #6b7280);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.inst-expert-recruiter-info strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--inst-gray-900, #111827);
}

.inst-expert-recruiter-info > span {
    font-size: 12px;
    color: var(--inst-gray-600, #4b5563);
}

/* Form Styles */
.inst-expert-form {
    margin-bottom: 20px;
}

.inst-expert-form-group {
    margin-bottom: 16px;
}

.inst-expert-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--inst-gray-700, #374151);
    margin-bottom: 6px;
}

.inst-expert-optional {
    font-weight: 400;
    color: var(--inst-gray-500, #6b7280);
}

.inst-expert-select {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    color: var(--inst-gray-900, #111827);
    background: #fff;
    border: 1px solid var(--inst-gray-300, #d1d5db);
    border-radius: 8px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.inst-expert-select:focus {
    outline: none;
    border-color: #0f5132;
    box-shadow: 0 0 0 3px rgba(15, 81, 50, 0.1);
}

.inst-expert-textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    color: var(--inst-gray-900, #111827);
    background: #fff;
    border: 1px solid var(--inst-gray-300, #d1d5db);
    border-radius: 8px;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.inst-expert-textarea:focus {
    outline: none;
    border-color: #0f5132;
    box-shadow: 0 0 0 3px rgba(15, 81, 50, 0.1);
}

.inst-expert-textarea::placeholder {
    color: var(--inst-gray-400, #9ca3af);
}

/* Toggle Switch */
.inst-expert-toggle-group {
    padding: 14px;
    background: var(--inst-gray-50, #f9fafb);
    border-radius: 10px;
}

.inst-expert-toggle-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.inst-expert-toggle-label input {
    display: none;
}

.inst-expert-toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    background: var(--inst-gray-300, #d1d5db);
    border-radius: 12px;
    flex-shrink: 0;
    transition: background-color 0.2s;
}

.inst-expert-toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s;
}

.inst-expert-toggle-label input:checked + .inst-expert-toggle-switch {
    background: #0f5132;
}

.inst-expert-toggle-label input:checked + .inst-expert-toggle-switch::after {
    transform: translateX(20px);
}

.inst-expert-toggle-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.inst-expert-toggle-text strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--inst-gray-900, #111827);
}

.inst-expert-toggle-text span {
    font-size: 12px;
    color: var(--inst-gray-600, #4b5563);
}

/* Secondary Button Styles */
.inst-cv-action-btn--secondary {
    background: #fff;
    color: var(--inst-gray-700, #374151);
    border: 1px solid var(--inst-gray-300, #d1d5db);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.inst-cv-action-btn--secondary:hover {
    background: var(--inst-gray-50, #f9fafb);
    border-color: var(--inst-gray-400, #9ca3af);
    color: var(--inst-gray-900, #111827);
}

.inst-action-btn--secondary {
    background: #fff;
    color: var(--inst-gray-700, #374151);
    border: 1px solid var(--inst-gray-300, #d1d5db);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.inst-action-btn--secondary:hover {
    background: var(--inst-gray-50, #f9fafb);
    border-color: var(--inst-gray-400, #9ca3af);
    color: var(--inst-gray-900, #111827);
}

/* Quantity Selector */
.inst-expert-quantity-selector {
    display: flex;
    align-items: center;
    gap: 0;
    background: #fff;
    border: 1px solid var(--inst-gray-300, #d1d5db);
    border-radius: 10px;
    overflow: hidden;
    width: fit-content;
}

.inst-expert-qty-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--inst-gray-50, #f9fafb);
    border: none;
    font-size: 20px;
    font-weight: 600;
    color: var(--inst-gray-600, #4b5563);
    cursor: pointer;
    transition: all 0.15s;
}

.inst-expert-qty-btn:hover {
    background: var(--inst-gray-100, #f3f4f6);
    color: #0f5132;
}

.inst-expert-qty-btn:active {
    background: var(--inst-gray-200, #e5e7eb);
}

.inst-expert-qty-input {
    width: 60px;
    height: 44px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: #0f5132;
    background: #fff;
    border: none;
    border-left: 1px solid var(--inst-gray-200, #e5e7eb);
    border-right: 1px solid var(--inst-gray-200, #e5e7eb);
}

.inst-expert-qty-input:focus {
    outline: none;
}

.inst-expert-qty-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    font-size: 13px;
}

.inst-expert-qty-price {
    color: #0f5132;
    font-weight: 600;
}

.inst-expert-qty-remaining {
    color: var(--inst-gray-500, #6b7280);
}

.inst-expert-qty-remaining.low {
    color: #dc2626;
}

/* Similar Toggle Additional Styling */
.inst-expert-similar-toggle {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px solid #a7f3d0;
}

/* Recruiter Type Chips */
.inst-expert-recruiter-types {
    padding: 16px;
    background: var(--inst-gray-50, #f9fafb);
    border-radius: 10px;
    margin-top: -8px;
}

.inst-expert-form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--inst-gray-600, #4b5563);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.inst-expert-type-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.inst-expert-type-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid var(--inst-gray-200, #e5e7eb);
    border-radius: 20px;
    font-size: 13px;
    color: var(--inst-gray-600, #4b5563);
    cursor: pointer;
    transition: all 0.15s;
}

.inst-expert-type-chip:hover {
    border-color: #0f5132;
    background: #f0fdf4;
}

.inst-expert-type-chip input {
    display: none;
}

.inst-expert-type-chip:has(input:checked) {
    background: #0f5132;
    border-color: #0f5132;
    color: #fff;
}

.inst-expert-type-chip:has(input:checked):hover {
    background: #0d4429;
}

/* Benefits Section */
.inst-expert-benefits {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #a7f3d0;
    border-radius: 12px;
}

.inst-expert-benefit {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.inst-expert-benefit-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #059669;
    border-radius: 8px;
    flex-shrink: 0;
}

.inst-expert-benefit-icon svg {
    width: 16px;
    height: 16px;
    color: #fff;
}

.inst-expert-benefit > div {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.inst-expert-benefit strong {
    font-size: 13px;
    font-weight: 600;
    color: #065f46;
}

.inst-expert-benefit span {
    font-size: 12px;
    color: #047857;
}

/* Login Notice */
.inst-expert-login-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 10px;
    margin-top: 16px;
}

.inst-expert-login-notice > svg {
    width: 24px;
    height: 24px;
    color: #d97706;
    flex-shrink: 0;
}

.inst-expert-login-notice > div {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.inst-expert-login-notice strong {
    font-size: 13px;
    font-weight: 600;
    color: #92400e;
}

.inst-expert-login-notice span {
    font-size: 12px;
    color: #b45309;
}

/* Expert Modal Footer */
.inst-expert-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    background: var(--inst-gray-50, #f9fafb);
    border-top: 1px solid var(--inst-gray-200, #e5e7eb);
}

/* Success State */
.inst-expert-success {
    position: absolute;
    inset: 0;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    text-align: center;
    z-index: 10;
}

.inst-expert-success-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    animation: successPop 0.5s ease;
}

.inst-expert-success-icon svg {
    width: 36px;
    height: 36px;
    color: #059669;
}

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

.inst-expert-success h3 {
    margin: 0 0 10px 0;
    font-size: 22px;
    font-weight: 700;
    color: #065f46;
}

.inst-expert-success > p {
    margin: 0 0 24px 0;
    font-size: 14px;
    color: var(--inst-gray-600, #4b5563);
    line-height: 1.5;
    max-width: 320px;
}

.inst-expert-success-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
    width: 100%;
    max-width: 280px;
}

.inst-expert-success-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--inst-gray-50, #f9fafb);
    border-radius: 8px;
    font-size: 13px;
    color: var(--inst-gray-700, #374151);
}

.inst-expert-success-item svg {
    width: 18px;
    height: 18px;
    color: #0f5132;
    flex-shrink: 0;
}

.inst-expert-success-btn {
    min-width: 160px;
}

/* Loading State */
.inst-expert-loading {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    z-index: 10;
}

.inst-expert-loading-spinner {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
}

.inst-expert-loading-spinner svg {
    width: 100%;
    height: 100%;
    color: #0f5132;
}

.inst-spinner-path {
    animation: spin 1s linear infinite;
    transform-origin: center;
}

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

.inst-expert-loading p {
    margin: 0;
    font-size: 14px;
    color: var(--inst-gray-600, #4b5563);
}

/* ==========================================================================
   EXPERT MODAL - CV UPLOAD STYLES
   ========================================================================== */

.inst-expert-cv-upload {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--inst-gray-200, #e5e7eb);
}

.inst-expert-cv-upload .inst-expert-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--inst-gray-700, #374151);
    margin-bottom: 10px;
}

.inst-expert-cv-dropzone {
    border: 2px dashed var(--inst-gray-300, #d1d5db);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--inst-gray-50, #f9fafb);
}

.inst-expert-cv-dropzone:hover {
    border-color: #0f5132;
    background: #ecfdf5;
}

.inst-expert-cv-dropzone.drag-over {
    border-color: #0f5132;
    background: #d1fae5;
    border-style: solid;
}

.inst-expert-cv-dropzone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.inst-expert-cv-dropzone-content svg {
    width: 36px;
    height: 36px;
    color: var(--inst-gray-400, #9ca3af);
    transition: color 0.2s;
}

.inst-expert-cv-dropzone:hover .inst-expert-cv-dropzone-content svg {
    color: #0f5132;
}

.inst-expert-cv-dropzone-text {
    font-size: 14px;
    color: var(--inst-gray-600, #4b5563);
}

.inst-expert-cv-dropzone-text strong {
    color: #0f5132;
}

.inst-expert-cv-dropzone-hint {
    font-size: 12px;
    color: var(--inst-gray-500, #6b7280);
}

/* CV Preview */
.inst-expert-cv-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 10px;
}

.inst-expert-cv-file-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f5132;
    border-radius: 8px;
    flex-shrink: 0;
}

.inst-expert-cv-file-icon svg {
    width: 20px;
    height: 20px;
    color: #fff;
}

.inst-expert-cv-file-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.inst-expert-cv-file-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--inst-gray-900, #111827);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inst-expert-cv-file-size {
    font-size: 12px;
    color: var(--inst-gray-500, #6b7280);
}

.inst-expert-cv-remove {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: var(--inst-gray-500, #6b7280);
    transition: all 0.15s;
}

.inst-expert-cv-remove:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.inst-expert-cv-remove svg {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   EXPERT OUTREACH MODAL - RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    .inst-modal--expert .inst-modal-content--expert {
        margin: 10px;
        max-height: calc(100vh - 20px);
        border-radius: 16px;
    }

    .inst-expert-modal-body {
        padding: 20px 16px;
    }

    .inst-expert-title-section h3 {
        font-size: 20px;
    }

    .inst-expert-benefits {
        gap: 10px;
        padding: 14px;
    }

    .inst-expert-modal-footer {
        flex-direction: column;
        padding: 14px 16px;
    }

    .inst-expert-modal-footer .inst-modal-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .inst-modal--expert .inst-modal-content--expert {
        margin: 0;
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
    }

    .inst-expert-modal-header {
        padding: 14px 16px;
    }

    .inst-expert-role-card {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .inst-expert-role-icon {
        margin: 0 auto;
    }

    .inst-expert-recruiter-card {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .inst-expert-benefit {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .inst-expert-benefit-icon {
        margin: 0 auto;
    }

    .inst-expert-success {
        padding: 30px 20px;
    }

    .inst-expert-success h3 {
        font-size: 20px;
    }
}

/* ==========================================================================
   EXPRESS INTEREST FLOW - v2.0.0
   New welcome page, unified tabs, and streamlined Express Interest form.
   ========================================================================== */

/* --------------------------------------------------------------------------
   COLOR SCHEME VARIABLES
   Using user-specified colors (#0D353E, #fbf7f0)
   -------------------------------------------------------------------------- */
.inst-express-interest-flow {
    --senna-dark: #0D353E;
    --senna-cream: #fbf7f0;
    --senna-accent: #d4af37;
    --senna-accent-dark: #b8963d;
    --senna-green-gradient-start: #0D353E;
    --senna-green-gradient-mid: #1a5c6a;
    --senna-green-gradient-end: #2d8a8a;
    --senna-text-muted: #6b8a8f;
    --senna-border: rgba(13, 53, 62, 0.1);
}

/* ==========================================================================
   PREMIUM PRELOADER
   Elegant loading screen during CV analysis
   ========================================================================== */

.inst-premium-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--senna-cream);
    z-index: 9999999;
    display: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    opacity: 1;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.inst-premium-preloader.is-active {
    display: flex;
}

/* Subtle radial gradient overlay */
.inst-premium-preloader::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(255, 255, 255, 0.8) 0%,
        transparent 70%
    );
    pointer-events: none;
}

/* Grain texture for premium feel */
.inst-premium-preloader .preloader-grain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    z-index: 1;
    pointer-events: none;
}

.inst-premium-preloader .preloader-grain::before {
    content: "";
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' /%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    animation: preloader-grain 8s steps(10) infinite;
}

/* Preloader content */
.inst-premium-preloader .preloader-content {
    position: relative;
    text-align: center;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

/* Brand Mark - Large S with dot */
.inst-premium-preloader .preloader-brand-mark {
    position: relative;
    width: 120px;
    height: 140px;
    margin: 0 auto;
    animation: preloader-brand-fade-in 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

.inst-premium-preloader .brand-letter-s {
    font-family: "Playfair Display", serif;
    font-size: 120px;
    font-weight: 700;
    color: var(--senna-dark);
    line-height: 1;
    letter-spacing: -5px;
    position: relative;
    display: inline-block;
    animation: preloader-s-reveal 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.inst-premium-preloader .brand-dot {
    position: absolute;
    top: 5px;
    right: -20px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--senna-dark) 0%, var(--senna-green-gradient-mid) 50%, var(--senna-green-gradient-end) 100%);
    border-radius: 50%;
    animation: preloader-dot-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.8s forwards;
    box-shadow: 0 6px 20px rgba(13, 53, 62, 0.3);
}

/* Brand name */
.inst-premium-preloader .preloader-brand-name {
    animation: preloader-text-fade-up 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
}

.inst-premium-preloader .preloader-brand-text {
    font-family: "Playfair Display", serif;
    font-size: 48px;
    font-weight: 600;
    color: var(--senna-dark);
    letter-spacing: 8px;
    text-transform: uppercase;
    margin: 0;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
}

/* Tagline */
.inst-premium-preloader .preloader-tagline {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--senna-text-muted);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: -20px;
    animation: preloader-text-fade-up 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.9s forwards;
}

/* Premium loader bar */
.inst-premium-preloader .premium-loader {
    margin: 40px auto 0;
    position: relative;
    width: 260px;
    height: 6px;
}

.inst-premium-preloader .loader-track {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.inst-premium-preloader .loader-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #c7ffe6 0%, #0d353e 100%);
    border-radius: inherit;
    transition: width 0.3s ease;
}

.inst-premium-preloader .preloader-percentage {
    margin-top: 14px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #ffffff;
}

.inst-premium-preloader .loader-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%
    );
    animation: preloader-shimmer-pass 2.5s ease-in-out 0.5s infinite;
}

/* Analysis steps */
.inst-premium-preloader .preloader-analysis-steps {
    margin: 36px auto 0;
    width: 320px;
    max-width: 100%;
    text-align: left;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 18px;
    padding: 18px 22px;
    border: 1px solid rgba(13, 53, 62, 0.08);
    box-shadow: 0 10px 30px rgba(7, 31, 36, 0.08);
}

.inst-premium-preloader .preloader-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 6px;
    font-size: 14px;
    color: rgba(7, 31, 36, 0.6);
    opacity: 0.85;
    border: none;
    background: transparent;
    justify-content: flex-start;
    min-width: 0;
    border-left: 3px solid transparent;
}

.inst-premium-preloader .preloader-step.is-active {
    color: #0d353e;
    opacity: 1;
    border-left-color: #0d353e;
    background: rgba(13, 53, 62, 0.06);
    border-radius: 10px;
}

.inst-premium-preloader .preloader-step.is-complete {
    color: #0e7d58;
    opacity: 1;
    border-left-color: #0e7d58;
}

.inst-premium-preloader .preloader-step svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.inst-premium-preloader .preloader-step-check {
    display: none;
}

.inst-premium-preloader .preloader-step.is-complete .preloader-step-check {
    display: block;
}

.inst-premium-preloader .preloader-step.is-complete .preloader-step-icon {
    display: none;
}

/* Fade out state */
.inst-premium-preloader.fade-out {
    opacity: 0;
}

.inst-premium-preloader.fade-out .preloader-content {
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Preloader animations */
@keyframes preloader-grain {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -10%); }
    20% { transform: translate(-15%, 5%); }
    30% { transform: translate(7%, -25%); }
    40% { transform: translate(-5%, 25%); }
    50% { transform: translate(-15%, 10%); }
    60% { transform: translate(15%, 0%); }
    70% { transform: translate(0%, 15%); }
    80% { transform: translate(3%, 35%); }
    90% { transform: translate(-10%, 10%); }
}

@keyframes preloader-brand-fade-in {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes preloader-s-reveal {
    0% { opacity: 0; transform: scale(0.7) rotate(-5deg); }
    50% { transform: scale(1.05) rotate(2deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes preloader-dot-pop {
    0% { opacity: 0; transform: scale(0) rotate(-180deg); }
    50% { transform: scale(1.3) rotate(90deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes preloader-text-fade-up {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes preloader-slide {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(0); }
    100% { transform: translateX(100%); }
}

@keyframes preloader-shimmer-pass {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ==========================================================================
   WELCOME CONTAINER
   Initial landing page with CV upload
   ========================================================================== */

.inst-terminal.inst-express-interest-flow {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    display: block;
    width: 100%;
    min-height: 100vh;
    height: auto;
    overflow: visible;
    background: var(--senna-cream);
}

.inst-welcome-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    background: var(--senna-cream);
    position: relative;
}

.inst-welcome-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at 50% 0%,
        rgba(255, 255, 255, 0.9) 0%,
        transparent 50%
    );
    pointer-events: none;
}

/* Welcome content */
.inst-welcome-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 760px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.inst-welcome-content > * {
    width: 100%;
}

/* Senna avatar */
.inst-senna-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(13, 53, 62, 0.15);
    border: 3px solid white;
}

/* Welcome title */
.inst-welcome-title {
    font-family: "Playfair Display", serif;
    font-size: 42px;
    font-weight: 600;
    color: var(--senna-dark);
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.inst-welcome-subtitle {
    font-size: 16px;
    color: var(--senna-text-muted);
    margin: 0 0 40px 0;
}

/* Job preview card */
.inst-job-preview-card {
    background: white;
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 32px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--senna-border);
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    max-width: 640px;
    width: 100%;
}

.inst-job-preview-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--senna-dark) 0%, var(--senna-green-gradient-mid) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.inst-job-preview-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

.inst-job-preview-info {
    flex: 1;
    min-width: 0;
}

.inst-job-preview-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--senna-dark);
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inst-job-preview-company {
    font-size: 14px;
    color: var(--senna-text-muted);
    margin: 0;
}

/* ==========================================================================
   QUERY PANEL - CV Upload
   Adapted from launcher query panel
   ========================================================================== */

.inst-query-panel {
    max-width: 600px;
    width: 100%;
    background: linear-gradient(135deg, white 0%, var(--senna-cream) 100%);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--senna-accent);
    position: relative;
    margin: 0 auto;
    text-align: left;
}

.inst-query-panel::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--senna-accent) 0%, var(--senna-accent-dark) 100%);
    border-radius: 20px;
    opacity: 0.1;
    z-index: -1;
}

.inst-cv-intake {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.inst-cv-mode-toggle {
    display: flex;
    gap: 8px;
    padding: 4px;
    border: 1px solid var(--senna-border);
    border-radius: 999px;
    background: var(--senna-cream);
}

.inst-cv-mode-btn {
    flex: 1;
    border: none;
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    background: transparent;
    color: var(--senna-text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.inst-cv-mode-btn:focus-visible {
    outline: 2px solid var(--senna-accent);
    outline-offset: 2px;
}

.inst-cv-mode-btn.is-active {
    background: var(--senna-dark);
    color: #fff;
    box-shadow: 0 4px 12px rgba(13, 53, 62, 0.2);
}

.inst-cv-panels {
    position: relative;
}

.inst-cv-panel {
    display: none;
    animation: instPanelFade 0.25s ease;
}

.inst-cv-panel.is-active {
    display: block;
}

.inst-cv-panel[hidden] {
    display: none !important;
}

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

.inst-query-panel[data-active-mode="upload"] [data-cv-mode-panel="upload"],
.inst-query-panel[data-active-mode="paste"] [data-cv-mode-panel="paste"] {
    display: block;
}

/* CV Upload Zone */
.inst-cv-upload-zone {
    border: 2px dashed var(--senna-border);
    border-radius: 16px;
    padding: 40px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--senna-cream);
    margin-bottom: 20px;
}

.inst-cv-upload-zone:hover,
.inst-cv-upload-zone.drag-over {
    border-color: var(--senna-accent);
    background: rgba(212, 175, 55, 0.05);
}

.inst-cv-upload-zone.has-file {
    border-color: #059669;
    background: rgba(5, 150, 105, 0.05);
}

.inst-cv-upload-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    color: var(--senna-text-muted);
}

.inst-cv-upload-zone:hover .inst-cv-upload-icon,
.inst-cv-upload-zone.drag-over .inst-cv-upload-icon {
    color: var(--senna-accent);
}

.inst-cv-upload-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--senna-dark);
    margin: 0 0 8px 0;
}

.inst-cv-upload-hint {
    font-size: 13px;
    color: var(--senna-text-muted);
    margin: 0;
}

/* File preview when uploaded */
.inst-cv-file-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(5, 150, 105, 0.08);
    border-radius: 12px;
    margin-top: 16px;
}

.inst-cv-file-preview svg {
    width: 20px;
    height: 20px;
    color: #059669;
    flex-shrink: 0;
}

.inst-cv-file-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: var(--senna-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inst-cv-file-remove {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--senna-text-muted);
    transition: color 0.2s;
}

.inst-cv-file-remove:hover {
    color: #dc2626;
}

/* Upload divider */
.inst-upload-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
    color: var(--senna-text-muted);
    font-size: 13px;
}

.inst-upload-divider::before,
.inst-upload-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--senna-border);
}

/* CV paste textarea */
.inst-cv-paste-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--senna-border);
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    background: var(--senna-cream);
    color: var(--senna-dark);
    transition: all 0.3s ease;
    resize: vertical;
    min-height: 120px;
}

.inst-cv-paste-input:focus {
    outline: none;
    border-color: var(--senna-accent);
    background: white;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.inst-cv-paste-input::placeholder {
    color: var(--senna-text-muted);
}

/* Get Started button */
.inst-get-started-btn {
    width: 100%;
    padding: 18px 32px;
    margin-top: 24px;
    background: linear-gradient(135deg, var(--senna-accent) 0%, var(--senna-accent-dark) 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.inst-get-started-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.35);
}

.inst-get-started-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ==========================================================================
   ANALYSIS CONTAINER
   Main content area with tabs
   ========================================================================== */

.inst-analysis-container {
    min-height: 100vh;
    background: var(--senna-cream);
    padding: 24px;
    max-width: 1920px;
    margin: 0 auto;
    width: 100%;
}

/* Analysis header */
.inst-analysis-header {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 32px;
    background: #ffffff;
    border: 1px solid rgba(13, 53, 62, 0.08);
    border-radius: 30px;
    padding: 32px;
    box-shadow: 0 30px 70px rgba(6, 38, 49, 0.08);
    margin-bottom: 32px;
}

.inst-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: white;
    border: 1px solid var(--senna-border);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--senna-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.inst-back-btn:hover {
    background: var(--senna-cream);
    border-color: var(--senna-dark);
}

.inst-back-btn svg {
    width: 16px;
    height: 16px;
}

.inst-download-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--senna-dark);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.inst-download-pdf-btn:hover {
    background: var(--senna-green-gradient-mid);
    transform: translateY(-1px);
}

.inst-download-pdf-btn svg {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   TAB TOGGLE - Using inst-view-toggle pattern
   ========================================================================== */

.inst-tab-toggle-container {
    max-width: 900px;
    margin: 0 auto 24px;
    padding: 0 16px;
}

.inst-view-toggle-container {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.inst-view-toggle {
    display: inline-flex;
    background: white;
    border-radius: 16px;
    padding: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(13, 53, 62, 0.1);
}

.inst-view-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--senna-text-muted);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    position: relative;
}

.inst-view-toggle-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.inst-view-toggle-btn:hover {
    color: var(--senna-dark);
    transform: translateY(-1px);
}

.inst-view-toggle-btn:active {
    transform: scale(0.96);
}

.inst-view-toggle-btn.is-active {
    background: linear-gradient(135deg, #0D353E 0%, #1a4a56 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(13, 53, 62, 0.3);
}

.inst-view-toggle-btn.is-active svg {
    color: white;
    transform: scale(1.1);
}

/* ==========================================================================
   TAB VIEWS
   Content areas for each tab
   ========================================================================== */

.inst-tab-views {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.inst-tab-view {
    display: block;
    animation: fadeIn 0.3s ease;
    margin-bottom: 48px;
}

.inst-tab-view:last-of-type {
    margin-bottom: 0;
}

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

/* ==========================================================================
   LINKEDIN-STYLE LIST/DETAIL LAYOUT
   ========================================================================== */

.inst-linkedin-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    width: 100%;
    max-width: 1800px;
    padding: 0 48px 48px;
    margin: 0 auto 48px;
    min-height: calc(100vh - 60px);
}

.inst-linkedin-column {
    width: 100%;
}

.inst-linkedin-column--left {
    flex: 0 0 28%;
    max-width: 480px;
    position: sticky;
    top: 90px;
}

.inst-join-senna-btn {
    width: 100%;
    margin-bottom: 16px;
    padding: 14px 20px;
    border-radius: 999px;
    border: none;
    font-weight: 600;
    font-size: 15px;
    background: #0d353e;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.inst-join-senna-btn:hover {
    background: #0b2b33;
    box-shadow: 0 10px 20px rgba(13, 53, 62, 0.2);
}

.inst-linkedin-column--right {
    flex: 1;
    min-width: 0;
}

.inst-intro-cta-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-right: 16px;
}

.inst-intro-cta-note {
    font-size: 12px;
    color: var(--senna-text-muted, #5B7C85);
    margin: 0;
}

.inst-intro-cta-note--inline {
    margin-top: 6px;
}

.inst-mobile-panel-toggle {
    display: none;
    width: 100%;
    padding: 0 16px 10px;
    gap: 10px;
    align-items: center;
}

.inst-mobile-toggle-group {
    flex: 1;
    display: inline-flex;
    gap: 8px;
}

.inst-mobile-panel-btn {
    flex: 1;
    border: 1px solid rgba(13, 53, 62, 0.2);
    border-radius: 999px;
    padding: 10px 12px;
    background: #fff;
    font-weight: 600;
    font-size: 14px;
    color: var(--senna-dark, #0D353E);
    cursor: pointer;
    transition: all 0.2s ease;
}

.inst-mobile-panel-btn.is-active {
    background: var(--senna-dark, #0D353E);
    color: #fff;
    border-color: var(--senna-dark, #0D353E);
    box-shadow: 0 6px 18px rgba(13, 53, 62, 0.18);
}

.inst-mobile-join-btn {
    border-radius: 999px;
    padding: 10px 20px;
    background: #ffffff;
    border: 1px solid rgba(13, 53, 62, 0.25);
    font-weight: 600;
    color: var(--senna-dark, #0D353E);
    white-space: nowrap;
    text-decoration: none;
}

.inst-mobile-join-btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

.inst-mobile-role-summary {
    display: none;
    padding: 12px 16px 20px;
    border-bottom: 1px solid rgba(13, 53, 62, 0.1);
    background: #ffffff;
}

.inst-mobile-role-summary h2 {
    margin: 0 0 4px;
    font-size: 20px;
}

.inst-mobile-role-summary p {
    margin: 0;
    color: var(--senna-text-muted, #5B7C85);
    font-size: 14px;
}

.inst-linkedin-column--left .inst-recruiter-outreach {
    margin-top: 0;
}

@media (max-width: 1024px) {
    .inst-linkedin-layout {
        flex-direction: column;
        padding: 0;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .inst-linkedin-column {
        position: static;
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 900px) {
    /* Modern App-like Mobile Navigation - Transform existing toggle to bottom nav */
    .inst-mobile-panel-toggle.is-visible {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        z-index: 1001;
        background: linear-gradient(180deg, rgba(13, 53, 62, 0.98) 0%, rgba(13, 53, 62, 1) 50%);
        backdrop-filter: blur(20px);
        box-shadow: 0 -4px 24px rgba(13, 53, 62, 0.2);
        padding: 8px 16px 12px;
        margin: 0;
        align-items: center;
        justify-content: center;
        min-height: 72px;
    }

    .inst-mobile-toggle-group {
        display: flex;
        gap: 8px;
        flex: 1;
        max-width: 400px;
    }

    .inst-mobile-panel-btn {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 8px 12px;
        border-radius: 12px;
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        cursor: pointer;
        background: transparent;
        border: none;
        min-height: 56px;
        position: relative;
    }

    .inst-mobile-panel-btn .inst-mobile-nav-icon {
        width: 24px;
        height: 24px;
        color: rgba(255, 255, 255, 0.6);
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        flex-shrink: 0;
    }

    .inst-mobile-panel-btn .inst-mobile-nav-label {
        font-size: 11px;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.6);
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        letter-spacing: 0.01em;
    }

    .inst-mobile-panel-btn:active {
        transform: scale(0.95);
    }

    .inst-mobile-panel-btn.is-active {
        background: rgba(255, 255, 255, 0.15);
    }

    .inst-mobile-panel-btn.is-active .inst-mobile-nav-icon {
        color: #ffffff;
        transform: translateY(-2px);
    }

    .inst-mobile-panel-btn.is-active .inst-mobile-nav-label {
        color: #ffffff;
        font-weight: 600;
    }

    .inst-mobile-panel-btn.is-active:before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 32px;
        height: 3px;
        background: #ffffff;
        border-radius: 0 0 3px 3px;
    }

    .inst-mobile-join-btn {
        display: none;
    }

    .inst-mobile-role-summary {
        display: block;
        position: sticky;
        top: 0;
        z-index: 100;
        background: linear-gradient(135deg, #0D353E 0%, #1a4a56 100%);
        padding: 16px 20px 14px;
        margin: 0;
        box-shadow: 0 4px 24px rgba(13, 53, 62, 0.15);
        backdrop-filter: blur(10px);
    }

    .inst-mobile-role-summary h2 {
        color: #ffffff;
        font-size: 18px;
        font-weight: 600;
        margin: 0 0 4px 0;
        line-height: 1.3;
    }

    .inst-mobile-role-summary p {
        color: rgba(255, 255, 255, 0.75);
        font-size: 14px;
        margin: 0;
        line-height: 1.4;
    }

    .inst-linkedin-layout {
        padding: 0;
        gap: 0;
        background: #f5f8fa;
    }

    .inst-linkedin-layout.is-mobile-stack {
        flex-direction: column;
        min-height: 100vh;
        min-height: 100dvh;
        padding-bottom: 80px;
    }

    .inst-linkedin-layout.is-mobile-stack .inst-linkedin-column {
        display: none;
        width: 100%;
        max-width: 100%;
        position: static;
        flex: none;
        min-height: calc(100vh - 140px);
        min-height: calc(100dvh - 140px);
    }

    .inst-linkedin-layout.is-mobile-stack .inst-linkedin-column.is-active {
        display: block;
        animation: slideInUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .inst-linkedin-column--left {
        max-width: 100%;
    }

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

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

@media (max-width: 1024px) {
    body:not(.inst-dashboard) {
        background: linear-gradient(135deg, #e8f0f3 0%, #f5f8fa 100%);
    }

    .inst-linkedin-column {
        padding: 0;
        border-radius: 0;
        background: transparent;
    }

    .inst-linkedin-column--left {
        padding-bottom: 96px;
    }

    .inst-analysis-header {
        display: none;
    }

    .inst-analysis-header-title,
    .inst-analysis-header-subtitle,
    .inst-header-message-btn span,
    .inst-add-pipeline-btn span,
    .inst-expert-btn span {
        color: inherit;
    }

    /* Modern Card-based Mobile Layout */
    .inst-linkedin-column--right .inst-tab-view,
    .inst-linkedin-column--left .inst-recruiter-outreach,
    .inst-linkedin-column--left .inst-express-section {
        margin: 0 0 16px 0;
        border-radius: 24px;
        padding: 24px 20px;
        background: #ffffff;
        box-shadow: 0 2px 16px rgba(13, 53, 62, 0.08);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .inst-linkedin-column--right .inst-tab-view:first-of-type {
        margin-top: 16px;
    }

    .inst-tab-view {
        background: #ffffff;
        border-radius: 24px;
        box-shadow: 0 2px 16px rgba(13, 53, 62, 0.08);
        padding: 24px 20px;
    }

    .inst-outreach-grid {
        gap: 16px;
    }

    .inst-outreach-card-inner {
        padding: 20px;
        border-radius: 16px;
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .inst-outreach-card-inner:active {
        transform: scale(0.98);
    }
}

@media (max-width: 640px) {
    .inst-linkedin-column--right .inst-tab-view,
    .inst-linkedin-column--left .inst-recruiter-outreach,
    .inst-linkedin-column--left .inst-express-section {
        padding: 20px 18px;
        margin: 0 12px 12px 12px;
        border-radius: 20px;
    }

    .inst-linkedin-column--right .inst-tab-view:first-of-type {
        margin-top: 12px;
    }

    /* Touch-friendly spacing */
    .inst-outreach-card-inner {
        padding: 18px;
    }

    /* Better mobile typography */
    .inst-mobile-role-summary h2 {
        font-size: 17px;
    }

    .inst-mobile-role-summary p {
        font-size: 13px;
    }

    /* Smaller bottom nav buttons on very small screens */
    .inst-mobile-panel-btn {
        padding: 6px 8px;
        min-height: 52px;
    }

    .inst-mobile-panel-btn .inst-mobile-nav-icon {
        width: 22px;
        height: 22px;
    }

    .inst-mobile-panel-btn .inst-mobile-nav-label {
        font-size: 10px;
    }

    .inst-mobile-join-btn {
        display: none;
    }
}

@media (max-width: 480px) {
    .inst-linkedin-layout.is-mobile-stack .inst-linkedin-column.is-active {
        animation: slideInUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    }

    /* Extra touch-friendly spacing */
    .inst-linkedin-column--right .inst-tab-view,
    .inst-linkedin-column--left .inst-recruiter-outreach,
    .inst-linkedin-column--left .inst-express-section {
        padding: 18px 16px;
        margin: 0 8px 8px 8px;
    }

    .inst-linkedin-column--right .inst-tab-view:first-of-type {
        margin-top: 8px;
    }

    /* Larger tap targets */
    button,
    .inst-outreach-card-inner,
    .inst-cv-action-btn {
        min-height: 48px;
    }
}

.inst-selected-recruiter-brief {
    background: rgba(13, 53, 62, 0.05);
    border: 1px solid rgba(13, 53, 62, 0.12);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13px;
    color: var(--senna-text-muted, #5B7C85);
    margin-bottom: 12px;
}

.inst-outreach-card.is-preview .inst-outreach-card-inner,
.inst-outreach-card.is-preview .inst-outreach-checkbox:checked + .inst-outreach-card-inner {
    border-color: var(--senna-dark, #0D353E);
    box-shadow: 0 14px 32px rgba(13, 53, 62, 0.18);
}

.inst-outreach-card--primary .inst-outreach-card-inner {
    border-color: var(--senna-dark, #0D353E);
    background: #fff;
}

.inst-introduce-confirmation {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(13, 53, 62, 0.06);
    border: 1px solid rgba(13, 53, 62, 0.15);
    margin-bottom: 18px;
}

.inst-introduce-confirmation.is-visible {
    display: flex;
}

.inst-introduce-confirmation-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--senna-dark, #0D353E);
    flex-shrink: 0;
}

.inst-introduce-confirmation-copy {
    flex: 1;
}

.inst-introduce-confirmation-copy strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}

.inst-introduce-confirmation-copy p {
    margin: 0;
    font-size: 13px;
    color: var(--senna-text-muted, #5B7C85);
}

.inst-introduce-confirmation-dismiss {
    border: none;
    background: transparent;
    color: rgba(13, 53, 62, 0.6);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

/* ==========================================================================
   JOB DETAILS TAB
   ========================================================================== */

.inst-job-details-section {
    background: white;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--senna-border);
}

.inst-job-details-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--senna-dark);
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.inst-job-details-section h3 svg {
    width: 18px;
    height: 18px;
    color: var(--senna-text-muted);
}

/* ==========================================================================
   APPLICATION STEP FLOW
   ========================================================================== */

.inst-application-steps {
    background: transparent;
}

#inst-application-pack-view .inst-panel-view {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.inst-step-intro {
    margin-bottom: 32px;
    padding: 28px;
    border-radius: 28px;
    background: linear-gradient(135deg, #f2fbfa 0%, #e5f2ee 85%);
    border: 1px solid rgba(13, 53, 62, 0.08);
    box-shadow: 0 18px 40px rgba(7, 31, 36, 0.05);
}

.inst-step-intro-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #0b3c45;
    background: rgba(13, 53, 62, 0.08);
    padding: 6px 14px;
    border-radius: 999px;
}

.inst-step-intro-label::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d353e 0%, #19a38f 100%);
}

.inst-step-intro h2 {
    font-size: 28px;
    margin: 14px 0 8px;
    color: #062631;
}

.inst-step-intro p {
    color: #3f555c;
    max-width: 760px;
    font-size: 15px;
}

.inst-kit-preview {
    margin-bottom: 24px;
    padding: 28px;
    border-radius: 24px;
    border: 1px solid rgba(13, 53, 62, 0.12);
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(6, 38, 49, 0.06);
}

.inst-kit-preview-header h3 {
    margin: 12px 0 8px;
    font-size: 24px;
    color: #0b3c45;
}

.inst-kit-preview-header p {
    margin: 0;
    color: #4c666d;
    max-width: 640px;
}

.inst-kit-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin: 20px 0 24px;
}

.inst-kit-preview-card {
    border: 1px solid rgba(13, 53, 62, 0.12);
    border-radius: 18px;
    padding: 18px;
    background: #f8fbfb;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.inst-kit-preview-card h4 {
    margin: 0;
    font-size: 16px;
    color: #0d353e;
}

.inst-kit-preview-snippet {
    margin: 0;
    font-size: 14px;
    color: #2b4d55;
    line-height: 1.5;
}

.inst-kit-preview-list {
    margin: 0;
    padding-left: 20px;
    color: #2b4d55;
    font-size: 14px;
    line-height: 1.5;
}

.inst-kit-preview-meta {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #5c7b83;
}

.inst-kit-preview-download {
    width: 100%;
    justify-content: center;
}

.inst-kit-preview.is-hidden {
    display: none;
}

.inst-step-flow {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.inst-step-card {
    border: 1px solid rgba(13, 53, 62, 0.12);
    padding: 28px;
    border-radius: 18px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
    position: relative;
}

.inst-step-card:not(.is-current):not(.is-complete) .inst-step-body,
.inst-step-card:not(.is-current):not(.is-complete) .inst-step-status,
.inst-step-card:not(.is-current):not(.is-complete) .inst-step-summary,
.inst-step-card:not(.is-current):not(.is-complete) .inst-gap-panels-grid,
.inst-step-card:not(.is-current):not(.is-complete) .inst-step-actions,
.inst-step-card:not(.is-current):not(.is-complete) .inst-materials-section {
    display: none;
}

.inst-step-card.is-current {
    border-color: rgba(13, 53, 62, 0.4);
    box-shadow: 0 12px 30px rgba(13, 53, 62, 0.08);
}

.inst-step-card.is-hidden {
    display: none;
}

.inst-step-card.is-complete {
    border-color: rgba(13, 53, 62, 0.25);
}

.inst-step-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.inst-step-card:not(.is-current):not(.is-complete) {
    background: #f4f8f9;
    padding: 20px 24px;
}

.inst-step-card:not(.is-current):not(.is-complete) .inst-step-header {
    margin-bottom: 0;
    align-items: center;
}

.inst-step-card:not(.is-current):not(.is-complete) .inst-step-pill {
    font-size: 11px;
    padding: 4px 14px 4px 12px;
    opacity: 0.8;
}

.inst-step-card:not(.is-current):not(.is-complete) .inst-step-title {
    font-size: 18px;
}

.inst-step-card:not(.is-current):not(.is-complete) .inst-step-subtitle {
    font-size: 13px;
    color: #6f8087;
}

.inst-step-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(13, 53, 62, 0.08);
    border: 1px solid rgba(13, 53, 62, 0.2);
    color: #0d353e;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 18px 6px 14px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.inst-step-pill::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0d353e;
    box-shadow: 0 0 0 3px rgba(13, 53, 62, 0.15);
}

.inst-step-title {
    font-size: 20px;
    margin: 0 0 4px;
    color: #071f24;
}

.inst-step-subtitle {
    margin: 0;
    color: #5a6a70;
    font-size: 15px;
}

.inst-step-textarea {
    width: 100%;
    border: 1px solid rgba(7, 31, 36, 0.15);
    border-radius: 16px;
    padding: 16px 20px;
    min-height: 220px;
    font-size: 15px;
    line-height: 1.5;
    resize: vertical;
    background: #fbfcfc;
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    color: #0b2025;
}

.inst-step-textarea:focus {
    outline: none;
    border-color: #0d353e;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(13, 53, 62, 0.1);
}

.inst-step-meta-row {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 14px;
    color: #425259;
}

.inst-step-next {
    margin-top: 20px;
}

.inst-step-link {
    background: none;
    border: none;
    color: #0d353e;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 0;
}

.inst-step-link svg {
    width: 16px;
    height: 16px;
}

.inst-step-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.inst-step-action-btn {
    border: none;
    border-radius: 999px;
    padding: 12px 24px;
    background: #0d353e;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.inst-step-action-btn svg {
    width: 18px;
    height: 18px;
}

.inst-step-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(13, 53, 62, 0.2);
}

.inst-step-helper {
    font-size: 13px;
    color: #5a6a70;
}

.inst-step-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(13, 53, 62, 0.08);
    color: #0d353e;
    font-weight: 600;
    margin-bottom: 22px;
}

.inst-step-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #0d353e;
}

.inst-step-status.is-loading .inst-step-status-dot {
    animation: instStepPulse 1s ease infinite;
}

.inst-step-status.is-success {
    background: #c7ffe6;
    color: #06403e;
}

.inst-step-status.is-success .inst-step-status-dot {
    background: #0d7b5f;
}

.inst-step-status.is-error {
    background: #ffe0e0;
    color: #8c1c1c;
}

.inst-step-status.is-error .inst-step-status-dot {
    background: #c62828;
}

@keyframes instStepPulse {
    0% { opacity: 0.4; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 0.4; transform: scale(0.9); }
}

.inst-step-output-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.inst-step-output {
    border: 1px solid rgba(7, 31, 36, 0.12);
    border-radius: 16px;
    padding: 20px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
}

.inst-step-output-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.inst-step-output-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: #0d353e;
    letter-spacing: 0.08em;
}

.inst-step-output-header p {
    margin: 4px 0 0;
    color: #5a6a70;
    font-size: 14px;
}

.inst-step-copy-btn {
    border: 1px solid rgba(7, 31, 36, 0.15);
    background: transparent;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.inst-step-copy-btn svg {
    width: 16px;
    height: 16px;
}

.inst-step-output-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.inst-step-output-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.inst-step-action-btn--ghost {
    background: transparent;
    color: #0d353e;
    border: 1px solid rgba(13, 53, 62, 0.3);
}

.inst-step-placeholder {
    text-align: center;
    border: 1px dashed rgba(7, 31, 36, 0.2);
    border-radius: 14px;
    padding: 20px;
    color: #5a6a70;
    font-size: 14px;
}

.inst-step-output-content {
    display: none;
    color: #122225;
    font-size: 14px;
    line-height: 1.6;
}

.inst-step-output.has-data .inst-step-output-content {
    display: block;
}

.inst-step-output.has-data .inst-step-placeholder {
    display: none;
}

.inst-step-cover-letter-content p {
    margin-bottom: 12px;
}

.inst-step-cover-letter-content ul {
    padding-left: 18px;
    margin: 12px 0;
}

.inst-step-cover-letter-content li {
    margin-bottom: 6px;
}

.inst-step-question-card button {
    border: none;
    background: none;
    color: #0d353e;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
}

.inst-step-keyword-group {
    margin-bottom: 12px;
}

.inst-step-summary {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 28px;
}

.inst-step-summary .inst-executive-summary {
    border: 1px solid rgba(7, 31, 36, 0.12);
    border-radius: 18px;
}

.inst-score-circle {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0b3c45 0%, #0f6d81 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-align: center;
    box-shadow: 0 20px 40px rgba(6, 34, 43, 0.35);
}

.inst-score-circle .inst-score-value {
    margin: 0;
    font-size: 30px;
}

.inst-score-circle .inst-score-label {
    font-size: 12px;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.8);
}

.inst-score-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}


.inst-score-card {
    border: 1px solid rgba(13, 53, 62, 0.12);
    border-radius: 18px;
    padding: 18px;
    text-align: center;
    background: var(--score-card-bg, #f8fbfb);
    --score-progress: 0;
    --score-ring-color: #f7a046;
    box-shadow: 0 12px 30px rgba(8, 35, 41, 0.08);
}

.inst-score-card-value {
    font-size: 22px;
    font-weight: 700;
    color: #0d353e;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, #ffffff 62%, transparent 63%),
        conic-gradient(var(--score-ring-color) calc(var(--score-progress, 0) * 1%), rgba(13, 53, 62, 0.08) calc(var(--score-progress, 0) * 1%));
    border: 1px solid rgba(13, 53, 62, 0.08);
    box-shadow: inset 0 0 18px rgba(8, 35, 41, 0.08), 0 8px 18px rgba(7, 31, 36, 0.08);
    font-variant-numeric: tabular-nums;
}

.inst-score-card-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #425259;
}

.inst-score-card-heat {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(7, 31, 36, 0.12);
    margin-top: 10px;
    overflow: hidden;
}

.inst-score-card-heat span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    transition: width 0.4s ease;
    background: linear-gradient(90deg, #f87171 0%, #fbbf24 50%, #34d399 100%);
}

.inst-score-card.inst-score-card--low {
    --score-ring-color: #dc2626;
    --score-card-bg: #fff6f5;
}

.inst-score-card.inst-score-card--low .inst-score-card-heat span {
    background: linear-gradient(90deg, #dc2626 0%, #f87171 100%);
}

.inst-score-card.inst-score-card--medium {
    --score-ring-color: #f97316;
    --score-card-bg: #fff9f3;
}

.inst-score-card.inst-score-card--medium .inst-score-card-heat span {
    background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
}

.inst-score-card.inst-score-card--high {
    --score-ring-color: #16a34a;
    --score-card-bg: #f1fcf6;
}

.inst-score-card.inst-score-card--high .inst-score-card-heat span {
    background: linear-gradient(90deg, #34d399 0%, #059669 100%);
}

.inst-gap-panels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.inst-gap-panels-grid--wide {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.inst-gap-panel {
    border: 1px solid rgba(7, 31, 36, 0.12);
    border-radius: 18px;
    background: #fff;
    display: flex;
    flex-direction: column;
    min-height: 220px;
}

.inst-gap-panel-header {
    padding: 18px 20px 10px;
    border-bottom: 1px solid rgba(7, 31, 36, 0.08);
}

.inst-gap-panel-header h4 {
    margin: 0;
    font-size: 16px;
    color: #071f24;
}

.inst-gap-panel-subtitle {
    font-size: 13px;
    color: #5a6a70;
}

.inst-gap-panel-body {
    padding: 18px 20px;
    flex: 1;
    position: relative;
}

.inst-gap-panel-body.has-data .inst-step-placeholder {
    display: none;
}

.inst-gap-empty {
    margin: 0;
    color: #5a6a70;
    font-size: 14px;
}

.inst-gap-list-item {
    border-left: 4px solid #ffc46b;
    padding: 12px 16px;
    margin-bottom: 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, #fffdf2 0%, #f3fff5 100%);
    box-shadow: 0 10px 25px rgba(7, 31, 36, 0.05);
}

.inst-gap-list-item:last-child {
    margin-bottom: 0;
}

.inst-gap-list-item strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
    color: #0a2c34;
}

.inst-gap-list-meta {
    font-size: 13px;
    color: #5a6a70;
}

.inst-gap-highlight {
    background: linear-gradient(120deg, #fff1c8 0%, #dff7ff 100%);
    color: #0d353e;
    padding: 0 4px;
    border-radius: 6px;
    font-weight: 600;
}

.inst-gap-keywords {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.inst-gap-keywords-group span {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #0d353e;
    margin-bottom: 8px;
}

.inst-gap-keyword-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.inst-gap-keyword-tags .inst-step-keyword {
    font-size: 12px;
}

.inst-gap-panel--cover .inst-step-output-content,
.inst-gap-panel--interview .inst-step-output-content,
.inst-gap-panel--keywords .inst-step-output-content,
.inst-gap-panel--linkedin .inst-step-output-content {
    display: block;
}

.inst-gap-panel .inst-step-placeholder {
    margin: 0;
}

.inst-gap-panel .inst-step-output-content {
    margin-top: 6px;
}

.inst-gap-panel-body.has-data .inst-step-placeholder {
    display: none;
}

.inst-gap-panel-body.has-data .inst-step-output-content {
    display: block;
}

.inst-gap-panel-body .inst-step-output-content {
    display: none;
}

.inst-gap-panel-body.has-data .inst-step-output-content {
    display: block;
}

.inst-gap-panel--linkedin .inst-step-output-content,
.inst-gap-panel--cover .inst-step-output-content {
    white-space: pre-line;
}

.inst-gap-panel--linkedin .inst-step-output-content {
    font-size: 14px;
}

.inst-membership-note {
    margin-top: 18px;
    padding: 18px 20px;
    border-radius: 16px;
    border: 1px dashed rgba(13, 53, 62, 0.25);
    background: linear-gradient(135deg, rgba(13, 53, 62, 0.03) 0%, rgba(13, 53, 62, 0.08) 100%);
    text-align: left;
}

.inst-membership-note h5 {
    margin: 0 0 8px;
    font-size: 16px;
    color: #0d353e;
}

.inst-membership-note p {
    margin: 0 0 12px;
    color: #425259;
    font-size: 14px;
}

.inst-membership-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #0d353e 0%, #128f9d 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(13, 53, 62, 0.18);
}

.inst-membership-cta:hover {
    background: linear-gradient(135deg, #08242a 0%, #0f6b78 100%);
}

.inst-step-action-btn.is-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.inst-apply-modal {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: none;
}

.inst-apply-modal.show {
    display: block;
}

.inst-apply-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 18, 22, 0.65);
}

.inst-apply-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 24px;
    max-width: 840px;
    width: 90%;
    padding: 32px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
}

.inst-apply-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    border: none;
    background: transparent;
    cursor: pointer;
}

.inst-apply-modal-header h3 {
    margin: 0 0 8px;
    font-size: 22px;
    color: #0d353e;
}

.inst-apply-modal-header p {
    margin: 0;
    color: #5a6a70;
}

.inst-apply-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.inst-apply-option {
    border: 1px solid rgba(7, 31, 36, 0.1);
    border-radius: 18px;
    padding: 24px;
    position: relative;
    background: #f9fbfb;
}

.inst-apply-option--with {
    background: linear-gradient(180deg, rgba(199, 255, 230, 0.3), rgba(199, 255, 230, 0.1));
    border-color: rgba(13, 53, 62, 0.2);
}

.inst-apply-badge {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #0d353e;
    background: rgba(13, 53, 62, 0.08);
}

.inst-apply-option h4 {
    margin: 12px 0;
    font-size: 18px;
    color: #071f24;
}

.inst-apply-option ul {
    margin: 0 0 18px;
    padding-left: 18px;
    color: #425259;
}

.inst-apply-upgrade,
.inst-apply-continue {
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 12px 16px;
    font-weight: 600;
    cursor: pointer;
}

.inst-apply-upgrade {
    background: #0d353e;
    color: #fff;
}

.inst-apply-continue {
    background: transparent;
    color: #0d353e;
    border: 1px solid rgba(13, 53, 62, 0.3);
}

.inst-apply-modal-footer {
    text-align: center;
    color: #425259;
}

.inst-apply-modal-footer a {
    color: #0d353e;
    font-weight: 600;
}

.inst-step-question-card {
    border: 1px solid rgba(7, 31, 36, 0.1);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 12px;
    background: #f9fbfb;
}

.inst-step-question-card:last-child {
    margin-bottom: 0;
}

.inst-step-question-card h4 {
    font-size: 14px;
    margin: 0 0 6px;
}

.inst-step-question-card p {
    margin: 0 0 8px;
    color: #425259;
    font-size: 13px;
}

.inst-step-message {
    background: linear-gradient(135deg, #f3fbfa 0%, #fdfaf3 100%);
    border: 1px solid rgba(7, 31, 36, 0.08);
    border-radius: 14px;
    padding: 18px;
    white-space: pre-line;
    font-size: 14px;
    color: #05232d;
    line-height: 1.6;
    border-left: 4px solid #13a09e;
}

.inst-step-keyword-label {
    font-size: 13px;
    font-weight: 600;
    color: #0d353e;
    margin-bottom: 8px;
    display: block;
}

.inst-step-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.inst-step-keyword {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(7, 31, 36, 0.15);
    background: #fff;
}

.inst-step-keyword--missing {
    border-color: rgba(202, 34, 34, 0.3);
    background: rgba(202, 34, 34, 0.08);
    color: #8c1c1c;
}

.inst-step-actions--final {
    justify-content: space-between;
    border-top: 1px solid rgba(7, 31, 36, 0.1);
    padding-top: 20px;
    margin-top: 24px;
}

.inst-step-action-btn--secondary {
    background: transparent;
    color: #0d353e;
    border: 1px solid rgba(13, 53, 62, 0.2);
}

.inst-step-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

@media (max-width: 768px) {
    .inst-step-header {
        flex-direction: column;
    }

    .inst-step-meta-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .inst-step-actions--final {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Job meta cards grid */
.inst-job-meta-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.inst-job-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--senna-cream);
    border-radius: 12px;
}

.inst-job-meta-item svg {
    width: 20px;
    height: 20px;
    color: var(--senna-text-muted);
    flex-shrink: 0;
    margin-top: 2px;
}

.inst-job-meta-item-label {
    font-size: 12px;
    color: var(--senna-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.inst-job-meta-item-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--senna-dark);
}

/* Requirements list */
.inst-requirements-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.inst-requirements-list li {
    position: relative;
    padding: 10px 0 10px 28px;
    font-size: 15px;
    color: var(--senna-dark);
    border-bottom: 1px solid var(--senna-border);
}

.inst-requirements-list li:last-child {
    border-bottom: none;
}

.inst-requirements-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    width: 8px;
    height: 8px;
    background: var(--senna-dark);
    border-radius: 50%;
}

/* Job description prose */
.inst-job-description-content {
    font-size: 15px;
    line-height: 1.7;
    color: var(--senna-dark);
}

.inst-job-description-content p {
    margin: 0 0 16px 0;
}

.inst-job-description-content p:last-child {
    margin-bottom: 0;
}

/* Recruiter card */
.inst-recruiter-info-card {
    display: flex;
    align-items: center;
    gap: 16px;
}

.inst-recruiter-avatar-lg {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--senna-dark) 0%, var(--senna-green-gradient-mid) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
}

.inst-recruiter-details {
    flex: 1;
}

.inst-recruiter-name-lg {
    font-size: 17px;
    font-weight: 600;
    color: var(--senna-dark);
    margin: 0 0 4px 0;
}

.inst-recruiter-title-lg {
    font-size: 14px;
    color: var(--senna-text-muted);
    margin: 0;
}

.inst-recruiter-linkedin-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #0a66c2;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.inst-recruiter-linkedin-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 102, 194, 0.3);
}

.inst-recruiter-linkedin-lg svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   ANALYSIS TAB
   Metrics and analysis results
   ========================================================================== */

/* Metrics row */
.inst-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.inst-metric {
    background: white;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--senna-border);
    transition: all 0.3s ease;
}

.inst-metric:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.inst-metric-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--senna-dark);
    line-height: 1;
    margin-bottom: 6px;
}

.inst-metric-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--senna-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.inst-metric-bar {
    height: 6px;
    background: rgba(13, 53, 62, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.inst-metric-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--senna-dark) 0%, var(--senna-green-gradient-end) 100%);
    border-radius: 3px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Metric color states */
.inst-metric[data-score-level="high"] .inst-metric-value { color: #059669; }
.inst-metric[data-score-level="high"] .inst-metric-bar-fill { background: linear-gradient(90deg, #059669 0%, #10b981 100%); }

.inst-metric[data-score-level="medium"] .inst-metric-value { color: #d97706; }
.inst-metric[data-score-level="medium"] .inst-metric-bar-fill { background: linear-gradient(90deg, #d97706 0%, #f59e0b 100%); }

.inst-metric[data-score-level="low"] .inst-metric-value { color: #dc2626; }
.inst-metric[data-score-level="low"] .inst-metric-bar-fill { background: linear-gradient(90deg, #dc2626 0%, #f87171 100%); }

/* Analysis cards */
.inst-analysis-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--senna-border);
}

.inst-analysis-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.inst-analysis-card-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--senna-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.inst-analysis-card-title svg {
    width: 20px;
    height: 20px;
}

.inst-analysis-card-count {
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    background: var(--senna-cream);
    color: var(--senna-text-muted);
}

/* Missing requirements - red accent */
.inst-analysis-card--missing .inst-analysis-card-title svg { color: #dc2626; }
.inst-analysis-card--missing .inst-analysis-card-count { background: #fef2f2; color: #dc2626; }

/* Matched requirements - green accent */
.inst-analysis-card--matched .inst-analysis-card-title svg { color: #059669; }
.inst-analysis-card--matched .inst-analysis-card-count { background: #ecfdf5; color: #059669; }

/* Recommendations - amber accent */
.inst-analysis-card--recommendations .inst-analysis-card-title svg { color: #d97706; }
.inst-analysis-card--recommendations .inst-analysis-card-count { background: #fffbeb; color: #d97706; }

/* Analysis list items */
.inst-analysis-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.inst-analysis-list li {
    padding: 12px 16px;
    background: var(--senna-cream);
    border-radius: 10px;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--senna-dark);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.inst-analysis-list li:last-child {
    margin-bottom: 0;
}

.inst-analysis-list li svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.inst-analysis-card--missing .inst-analysis-list li svg { color: #dc2626; }
.inst-analysis-card--matched .inst-analysis-list li svg { color: #059669; }
.inst-analysis-card--recommendations .inst-analysis-list li svg { color: #d97706; }

/* Express Interest CTA in Analysis tab */
.inst-express-interest-cta {
    background: linear-gradient(135deg, var(--senna-dark) 0%, var(--senna-green-gradient-mid) 100%);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    margin-top: 32px;
}

.inst-express-interest-cta h3 {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin: 0 0 8px 0;
}

.inst-express-interest-cta p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 20px 0;
}

.inst-express-interest-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: white;
    color: var(--senna-dark);
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.inst-express-interest-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.inst-express-interest-btn svg {
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   EXPRESS INTEREST TAB
   Form for sending application
   ========================================================================== */

.inst-express-form {
    max-width: 600px;
    margin: 0 auto;
}

/* Form section */
.inst-form-section {
    background: white;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--senna-border);
}

.inst-form-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--senna-dark);
    margin: 0 0 20px 0;
}

/* Form fields */
.inst-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.inst-form-group {
    margin-bottom: 16px;
}

.inst-form-group:last-child {
    margin-bottom: 0;
}

.inst-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--senna-dark);
    margin-bottom: 8px;
}

.inst-form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--senna-border);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    color: var(--senna-dark);
    background: white;
    transition: all 0.2s ease;
}

.inst-form-input:focus {
    outline: none;
    border-color: var(--senna-accent);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.inst-form-input::placeholder {
    color: var(--senna-text-muted);
}

/* Materials selection */
.inst-materials-select {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.inst-material-option {
    position: relative;
    cursor: pointer;
}

.inst-material-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.inst-material-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: var(--senna-cream);
    border: 2px solid var(--senna-border);
    border-radius: 14px;
    transition: all 0.2s ease;
}

.inst-material-option input:checked + .inst-material-card {
    border-color: var(--senna-accent);
    background: rgba(212, 175, 55, 0.05);
}

.inst-material-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.inst-material-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--senna-dark);
}

.inst-material-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    background: rgba(5, 150, 105, 0.1);
    color: #059669;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.inst-material-description {
    font-size: 13px;
    color: var(--senna-text-muted);
    margin-bottom: 16px;
}

/* Material preview */
.inst-material-preview {
    background: white;
    border-radius: 10px;
    padding: 16px;
    border: 1px solid var(--senna-border);
    font-size: 13px;
    color: var(--senna-dark);
    line-height: 1.6;
}

.inst-material-preview strong {
    display: block;
    margin-bottom: 8px;
}

.inst-material-preview.is-completed {
    border-color: #059669;
    background: rgba(5, 150, 105, 0.02);
}

.inst-material-preview.is-loading {
    text-align: center;
    color: var(--senna-text-muted);
}

/* CRM checkbox */
.inst-crm-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(10, 102, 194, 0.05);
    border-radius: 12px;
    cursor: pointer;
    margin-bottom: 24px;
}

.inst-crm-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #0a66c2;
}

.inst-crm-checkbox span {
    font-size: 14px;
    color: var(--senna-dark);
}

/* Message Recruiter button */
.inst-message-recruiter-btn {
    width: 100%;
    padding: 18px 32px;
    background: linear-gradient(135deg, var(--senna-dark) 0%, var(--senna-green-gradient-mid) 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.inst-message-recruiter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13, 53, 62, 0.3);
}

.inst-message-recruiter-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.inst-message-recruiter-btn svg {
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   SEND CONFIRMATION MODAL
   ========================================================================== */

.inst-send-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.inst-send-modal.is-active {
    display: flex;
}

.inst-send-modal-content {
    background: white;
    border-radius: 20px;
    padding: 36px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}

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

.inst-send-modal-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--senna-dark);
    margin: 0 0 24px 0;
}

.inst-send-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.inst-send-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    background: var(--senna-cream);
    border: 2px solid var(--senna-border);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.inst-send-option:hover {
    border-color: var(--senna-accent);
    background: rgba(212, 175, 55, 0.05);
    transform: translateY(-2px);
}

.inst-send-option:first-child {
    border-color: #059669;
    background: rgba(5, 150, 105, 0.05);
}

.inst-send-option:first-child:hover {
    background: rgba(5, 150, 105, 0.1);
}

.inst-send-option span:first-child {
    font-size: 16px;
    font-weight: 600;
    color: var(--senna-dark);
    margin-bottom: 8px;
}

.inst-stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #059669;
    line-height: 1;
}

.inst-send-option:last-child .inst-stat-value {
    color: var(--senna-text-muted);
}

.inst-stat-label {
    font-size: 12px;
    color: var(--senna-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.inst-send-modal-close {
    margin-top: 16px;
    padding: 12px 24px;
    background: transparent;
    border: 1px solid var(--senna-border);
    border-radius: 10px;
    font-size: 14px;
    color: var(--senna-text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.inst-send-modal-close:hover {
    background: var(--senna-cream);
    color: var(--senna-dark);
}

/* ==========================================================================
   SUCCESS CONTAINER
   ========================================================================== */

.inst-success-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    background: var(--senna-cream);
    text-align: center;
}

.inst-success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.inst-success-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

.inst-success-container h2 {
    font-family: "Playfair Display", serif;
    font-size: 36px;
    font-weight: 600;
    color: var(--senna-dark);
    margin: 0 0 16px 0;
}

.inst-success-container > p {
    font-size: 16px;
    color: var(--senna-text-muted);
    margin: 0 0 32px 0;
    max-width: 500px;
}

.inst-success-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--senna-dark) 0%, var(--senna-green-gradient-mid) 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
    margin-bottom: 16px;
}

.inst-success-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13, 53, 62, 0.3);
}

.inst-success-cta svg {
    width: 18px;
    height: 18px;
}

.inst-success-secondary {
    padding: 12px 24px;
    background: transparent;
    border: 1px solid var(--senna-border);
    border-radius: 10px;
    font-size: 14px;
    color: var(--senna-text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.inst-success-secondary:hover {
    background: white;
    color: var(--senna-dark);
}

/* ==========================================================================
   RESPONSIVE - EXPRESS INTEREST FLOW
   ========================================================================== */

@media (max-width: 768px) {
    /* Preloader */
    .inst-premium-preloader .preloader-brand-mark {
        width: 90px;
        height: 110px;
    }

    .inst-premium-preloader .brand-letter-s {
        font-size: 90px;
    }

    .inst-premium-preloader .brand-dot {
        width: 14px;
        height: 14px;
        top: 5px;
        right: -10px;
    }

    .inst-premium-preloader .preloader-brand-text {
        font-size: 36px;
        letter-spacing: 6px;
    }

    .inst-premium-preloader .preloader-tagline {
        font-size: 11px;
        letter-spacing: 2px;
    }

    /* Welcome */
    .inst-welcome-container {
        padding: 40px 16px;
    }

    .inst-welcome-title {
        font-size: 32px;
    }

    .inst-query-panel {
        padding: 24px;
    }

    /* Analysis */
    .inst-analysis-header {
        flex-direction: column;
        padding: 20px;
        gap: 16px;
    }

    .inst-analysis-header-title {
        font-size: 24px;
    }

    .inst-analysis-meta {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    /* Metrics */
    .inst-metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .inst-metric-value {
        font-size: 28px;
    }

    /* Form */
    .inst-form-row {
        grid-template-columns: 1fr;
    }

    /* Tab toggle */
    .inst-view-toggle-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 16px;
        margin: 0 -16px 20px;
        scrollbar-width: none;
    }

    .inst-view-toggle-container::-webkit-scrollbar {
        display: none;
    }

    .inst-view-toggle {
        width: max-content;
        min-width: calc(100% - 32px);
        padding: 5px;
        border-radius: 14px;
    }

    .inst-view-toggle-btn {
        flex: 1;
        padding: 12px 16px;
        font-size: 14px;
        gap: 7px;
        min-height: 44px;
        border-radius: 10px;
    }

    .inst-view-toggle-btn svg {
        width: 18px;
        height: 18px;
    }

    .inst-view-toggle-btn span {
        display: inline;
        font-weight: 500;
    }

    /* Modal */
    .inst-send-modal-content {
        padding: 28px 20px;
    }

    .inst-stat-value {
        font-size: 28px;
    }
}

/* Small screens - icons only for tabs */
@media (max-width: 520px) {
    .inst-view-toggle-btn {
        padding: 10px 12px;
    }

    .inst-view-toggle-btn span {
        display: none;
    }

    .inst-view-toggle-btn svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .inst-premium-preloader .preloader-brand-mark {
        width: 70px;
        height: 85px;
    }

    .inst-premium-preloader .brand-letter-s {
        font-size: 70px;
    }

    .inst-premium-preloader .brand-dot {
        width: 12px;
        height: 12px;
        top: 3px;
        right: -8px;
    }

    .inst-premium-preloader .preloader-brand-text {
        font-size: 28px;
        letter-spacing: 4px;
    }

    .inst-premium-preloader .preloader-tagline {
        font-size: 10px;
        letter-spacing: 1.5px;
    }

    .inst-premium-preloader .preloader-content {
        gap: 30px;
    }

    .inst-welcome-title {
        font-size: 28px;
    }

    .inst-senna-avatar {
        width: 64px;
        height: 64px;
    }

    .inst-metrics {
        grid-template-columns: 1fr;
    }

    .inst-job-preview-card {
        flex-direction: column;
        text-align: center;
    }

    .inst-job-preview-info {
        text-align: center;
    }
}

/* ==========================================================================
   ADDITIONAL STYLES FOR RECRUITER TEMPLATE (v2.0 fixes)
   Missing classes from PHP template
   ========================================================================== */

/* Preloader Steps */
.inst-preloader-steps {
    margin-top: 40px;
    text-align: left;
    width: 300px;
}

.inst-preloader-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
    color: var(--senna-text-muted, #6b8a8f);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.inst-preloader-step.is-active {
    color: var(--senna-dark, #0D353E);
    opacity: 1;
}

.inst-preloader-step.is-complete {
    color: #059669;
    opacity: 1;
}

.inst-preloader-step-icon {
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.inst-preloader-step.is-complete .inst-preloader-step-icon::after {
    content: "✓";
    font-size: 10px;
}

/* Query Panel Header */
.query-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.query-label {
    font-size: 18px;
    font-weight: 600;
    color: var(--senna-dark, #0D353E);
}

.query-badge {
    background: rgba(13, 53, 62, 0.1);
    color: var(--senna-dark, #0D353E);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* CV Upload Zone (alternative classes) */
.query-input-wrapper.inst-cv-input-wrapper {
    margin-bottom: 0;
}

.inst-upload-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    color: var(--senna-text-muted, #6b8a8f);
}

.inst-cv-upload-zone:hover .inst-upload-icon {
    color: var(--senna-accent, #d4af37);
}

.inst-upload-text {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--senna-dark, #0D353E);
    margin-bottom: 8px;
}

.inst-upload-formats {
    display: block;
    font-size: 13px;
    color: var(--senna-text-muted, #6b8a8f);
}

/* Welcome Branding */
.inst-welcome-branding {
    text-align: center;
    margin-bottom: 32px;
}

/* Job Preview Badge and Meta */
.inst-job-preview-badge {
    display: inline-block;
    background: var(--senna-dark, #0D353E);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.inst-job-preview-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 12px;
    justify-content: center;
}

.inst-job-preview-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--senna-text-muted, #6b8a8f);
}

.inst-job-preview-meta-item svg {
    width: 14px;
    height: 14px;
}

/* Analysis Header Layout */
.inst-analysis-header-left {
    flex: 1 1 55%;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.inst-analysis-header-right {
    flex: 1 1 320px;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.inst-analysis-header-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.inst-analysis-header-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.inst-analysis-header-title {
    font-family: "Playfair Display", serif;
    font-size: 32px;
    font-weight: 600;
    color: #0d353e;
    margin: 0;
    line-height: 1.2;
}

.inst-analysis-header-subtitle {
    font-size: 15px;
    color: #5b7c85;
    margin: 0;
}

.inst-analysis-description {
    margin: 0;
    font-size: 15px;
    color: #2c4c54;
}

.inst-analysis-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.inst-analysis-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(13, 53, 62, 0.08);
    color: #0d353e;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.inst-analysis-pill.is-urgent {
    background: rgba(220, 53, 69, 0.12);
    color: #b42318;
}

.inst-analysis-pill.is-featured {
    background: rgba(255, 215, 0, 0.2);
    color: #805500;
}

.inst-analysis-pill.is-live::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #1dd1a1;
    display: inline-block;
}

.inst-analysis-meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.inst-analysis-meta li {
    border: 1px solid rgba(13, 53, 62, 0.08);
    border-radius: 16px;
    padding: 12px 16px;
    background: #f8fbfb;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.inst-expert-btn--primary {
    margin-top: 16px;
    align-self: flex-start;
    justify-content: center;
    border: none;
    background: linear-gradient(135deg, #0d353e 0%, #128f9d 100%);
    color: #ffffff;
    font-weight: 600;
    padding: 12px 22px;
    box-shadow: 0 16px 30px rgba(14, 82, 90, 0.3);
}

.inst-expert-btn--primary svg {
    width: 20px;
    height: 20px;
}

.inst-analysis-meta span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #5b7c85;
}

.inst-analysis-meta strong {
    font-size: 15px;
    color: #0d353e;
    font-weight: 600;
}

.inst-analysis-meta strong em {
    font-style: normal;
    font-weight: 500;
    color: #5b7c85;
    margin-left: 4px;
}

.inst-analysis-stat-card {
    padding: 20px;
    border-radius: 20px;
    background: linear-gradient(135deg, #0b3c45, #0f6d81);
    color: #e7f4f9;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.inst-analysis-stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.inst-analysis-stat-value {
    font-size: 32px;
    font-weight: 600;
}

.inst-analysis-stat-card p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.inst-stat-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.inst-stat-card-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.inst-stat-card-btn svg {
    width: 16px;
    height: 16px;
}

.inst-analysis-cta-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.inst-analysis-helper {
    margin: 0;
    font-size: 12px;
    color: #5b7c85;
}

.inst-analysis-cta-stack .inst-header-message-btn,
.inst-analysis-cta-stack .inst-add-pipeline-btn,
.inst-analysis-cta-stack .inst-expert-btn {
    width: 100%;
    justify-content: center;
}

.inst-header-message-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(13, 53, 62, 0.2);
    background: #fff;
    color: var(--senna-dark, #0D353E);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.inst-header-message-btn svg {
    width: 16px;
    height: 16px;
}

.inst-header-message-btn:hover {
    background: rgba(13, 53, 62, 0.05);
    border-color: var(--senna-dark, #0D353E);
}

.inst-header-message-btn:focus-visible {
    outline: 2px solid var(--senna-dark, #0D353E);
    outline-offset: 2px;
}

/* Header Actions Buttons */
.inst-pdf-download-btn,
.inst-add-pipeline-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--senna-dark, #0D353E);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.inst-pdf-download-btn:hover,
.inst-add-pipeline-btn:hover {
    background: #1a5c6a;
    transform: translateY(-1px);
}

.inst-pdf-download-btn svg,
.inst-add-pipeline-btn svg {
    width: 16px;
    height: 16px;
}

.inst-add-pipeline-btn.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

.inst-add-pipeline-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Chart Cards (Analysis Cards alternative) */
.inst-analysis-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.inst-chart-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(13, 53, 62, 0.1);
}

.inst-chart-card-header {
    margin-bottom: 16px;
}

.inst-chart-card-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--senna-dark, #0D353E);
    margin: 0 0 4px 0;
}

.inst-chart-card-subtitle {
    font-size: 13px;
    color: var(--senna-text-muted, #6b8a8f);
    margin: 0;
}

.inst-chart-card-body {
    min-height: 60px;
}

.inst-chart-narrative {
    padding: 16px;
    background: rgba(13, 53, 62, 0.03);
    border-radius: 12px;
}

.inst-chart-narrative-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--senna-text-muted, #6b8a8f);
}

.inst-chart-narrative-header svg {
    width: 18px;
    height: 18px;
}

/* Key Requirements Section */
.inst-key-requirements {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid rgba(13, 53, 62, 0.1);
}

.inst-key-requirements h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--senna-dark, #0D353E);
    margin: 0 0 16px 0;
}

.inst-key-requirements ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.inst-key-requirements li {
    position: relative;
    padding: 10px 0 10px 24px;
    font-size: 15px;
    color: var(--senna-dark, #0D353E);
    border-bottom: 1px solid rgba(13, 53, 62, 0.08);
}

.inst-key-requirements li:last-child {
    border-bottom: none;
}

.inst-key-requirements li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    width: 8px;
    height: 8px;
    background: var(--senna-dark, #0D353E);
    border-radius: 50%;
}

/* Ideal Background Section */
.inst-ideal-background {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid rgba(13, 53, 62, 0.1);
}

.inst-ideal-background h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--senna-dark, #0D353E);
    margin: 0 0 12px 0;
}

.inst-ideal-background p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--senna-dark, #0D353E);
    margin: 0;
}

/* Job Description Section */
.inst-job-description {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid rgba(13, 53, 62, 0.1);
}

.inst-job-description h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--senna-dark, #0D353E);
    margin: 0 0 16px 0;
}

/* Recruiter Card */
.inst-recruiter-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: white;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(13, 53, 62, 0.1);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.inst-recruiter-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13, 53, 62, 0.12);
    border-color: rgba(13, 53, 62, 0.2);
}

.inst-recruiter-card:active {
    transform: translateY(0) scale(0.98);
}

.inst-recruiter-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--senna-dark, #0D353E) 0%, #1a5c6a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
}

.inst-recruiter-info {
    flex: 1;
}

.inst-recruiter-label {
    display: block;
    font-size: 12px;
    color: var(--senna-text-muted, #6b8a8f);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.inst-recruiter-name {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--senna-dark, #0D353E);
}

.inst-recruiter-meta {
    display: block;
    font-size: 14px;
    color: var(--senna-text-muted, #6b8a8f);
}

.inst-recruiter-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #0a66c2;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.inst-recruiter-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 102, 194, 0.3);
}

.inst-recruiter-link svg {
    width: 18px;
    height: 18px;
}

/* Job Meta Grid */
.inst-job-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.inst-job-meta-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(13, 53, 62, 0.03);
    border-radius: 12px;
}

.inst-job-meta-card svg {
    width: 20px;
    height: 20px;
    color: var(--senna-text-muted, #6b8a8f);
    flex-shrink: 0;
    margin-top: 2px;
}

.inst-job-meta-label {
    display: block;
    font-size: 12px;
    color: var(--senna-text-muted, #6b8a8f);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.inst-job-meta-value {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--senna-dark, #0D353E);
}

/* Job Details Content */
.inst-job-details-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Express Form Styles */
.inst-express-header {
    text-align: center;
    margin-bottom: 32px;
}

.inst-express-header h2 {
    font-family: "Playfair Display", serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--senna-dark, #0D353E);
    margin: 0 0 8px 0;
}

.inst-express-header p {
    font-size: 16px;
    color: var(--senna-text-muted, #6b8a8f);
    margin: 0;
}

.inst-express-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid rgba(13, 53, 62, 0.1);
}

.inst-express-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--senna-dark, #0D353E);
    margin: 0 0 16px 0;
}

.inst-section-description {
    font-size: 14px;
    color: var(--senna-text-muted, #6b8a8f);
    margin: -8px 0 16px 0;
}

/* Form Fields */
.inst-form-field {
    flex: 1;
}

.inst-form-field--full {
    width: 100%;
}

.inst-form-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--senna-dark, #0D353E);
    margin-bottom: 8px;
}

.inst-form-field input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(13, 53, 62, 0.1);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    color: var(--senna-dark, #0D353E);
    background: white;
    transition: all 0.2s ease;
}

.inst-form-field input:focus {
    outline: none;
    border-color: var(--senna-accent, #d4af37);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.inst-form-field input::placeholder {
    color: var(--senna-text-muted, #6b8a8f);
}

/* Material Card Styles */
.inst-material-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.inst-material-icon {
    width: 20px;
    height: 20px;
    color: var(--senna-dark, #0D353E);
}

.inst-material-desc {
    font-size: 13px;
    color: var(--senna-text-muted, #6b8a8f);
    margin: 0 0 16px 0;
}

.inst-preview-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #059669;
}

.inst-preview-status svg {
    width: 14px;
    height: 14px;
}

.inst-preview-content {
    font-size: 13px;
    color: var(--senna-dark, #0D353E);
    line-height: 1.6;
}

.inst-preview-content strong {
    display: block;
    margin-bottom: 8px;
}

.inst-preview-content p {
    margin: 0 0 8px 0;
}

.inst-preview-highlight {
    color: var(--senna-accent, #d4af37);
    font-weight: 500;
}

/* CRM Tracking Section */
.inst-crm-tracking {
    background: rgba(10, 102, 194, 0.05);
    border-color: rgba(10, 102, 194, 0.1);
}

.inst-checkbox-switch {
    width: 44px;
    height: 24px;
    background: rgba(13, 53, 62, 0.2);
    border-radius: 12px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.inst-checkbox-switch::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.inst-crm-checkbox input:checked + .inst-checkbox-switch {
    background: #0a66c2;
}

.inst-crm-checkbox input:checked + .inst-checkbox-switch::after {
    transform: translateX(20px);
}

.inst-checkbox-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.inst-checkbox-text strong {
    font-size: 14px;
    color: var(--senna-dark, #0D353E);
}

.inst-checkbox-text span:not(strong) {
    font-size: 13px;
    color: var(--senna-text-muted, #6b8a8f);
}

/* Express Actions */
.inst-express-actions {
    margin-top: 24px;
}

/* Send Modal Overlay */
.inst-send-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.inst-send-modal-header {
    margin-bottom: 24px;
}

.inst-send-modal-header h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--senna-dark, #0D353E);
    margin: 0 0 8px 0;
}

.inst-send-modal-header p {
    font-size: 14px;
    color: var(--senna-text-muted, #6b8a8f);
    margin: 0;
}

/* Send Option Layout */
.inst-send-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px;
    background: rgba(13, 53, 62, 0.03);
    border: 2px solid rgba(13, 53, 62, 0.1);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.inst-send-option:hover {
    border-color: var(--senna-accent, #d4af37);
    transform: translateY(-2px);
}

.inst-send-with-materials {
    border-color: #059669;
    background: rgba(5, 150, 105, 0.05);
}

.inst-send-with-materials:hover {
    background: rgba(5, 150, 105, 0.1);
}

.inst-option-main {
    display: flex;
    align-items: center;
    gap: 16px;
}

.inst-option-icon {
    width: 44px;
    height: 44px;
    background: rgba(13, 53, 62, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.inst-send-with-materials .inst-option-icon {
    background: rgba(5, 150, 105, 0.15);
    color: #059669;
}

.inst-option-icon svg {
    width: 22px;
    height: 22px;
}

.inst-option-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.inst-option-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--senna-dark, #0D353E);
}

.inst-option-desc {
    font-size: 13px;
    color: var(--senna-text-muted, #6b8a8f);
}

.inst-option-stat {
    text-align: right;
    flex-shrink: 0;
}

/* Modal Close Button */
.inst-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: rgba(13, 53, 62, 0.05);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--senna-text-muted, #6b8a8f);
}

.inst-modal-close:hover {
    background: rgba(13, 53, 62, 0.1);
    color: var(--senna-dark, #0D353E);
}

.inst-modal-close svg {
    width: 18px;
    height: 18px;
}

/* Success Content */
.inst-success-content {
    max-width: 500px;
    margin: 0 auto;
}

.inst-success-note {
    font-size: 14px;
    color: var(--senna-text-muted, #6b8a8f);
    margin: 0 0 32px 0;
}

/* Metric Status */
.inst-metric-status {
    font-size: 11px;
    color: var(--senna-text-muted, #6b8a8f);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Express CTA Content */
.inst-express-cta-content {
    margin-bottom: 16px;
}

.inst-express-cta-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin: 0 0 4px 0;
}

.inst-express-cta-content p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Responsive additions */
@media (max-width: 768px) {
    /* Enhanced Mobile Typography */
    .inst-analysis-header-title {
        font-size: 22px;
        line-height: 1.3;
        letter-spacing: -0.01em;
    }

    .inst-analysis-header-subtitle {
        font-size: 15px;
        line-height: 1.5;
    }

    h1, h2, h3, h4 {
        line-height: 1.3;
        letter-spacing: -0.01em;
    }

    p {
        line-height: 1.6;
        font-size: 15px;
    }

    .inst-analysis-header-left,
    .inst-analysis-header-right {
        width: 100%;
    }

    .inst-analysis-header-info {
        width: 100%;
        order: initial;
        margin-top: 0;
    }

    .inst-analysis-header-right {
        justify-content: flex-start;
        margin-top: 16px;
    }

    .inst-add-pipeline-btn {
        width: 100%;
        justify-content: center;
    }

    .inst-analysis-header-title {
        font-size: 20px;
    }

    .inst-job-preview-meta {
        justify-content: center;
    }

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

    .inst-send-option {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .inst-option-main {
        flex-direction: column;
    }

    .inst-option-stat {
        text-align: center;
    }
}

/* ==========================================================================
   APPLICATION PACK FLOW v3.0 STYLES
   ========================================================================== */

/* ==========================================================================
   Job Description Header with Tailor CV Button
   ========================================================================== */

.inst-job-description-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.inst-job-description-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--senna-dark, #0D353E);
}

.inst-tailor-cv-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #0D353E 0%, #1a4a56 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.inst-tailor-cv-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 53, 62, 0.3);
}

.inst-tailor-cv-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ==========================================================================
   Pack Sections (Application Pack Tab)
   ========================================================================== */

.inst-pack-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.inst-pack-section-header {
    margin-bottom: 20px;
}

.inst-pack-section-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--senna-dark, #0D353E);
}

.inst-pack-section-header h3 svg {
    width: 22px;
    height: 22px;
    stroke: var(--senna-dark, #0D353E);
}

.inst-pack-section-header p {
    margin: 0;
    font-size: 14px;
    color: var(--senna-text-muted, #6b7280);
}

/* ==========================================================================
   CV Intake (Upload/Paste Toggle)
   ========================================================================== */

.inst-cv-intake {
    margin-top: 16px;
}

.inst-cv-mode-toggle {
    display: flex;
    gap: 0;
    margin-bottom: 16px;
    border: 1px solid rgba(13, 53, 62, 0.1);
    border-radius: 8px;
    overflow: hidden;
    width: fit-content;
}

.inst-cv-mode-btn {
    padding: 10px 20px;
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--senna-text-muted, #6b7280);
    cursor: pointer;
    transition: all 0.2s ease;
}

.inst-cv-mode-btn.is-active {
    background: var(--senna-dark, #0D353E);
    color: white;
}

.inst-cv-mode-btn:hover:not(.is-active) {
    background: rgba(13, 53, 62, 0.05);
}

.inst-cv-panels {
    min-height: 180px;
}

.inst-cv-panel {
    display: none;
}

.inst-cv-panel.is-active {
    display: block;
}

.inst-cv-upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    border: 2px dashed rgba(13, 53, 62, 0.2);
    border-radius: 12px;
    background: rgba(13, 53, 62, 0.02);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.inst-cv-upload-zone:hover {
    border-color: var(--senna-dark, #0D353E);
    background: rgba(13, 53, 62, 0.05);
}

.inst-cv-upload-zone.is-dragover {
    border-color: var(--senna-accent, #d4af37);
    background: rgba(212, 175, 55, 0.1);
}

.inst-cv-upload-zone .inst-upload-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    color: var(--senna-dark, #0D353E);
    opacity: 0.6;
}

.inst-cv-upload-zone .inst-upload-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--senna-dark, #0D353E);
    margin-bottom: 6px;
}

.inst-cv-upload-zone .inst-upload-formats {
    font-size: 13px;
    color: var(--senna-text-muted, #6b7280);
}

.inst-cv-file-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(5, 150, 105, 0.08);
    border: 1px solid rgba(5, 150, 105, 0.2);
    border-radius: 10px;
}

.inst-cv-file-preview svg {
    width: 24px;
    height: 24px;
    color: #059669;
    flex-shrink: 0;
}

.inst-cv-filename {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: var(--senna-dark, #0D353E);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inst-cv-remove {
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    color: var(--senna-text-muted, #6b7280);
    font-size: 20px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.inst-cv-remove:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.inst-cv-paste-input {
    width: 100%;
    min-height: 180px;
    padding: 16px;
    border: 1px solid rgba(13, 53, 62, 0.15);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.inst-cv-paste-input:focus {
    outline: none;
    border-color: var(--senna-dark, #0D353E);
}

/* ==========================================================================
   Products Grid
   ========================================================================== */

.inst-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 640px) {
    .inst-products-grid {
        grid-template-columns: 1fr;
    }
}

.inst-product-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: rgba(13, 53, 62, 0.02);
    border: 2px solid transparent;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.inst-product-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0D353E, #1a4a56);
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.inst-product-card:hover {
    background: rgba(13, 53, 62, 0.04);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 53, 62, 0.1);
}

.inst-product-card:active {
    transform: translateY(0) scale(0.98);
}

.inst-product-card.is-selected {
    border-color: var(--senna-dark, #0D353E);
    background: rgba(13, 53, 62, 0.06);
    box-shadow: 0 8px 24px rgba(13, 53, 62, 0.15);
}

.inst-product-card.is-selected:before {
    transform: scaleX(1);
}

.inst-product-icon {
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.inst-product-icon svg {
    width: 22px;
    height: 22px;
    color: var(--senna-dark, #0D353E);
}

.inst-product-content {
    flex: 1;
    margin-bottom: 16px;
}

.inst-product-title {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--senna-dark, #0D353E);
}

.inst-product-desc {
    margin: 0;
    font-size: 13px;
    color: var(--senna-text-muted, #6b7280);
    line-height: 1.5;
}

.inst-product-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    padding: 4px 8px;
    background: linear-gradient(135deg, #d4af37 0%, #c5a028 100%);
    color: white;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.inst-product-badge svg {
    width: 12px;
    height: 12px;
}

.inst-add-to-pack-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 12px 16px;
    background: white;
    border: 1px solid rgba(13, 53, 62, 0.2);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--senna-dark, #0D353E);
    cursor: pointer;
    transition: all 0.2s ease;
}

.inst-add-to-pack-btn svg {
    width: 16px;
    height: 16px;
}

.inst-add-to-pack-btn:hover {
    background: var(--senna-dark, #0D353E);
    color: white;
    border-color: var(--senna-dark, #0D353E);
}

.inst-product-card.is-selected .inst-add-to-pack-btn {
    background: #059669;
    color: white;
    border-color: #059669;
}

/* ==========================================================================
   Pack Summary
   ========================================================================== */

.inst-pack-summary {
    background: linear-gradient(135deg, #0D353E 0%, #1a4a56 100%);
    border-radius: 16px;
    padding: 24px;
    color: white;
}

.inst-pack-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.inst-pack-summary-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.inst-pack-count {
    font-size: 14px;
    opacity: 0.8;
}

.inst-pack-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.inst-pack-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

.inst-pack-item-remove {
    width: 20px;
    height: 20px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: -2px -4px -2px 0;
    transition: color 0.2s ease;
}

.inst-pack-item-remove:hover {
    color: white;
}

.inst-generate-pack-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    background: var(--senna-accent, #d4af37);
    color: #0D353E;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.inst-generate-pack-btn:hover {
    background: #c5a028;
    transform: translateY(-1px);
}

.inst-generate-pack-btn svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   Express Interest - Upsell Cards
   ========================================================================== */

.inst-upsell-section {
    margin-bottom: 24px;
}

.inst-section-description {
    color: var(--senna-text-muted, #6b7280);
    font-size: 14px;
    margin-bottom: 20px;
}

.inst-upsell-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.inst-recruiter-outreach {
    margin-bottom: 32px;
    padding: 24px;
    background: #fff;
    border: 1px solid rgba(13, 53, 62, 0.1);
    border-radius: 16px;
}

.inst-outreach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.inst-outreach-card {
    position: relative;
    display: block;
}

.inst-outreach-checkbox {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.inst-outreach-card-inner {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(13, 53, 62, 0.12);
    border-radius: 12px;
    background: linear-gradient(135deg, #fbfdff 0%, #f3f7fb 100%);
    transition: all 0.2s ease;
}

.inst-outreach-card:hover .inst-outreach-card-inner {
    border-color: var(--senna-dark, #0D353E);
    box-shadow: 0 10px 24px rgba(13, 53, 62, 0.12);
}

.inst-outreach-checkbox:checked + .inst-outreach-card-inner {
    border-color: var(--senna-dark, #0D353E);
    background: #fff;
    box-shadow: 0 12px 30px rgba(13, 53, 62, 0.18);
}

.inst-outreach-check-icon {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(13, 53, 62, 0.25);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #fff;
    transition: all 0.2s ease;
    position: relative;
}

.inst-outreach-check-icon::after {
    content: '';
    width: 10px;
    height: 6px;
    border-left: 2px solid transparent;
    border-bottom: 2px solid transparent;
    transform: rotate(-45deg);
    transition: border-color 0.2s ease;
}

.inst-outreach-card:hover .inst-outreach-check-icon {
    border-color: rgba(13, 53, 62, 0.6);
}

.inst-outreach-checkbox:checked + .inst-outreach-card-inner .inst-outreach-check-icon {
    background: var(--senna-dark, #0D353E);
    border-color: var(--senna-dark, #0D353E);
}

.inst-outreach-checkbox:checked + .inst-outreach-card-inner .inst-outreach-check-icon::after {
    border-color: #fff;
}

.inst-outreach-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--senna-dark, #0D353E);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
    overflow: hidden;
}

.inst-outreach-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.inst-outreach-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.inst-outreach-name {
    font-weight: 600;
    color: var(--senna-dark, #0D353E);
}

.inst-outreach-firm,
.inst-outreach-role {
    font-size: 13px;
    color: var(--senna-text-muted, #5B7C85);
}

.inst-outreach-role-company {
    font-weight: 500;
    color: inherit;
    margin-left: 4px;
}

.inst-outreach-actions {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(13, 53, 62, 0.08);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.inst-outreach-summary {
    font-size: 14px;
    color: var(--senna-text-muted, #5B7C85);
}

.inst-outreach-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.inst-outreach-btn {
    padding: 10px 18px;
    border-radius: 999px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.inst-outreach-btn--primary {
    background: var(--senna-dark, #0D353E);
    color: #fff;
}

.inst-outreach-btn--primary:hover:not(:disabled) {
    background: #07242b;
}

.inst-outreach-btn--primary:disabled,
.inst-outreach-btn--secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.inst-outreach-btn--secondary {
    background: #fff;
    color: var(--senna-dark, #0D353E);
    border: 1px solid var(--senna-dark, #0D353E);
}

.inst-outreach-btn--secondary:hover:not(:disabled) {
    background: rgba(13, 53, 62, 0.08);
}

.inst-outreach-floating-actions {
    display: none;
    position: sticky;
    bottom: 24px;
    margin-top: 16px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(13, 53, 62, 0.12);
    border-radius: 999px;
    padding: 10px;
    gap: 8px;
    align-items: center;
    justify-content: center;
    box-shadow: 0 18px 40px rgba(13, 53, 62, 0.18);
    z-index: 2;
}

.inst-outreach-floating-actions.is-visible {
    display: flex;
}

.inst-floating-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(13, 53, 62, 0.15);
}

.inst-floating-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.inst-floating-btn--primary {
    background: linear-gradient(135deg, #0D353E 0%, #1a4a56 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(13, 53, 62, 0.25);
}

.inst-floating-btn--secondary {
    background: rgba(255, 255, 255, 0.95);
    color: var(--senna-dark, #0D353E);
    backdrop-filter: blur(10px);
}

.inst-floating-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.inst-floating-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13, 53, 62, 0.3);
}

.inst-floating-btn:not(:disabled):hover svg {
    transform: scale(1.1);
}

.inst-floating-btn:not(:disabled):active {
    transform: translateY(0) scale(0.96);
}

@media (max-width: 768px) {
    .inst-outreach-floating-actions {
        position: fixed;
        left: 16px;
        right: 16px;
        bottom: 88px;
        z-index: 999;
        border-radius: 16px;
    }
}

.inst-outreach-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--senna-text-muted, #5B7C85);
    margin: 0;
}

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

    .inst-outreach-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

.inst-upsell-card {
    cursor: pointer;
    position: relative;
}

.inst-upsell-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.inst-upsell-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 16px;
    background: rgba(13, 53, 62, 0.02);
    border: 2px solid transparent;
    border-radius: 12px;
    transition: all 0.2s ease;
    position: relative;
}

.inst-upsell-card:hover .inst-upsell-card-inner {
    background: rgba(13, 53, 62, 0.05);
    border-color: rgba(13, 53, 62, 0.1);
}

.inst-upsell-card.is-selected .inst-upsell-card-inner,
.inst-upsell-card input:checked + .inst-upsell-card-inner {
    border-color: var(--senna-dark, #0D353E);
    background: rgba(13, 53, 62, 0.08);
}

.inst-upsell-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.inst-upsell-icon svg {
    width: 20px;
    height: 20px;
    color: var(--senna-dark, #0D353E);
}

.inst-upsell-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--senna-dark, #0D353E);
    margin-bottom: 4px;
}

.inst-upsell-desc {
    display: block;
    font-size: 12px;
    color: var(--senna-text-muted, #6b7280);
}

.inst-upsell-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 3px 6px;
    background: linear-gradient(135deg, #d4af37 0%, #c5a028 100%);
    color: white;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.inst-upsell-check {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 22px;
    height: 22px;
    background: var(--senna-dark, #0D353E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s ease;
}

.inst-upsell-check svg {
    width: 14px;
    height: 14px;
    color: white;
}

.inst-upsell-card.is-selected .inst-upsell-check,
.inst-upsell-card input:checked + .inst-upsell-card-inner .inst-upsell-check {
    opacity: 1;
    transform: scale(1);
}

/* Expert Call Card - Special styling */
.inst-upsell-card--expert .inst-upsell-card-inner {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(212, 175, 55, 0.02) 100%);
    border-color: rgba(212, 175, 55, 0.2);
}

.inst-upsell-card--expert:hover .inst-upsell-card-inner {
    border-color: var(--senna-accent, #d4af37);
}

.inst-upsell-card--expert .inst-upsell-icon {
    background: linear-gradient(135deg, #d4af37 0%, #c5a028 100%);
}

.inst-upsell-card--expert .inst-upsell-icon svg {
    color: white;
}

/* ==========================================================================
   Express Interest - Form Improvements
   ========================================================================== */

.inst-express-form {
    max-width: 680px;
    margin: 0 auto;
}

.inst-form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.inst-form-field {
    flex: 1;
}

.inst-form-field--full {
    flex: 1;
}

.inst-form-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--senna-dark, #0D353E);
}

.inst-form-field input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(13, 53, 62, 0.15);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.inst-form-field input:focus {
    outline: none;
    border-color: var(--senna-dark, #0D353E);
}

.inst-express-actions {
    margin-top: 32px;
    text-align: center;
}

.inst-message-recruiter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 40px;
    background: linear-gradient(135deg, #0D353E 0%, #1a4a56 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.inst-message-recruiter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13, 53, 62, 0.3);
}

.inst-message-recruiter-btn svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   CRM Tracking Toggle Improvements
   ========================================================================== */

.inst-crm-tracking {
    padding: 20px !important;
    background: rgba(13, 53, 62, 0.03) !important;
    border: 1px solid rgba(13, 53, 62, 0.08) !important;
}

.inst-crm-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    cursor: pointer;
}

.inst-crm-checkbox input[type="checkbox"] {
    display: none;
}

.inst-checkbox-switch {
    width: 44px;
    height: 24px;
    background: #d1d5db;
    border-radius: 12px;
    position: relative;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.inst-checkbox-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.inst-crm-checkbox input:checked + .inst-checkbox-switch {
    background: #0a66c2;
}

.inst-crm-checkbox input:checked + .inst-checkbox-switch::after {
    transform: translateX(20px);
}

.inst-checkbox-text {
    flex: 1;
}

.inst-checkbox-text strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--senna-dark, #0D353E);
    margin-bottom: 2px;
}

.inst-checkbox-text span {
    font-size: 13px;
    color: var(--senna-text-muted, #6b7280);
}

/* ==========================================================================
   Responsive Adjustments for Application Pack
   ========================================================================== */

@media (max-width: 768px) {
    .inst-job-description-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .inst-tailor-cv-btn {
        width: 100%;
        justify-content: center;
    }

    .inst-form-row {
        flex-direction: column;
        gap: 12px;
    }

    .inst-upsell-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .inst-message-recruiter-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .inst-upsell-grid {
        grid-template-columns: 1fr;
    }

    .inst-pack-section {
        padding: 16px;
    }

    .inst-product-card {
        padding: 16px;
    }
}

/* ==========================================================================
   Product Preview Windows
   ========================================================================== */

.inst-product-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.inst-product-header .inst-product-icon {
    flex-shrink: 0;
}

.inst-product-meta {
    flex: 1;
    min-width: 0;
}

.inst-product-meta .inst-product-title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 600;
    color: var(--senna-dark, #0D353E);
}

.inst-product-meta .inst-product-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #78350f;
}

/* Preview Window Container */
.inst-product-preview {
    margin: 12px 0 16px;
    border-radius: 8px;
    overflow: hidden;
}

.inst-preview-window {
    background: #ffffff;
    border: 1px solid rgba(13, 53, 62, 0.12);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* macOS-style Titlebar */
.inst-preview-titlebar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: linear-gradient(180deg, #f5f5f5 0%, #e8e8e8 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.inst-preview-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
}

.inst-preview-dot:nth-child(1) {
    background: #ff5f56;
}

.inst-preview-dot:nth-child(2) {
    background: #ffbd2e;
}

.inst-preview-dot:nth-child(3) {
    background: #27c93f;
}

.inst-preview-filename {
    margin-left: auto;
    font-size: 11px;
    color: #666;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Preview Content */
.inst-preview-content {
    padding: 14px 16px;
    font-size: 12px;
    line-height: 1.5;
    color: #374151;
    background: #fafafa;
    min-height: 80px;
}

.inst-preview-label {
    font-weight: 600;
    color: var(--senna-dark, #0D353E);
    margin-bottom: 8px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.inst-preview-label:not(:first-child) {
    margin-top: 14px;
}

/* Keywords and Skills Tags */
.inst-preview-keywords,
.inst-preview-skills,
.inst-preview-ats-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.inst-preview-keyword,
.inst-preview-skill,
.inst-preview-ats-keyword {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(13, 53, 62, 0.08);
    border-radius: 4px;
    font-size: 11px;
    color: var(--senna-dark, #0D353E);
    font-weight: 500;
}

.inst-preview-skill {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
}

.inst-preview-ats-keyword {
    background: rgba(13, 53, 62, 0.12);
    color: #0d353e;
}

/* Cover Letter Preview */
.inst-preview-letter {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 12px;
    line-height: 1.6;
}

.inst-preview-greeting {
    margin: 0 0 10px;
    font-weight: 500;
    color: #1f2937;
}

.inst-preview-line {
    margin: 0 0 8px;
    color: #4b5563;
}

.inst-preview-line strong {
    color: var(--senna-dark, #0D353E);
    font-weight: 600;
}

.inst-preview-fade {
    color: #9ca3af;
    font-style: italic;
}

.inst-preview-points {
    margin: 8px 0 0;
    padding-left: 18px;
    list-style: disc;
}

.inst-preview-points li {
    margin-bottom: 4px;
    color: #6b7280;
    font-size: 11px;
}

/* Interview Questions Preview */
.inst-preview-questions {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.inst-preview-questions li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: #374151;
    font-size: 11px;
    line-height: 1.4;
}

.inst-preview-questions li::before {
    content: "Q:";
    position: absolute;
    left: 0;
    font-weight: 700;
    color: var(--senna-dark, #0D353E);
}

/* ATS Score Preview */
.inst-preview-ats-score {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding: 10px 12px;
    background: rgba(13, 53, 62, 0.04);
    border-radius: 6px;
}

.inst-ats-label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
}

.inst-ats-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--senna-dark, #0D353E);
}

.inst-ats-value.ats-high {
    color: #059669;
}

.inst-ats-value.ats-medium {
    color: #d97706;
}

.inst-ats-value.ats-low {
    color: #dc2626;
}

/* Loading State for Previews */
.inst-preview-keywords:empty::after,
.inst-preview-skills:empty::after,
.inst-preview-points:empty::after,
.inst-preview-questions:empty::after,
.inst-preview-ats-keywords:empty::after {
    content: "Extracting from job description...";
    display: block;
    padding: 8px 0;
    color: #9ca3af;
    font-style: italic;
    font-size: 11px;
}

/* Product Card Selected State with Preview */
.inst-product-card.is-selected .inst-preview-window {
    border-color: var(--senna-dark, #0D353E);
    box-shadow: 0 2px 12px rgba(13, 53, 62, 0.15);
}

/* Responsive Preview Adjustments */
@media (max-width: 768px) {
    .inst-preview-filename {
        max-width: 100px;
        font-size: 10px;
    }

    .inst-preview-content {
        padding: 12px;
        min-height: 60px;
    }

    .inst-preview-keyword,
    .inst-preview-skill,
    .inst-preview-ats-keyword {
        padding: 3px 8px;
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .inst-product-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .inst-preview-titlebar {
        padding: 6px 10px;
    }

    .inst-preview-dot {
        width: 8px;
        height: 8px;
    }
}

/* ==========================================================================
   CV Preview Layout - Document Style
   ========================================================================== */

.inst-preview-cv {
    background: #fff;
    padding: 16px 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: auto;
}

/* CV Header */
.inst-cv-header {
    text-align: center;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 2px solid var(--senna-dark, #0D353E);
}

.inst-cv-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--senna-dark, #0D353E);
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.inst-cv-title {
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 6px;
}

.inst-cv-contact {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 9px;
    color: #9ca3af;
}

.inst-cv-contact-divider {
    color: #d1d5db;
}

/* CV Sections */
.inst-cv-section {
    margin-bottom: 10px;
}

.inst-cv-section-title {
    font-size: 10px;
    font-weight: 700;
    color: var(--senna-dark, #0D353E);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
    padding-bottom: 3px;
    border-bottom: 1px solid #e5e7eb;
}

/* CV Summary with placeholders */
.inst-cv-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.inst-cv-placeholder {
    display: inline-block;
    height: 8px;
    background: linear-gradient(90deg, #e5e7eb 0%, #f3f4f6 50%, #e5e7eb 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    border-radius: 2px;
    width: 100%;
}

.inst-cv-placeholder--short {
    width: 60%;
}

.inst-cv-placeholder--medium {
    width: 80%;
}

.inst-cv-placeholder--title {
    width: 45%;
    height: 10px;
}

.inst-cv-placeholder--date {
    width: 20%;
    height: 8px;
    margin-left: auto;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.inst-cv-highlight {
    display: inline-block;
    background: linear-gradient(135deg, rgba(13, 53, 62, 0.1) 0%, rgba(13, 53, 62, 0.05) 100%);
    color: var(--senna-dark, #0D353E);
    font-size: 9px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 3px;
    border-left: 2px solid var(--senna-dark, #0D353E);
}

/* CV Skills Grid */
.inst-cv-skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.inst-cv-skills-grid .inst-preview-skill {
    font-size: 9px;
    padding: 3px 8px;
    background: rgba(16, 185, 129, 0.1);
    color: #047857;
    border-radius: 3px;
    font-weight: 500;
}

/* CV Experience */
.inst-cv-experience {
    padding-left: 8px;
    border-left: 2px solid #e5e7eb;
}

.inst-cv-exp-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.inst-cv-exp-bullets {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.inst-cv-bullet {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 10px;
    position: relative;
}

.inst-cv-bullet::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: #9ca3af;
    border-radius: 50%;
}

.inst-cv-keyword-inline {
    display: inline-block;
    background: rgba(13, 53, 62, 0.08);
    color: var(--senna-dark, #0D353E);
    font-size: 8px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 2px;
    white-space: nowrap;
}

/* Keywords Badge */
.inst-cv-keywords-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    padding: 8px 12px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    color: #047857;
}

.inst-cv-keywords-badge svg {
    color: #10b981;
}

/* Responsive CV Preview */
@media (max-width: 480px) {
    .inst-preview-cv {
        padding: 12px 14px;
    }

    .inst-cv-name {
        font-size: 14px;
    }

    .inst-cv-section-title {
        font-size: 9px;
    }

    .inst-cv-skills-grid .inst-preview-skill {
        font-size: 8px;
        padding: 2px 6px;
    }
}

/* ==========================================================================
   Product Action Buttons
   ========================================================================== */

.inst-product-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.inst-product-title-row .inst-product-title {
    margin: 0;
}

.inst-product-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--senna-dark, #0D353E) 0%, #1a4a56 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.inst-product-action-btn:hover {
    background: linear-gradient(135deg, #1a4a56 0%, #0D353E 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 53, 62, 0.3);
}

.inst-product-action-btn svg {
    flex-shrink: 0;
}

/* ==========================================================================
   Response Likelihood Modal
   ========================================================================== */

.inst-likelihood-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.inst-likelihood-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.inst-likelihood-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

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

.inst-likelihood-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.inst-likelihood-close:hover {
    background: #e5e7eb;
    color: #374151;
}

.inst-likelihood-header {
    text-align: center;
    padding: 32px 24px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.inst-likelihood-header h3 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
    color: var(--senna-dark, #0D353E);
}

.inst-likelihood-header p {
    margin: 0;
    font-size: 15px;
    color: #6b7280;
}

.inst-likelihood-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.inst-likelihood-option {
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
}

.inst-likelihood-option--with {
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.05) 0%, rgba(16, 185, 129, 0.02) 100%);
    border-right: 1px solid #e5e7eb;
}

.inst-likelihood-option--without {
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.03) 0%, rgba(239, 68, 68, 0.01) 100%);
}

.inst-likelihood-score {
    text-align: center;
    margin-bottom: 20px;
}

.inst-score-value {
    display: block;
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

.inst-score-high {
    color: #059669;
}

.inst-score-low {
    color: #dc2626;
}

.inst-score-label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.inst-likelihood-option h4 {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 600;
    color: var(--senna-dark, #0D353E);
    text-align: center;
}

.inst-likelihood-benefits,
.inst-likelihood-missing {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    flex: 1;
}

.inst-likelihood-benefits li,
.inst-likelihood-missing li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: #374151;
}

.inst-likelihood-benefits li svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: #10b981;
}

.inst-likelihood-missing li svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: #ef4444;
}

.inst-likelihood-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.inst-likelihood-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.inst-likelihood-btn--primary {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.inst-likelihood-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

.inst-likelihood-btn--secondary {
    background: #fff;
    color: var(--senna-dark, #0D353E);
    border: 1px solid rgba(13, 53, 62, 0.2);
    box-shadow: 0 6px 18px rgba(13, 53, 62, 0.08);
}

.inst-likelihood-btn--reach {
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 15px;
}

.inst-likelihood-btn--secondary:hover {
    background: rgba(13, 53, 62, 0.05);
    border-color: var(--senna-dark, #0D353E);
    color: var(--senna-dark, #0D353E);
}

/* Message Preview Teaser */
.inst-message-preview-teaser {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #e5e7eb;
}

.inst-details-modal {
    position: fixed;
    inset: 0;
    z-index: 11000;
    display: none;
}

.inst-details-overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 31, 36, 0.75);
    backdrop-filter: blur(4px);
}

.inst-details-content {
    position: relative;
    max-width: 480px;
    margin: 80px auto;
    background: #ffffff;
    border-radius: 20px;
    padding: 32px 32px 28px;
    box-shadow: 0 35px 80px rgba(7, 31, 36, 0.25);
}

.inst-details-close {
    position: absolute;
    top: 16px;
    right: 16px;
    border: none;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #425259;
}

.inst-details-header h3 {
    margin: 0 0 6px;
    font-size: 20px;
    color: #071f24;
}

.inst-details-header p {
    margin: 0 0 16px;
    color: #5a6a70;
}

.inst-details-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.inst-details-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(13, 53, 62, 0.1);
    background: #f9fbfb;
    font-weight: 600;
    color: #0d353e;
}

.inst-details-list li::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    flex-shrink: 0;
}

.inst-details-footer {
    text-align: right;
}

.inst-details-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #0d353e 0%, #128f9d 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(15, 56, 61, 0.18);
}

.inst-details-btn:hover {
    background: linear-gradient(135deg, #08242a 0%, #0f6b78 100%);
}

.inst-expert-modal {
    position: fixed;
    inset: 0;
    z-index: 11500;
    display: none;
}

.inst-expert-overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 31, 36, 0.75);
    backdrop-filter: blur(5px);
}

.inst-expert-content {
    position: relative;
    max-width: 520px;
    margin: 80px auto;
    background: #ffffff;
    border-radius: 24px;
    padding: 34px 34px 28px;
    box-shadow: 0 40px 90px rgba(7, 31, 36, 0.3);
}

@media (max-width: 640px) {
    .inst-expert-content {
        margin: 40px 16px;
        padding: 28px 22px 24px;
    }
}

.inst-expert-close {
    position: absolute;
    top: 16px;
    right: 16px;
    border: none;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #5a6a70;
}

.inst-expert-header {
    margin-bottom: 18px;
}

.inst-expert-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #0f5e63;
    background: rgba(19, 160, 157, 0.12);
    border-radius: 999px;
    padding: 4px 12px;
}

.inst-expert-header h3 {
    margin: 12px 0 6px;
    font-size: 22px;
    color: #05272f;
}

.inst-expert-header p {
    margin: 0;
    color: #4a6167;
}

.inst-expert-benefits {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.inst-expert-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #0d353e;
    font-weight: 600;
}

.inst-expert-benefits svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #0f766e;
    margin-top: 2px;
}

.inst-expert-footer {
    text-align: center;
}

.inst-expert-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 26px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #0d353e 0%, #0f8b96 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 18px 35px rgba(15, 81, 83, 0.28);
}

.inst-ready-modal {
    position: fixed;
    inset: 0;
    z-index: 11400;
    display: none;
}

.inst-ready-overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 31, 36, 0.7);
    backdrop-filter: blur(4px);
}

.inst-ready-content {
    position: relative;
    max-width: 480px;
    margin: 80px auto;
    background: #ffffff;
    border-radius: 22px;
    padding: 32px 30px 26px;
    box-shadow: 0 35px 80px rgba(7, 31, 36, 0.25);
}

.inst-email-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 11390;
    display: none;
}

.inst-email-preview-overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 31, 36, 0.6);
    backdrop-filter: blur(4px);
}

.inst-email-preview-content {
    position: relative;
    max-width: 540px;
    margin: 70px auto;
    background: #ffffff;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 40px 80px rgba(7, 31, 36, 0.25);
}

@media (max-width: 620px) {
    .inst-email-preview-content {
        margin: 40px 16px;
        padding: 24px 18px;
    }
}

.inst-email-preview-close {
    position: absolute;
    top: 14px;
    right: 14px;
    border: none;
    background: transparent;
    font-size: 22px;
    color: #5a6a70;
    cursor: pointer;
}

.inst-email-preview-header {
    margin-bottom: 18px;
}

.inst-email-preview-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(15, 109, 129, 0.15);
    color: #0d5765;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.inst-email-preview-header h3 {
    margin: 12px 0 4px;
    font-size: 22px;
    color: #052731;
}

.inst-email-preview-header p {
    margin: 0;
    color: #4a6066;
}

.inst-email-preview-body label {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #5b7c85;
    margin-bottom: 6px;
}

.inst-email-preview-field {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid rgba(13, 53, 62, 0.15);
    border-radius: 12px;
    margin-bottom: 18px;
    justify-content: space-between;
}

.inst-email-preview-field span {
    font-weight: 600;
    color: #0d353e;
    word-break: break-word;
}

.inst-email-preview-copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(13, 53, 62, 0.2);
    border-radius: 999px;
    background: #fff;
    padding: 6px 12px;
    cursor: pointer;
}

.inst-email-preview-copy svg {
    width: 16px;
    height: 16px;
}

.inst-email-preview-message {
    border: 1px solid rgba(13, 53, 62, 0.15);
    border-radius: 14px;
    padding: 16px;
    background: #f8fbfb;
    max-height: 280px;
    overflow-y: auto;
    font-family: 'SF Mono', Menlo, Consolas, monospace;
    font-size: 13px;
    color: #0d353e;
    margin-bottom: 12px;
}

.inst-email-preview-footer {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.inst-email-preview-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(13, 53, 62, 0.2);
    background: #fff;
    color: #0d353e;
    font-weight: 600;
    cursor: pointer;
}

.inst-email-preview-btn svg {
    width: 18px;
    height: 18px;
}

.inst-email-preview-btn--primary {
    background: linear-gradient(135deg, #0d353e 0%, #128f9d 100%);
    color: #fff;
    border: none;
    box-shadow: 0 12px 30px rgba(15, 83, 92, 0.3);
}

@media (max-width: 640px) {
    .inst-ready-content {
        margin: 40px 16px;
        padding: 26px 20px 22px;
    }
}

.inst-ready-close {
    position: absolute;
    top: 14px;
    right: 14px;
    border: none;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #5a6a70;
}

.inst-ready-header h3 {
    margin: 0 0 6px;
    font-size: 21px;
    color: #05272f;
}

.inst-ready-header p {
    margin: 0 0 16px;
    color: #4a6066;
}

.inst-ready-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.inst-ready-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #0d353e;
    font-weight: 600;
}

.inst-ready-benefits svg {
    width: 18px;
    height: 18px;
    color: #0f766e;
    flex-shrink: 0;
    margin-top: 2px;
}

.inst-ready-footer {
    text-align: center;
}

.inst-ready-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 24px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #0d353e 0%, #108693 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 16px 30px rgba(15, 56, 61, 0.22);
}

.inst-ready-cta:hover {
    background: linear-gradient(135deg, #081f24 0%, #0d6570 100%);
}

.inst-expert-cta:hover {
    background: linear-gradient(135deg, #072127 0%, #0c6f77 100%);
}

.inst-message-preview-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.inst-message-preview-label svg {
    color: #9ca3af;
}

.inst-message-preview-generic {
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
}

.inst-preview-line {
    font-size: 12px;
    color: #6b7280;
    margin: 0 0 4px 0;
    font-style: italic;
    line-height: 1.4;
}

.inst-preview-line:last-child {
    margin-bottom: 0;
}

.inst-preview-fade {
    color: #9ca3af;
    opacity: 0.7;
}

.inst-message-preview-vs {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 12px 0;
}

.inst-message-preview-vs span {
    font-size: 11px;
    font-weight: 600;
    color: #0d353e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    background: linear-gradient(135deg, rgba(13, 53, 62, 0.08) 0%, rgba(13, 53, 62, 0.04) 100%);
    border-radius: 20px;
}

.inst-message-preview-smart {
    background: linear-gradient(135deg, rgba(13, 53, 62, 0.06) 0%, rgba(5, 150, 105, 0.06) 100%);
    border: 1px solid rgba(13, 53, 62, 0.15);
    border-radius: 8px;
    padding: 12px;
    min-height: 80px;
    position: relative;
}

.inst-preview-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #0d353e;
    font-size: 12px;
    font-weight: 500;
}

.inst-preview-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(13, 53, 62, 0.2);
    border-top-color: #0d353e;
    border-radius: 50%;
    animation: inst-spin 0.8s linear infinite;
}

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

.inst-smart-message-content {
    font-size: 12px;
    color: #374151;
    line-height: 1.5;
}

.inst-smart-message-content p {
    margin: 0 0 8px 0;
}

.inst-smart-message-content p:last-child {
    margin-bottom: 0;
}

.inst-smart-message-highlight {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.1) 0%, rgba(5, 150, 105, 0.05) 100%);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
    color: #059669;
}

.inst-smart-message-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    color: #059669;
    background: rgba(5, 150, 105, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    margin-top: 8px;
}

.inst-smart-message-badge svg {
    width: 10px;
    height: 10px;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .inst-likelihood-comparison {
        grid-template-columns: 1fr;
    }

    .inst-likelihood-option--with {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }

    .inst-score-value {
        font-size: 40px;
    }

    .inst-likelihood-header h3 {
        font-size: 20px;
    }

    .inst-product-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .inst-product-action-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   Pack Layout with Floating Sidebar
   ========================================================================== */

.inst-pack-layout {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 24px;
    align-items: start;
}

/* Floating Sidebar */
.inst-pack-sidebar {
    position: sticky;
    top: 24px;
}

.inst-pack-sidebar-inner {
    background: #ffffff;
    border: 1px solid rgba(13, 53, 62, 0.12);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(13, 53, 62, 0.08);
}

/* Sidebar Header */
.inst-pack-summary-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #ffffff;
    border-bottom: 1px solid rgba(13, 53, 62, 0.08);
}

.inst-pack-summary-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 53, 62, 0.06);
    border-radius: 8px;
    color: var(--senna-dark, #0D353E);
}

.inst-pack-summary-icon svg {
    width: 18px;
    height: 18px;
}

.inst-pack-summary-title {
    flex: 1;
}

.inst-pack-summary-title h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--senna-dark, #0D353E);
}

.inst-pack-count {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

/* Pack Items List */
.inst-pack-items {
    padding: 12px 16px;
    min-height: 80px;
    max-height: 200px;
    overflow-y: auto;
}

.inst-pack-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
}

.inst-pack-empty p {
    margin: 0;
    font-size: 13px;
    color: #9ca3af;
    text-align: center;
}

.inst-pack-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    margin-bottom: 8px;
    background: rgba(13, 53, 62, 0.04);
    border-radius: 8px;
    border: 1px solid rgba(13, 53, 62, 0.08);
}

.inst-pack-item:last-child {
    margin-bottom: 0;
}

.inst-pack-item-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.inst-pack-item-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--senna-dark, #0D353E);
    border-radius: 6px;
    flex-shrink: 0;
}

.inst-pack-item-icon svg {
    width: 12px;
    height: 12px;
    color: #ffffff;
}

.inst-pack-item-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--senna-dark, #0D353E);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inst-pack-item-remove {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.inst-pack-item-remove:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.inst-pack-item-remove svg {
    width: 14px;
    height: 14px;
}

/* Sidebar Footer with Download Button */
.inst-pack-sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(13, 53, 62, 0.08);
    background: #ffffff;
}

.inst-generate-pack-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: #ffffff;
    color: var(--senna-dark, #0D353E);
    border: 2px solid var(--senna-dark, #0D353E);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.inst-generate-pack-btn:hover:not(:disabled) {
    background: var(--senna-dark, #0D353E);
    color: #ffffff;
}

.inst-generate-pack-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.inst-generate-pack-btn svg {
    width: 16px;
    height: 16px;
}

/* Sidebar has items state */
.inst-pack-sidebar.has-items .inst-pack-sidebar-inner {
    border-color: var(--senna-dark, #0D353E);
    box-shadow: 0 4px 24px rgba(13, 53, 62, 0.15);
}

.inst-pack-sidebar.has-items .inst-generate-pack-btn {
    background: var(--senna-dark, #0D353E);
    color: #ffffff;
}

.inst-pack-sidebar.has-items .inst-generate-pack-btn:hover {
    background: #1a4a56;
    border-color: #1a4a56;
}

/* Responsive Sidebar */
@media (max-width: 900px) {
    .inst-pack-layout {
        grid-template-columns: 1fr;
    }

    .inst-pack-sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        z-index: 1000;
        padding: 0 16px 16px;
        background: transparent;
        transform: translateY(100%);
        transition: transform 0.3s ease;
    }

    .inst-pack-sidebar.has-items {
        transform: translateY(0);
    }

    .inst-pack-sidebar-inner {
        border-radius: 16px;
        box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.15);
    }

    .inst-pack-items {
        max-height: 120px;
    }
}

@media (max-width: 480px) {
    .inst-pack-sidebar {
        padding: 0 12px 12px;
    }

    .inst-pack-item {
        padding: 8px 10px;
    }

    .inst-pack-item-name {
        font-size: 11px;
    }
}

/* ==========================================================================
   Recruiter Card Actions & Add to List Button
   ========================================================================== */

.inst-recruiter-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.inst-login-reveal-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px dashed rgba(13, 53, 62, 0.35);
    font-size: 13px;
    font-weight: 600;
    color: var(--senna-dark, #0D353E);
    background: rgba(13, 53, 62, 0.04);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.inst-login-reveal-btn:hover {
    background: rgba(13, 53, 62, 0.12);
}

.inst-login-reveal-btn--small {
    padding: 4px 10px;
    font-size: 12px;
}

.inst-login-reveal-btn--block {
    width: 100%;
    justify-content: center;
    margin-top: 12px;
}

.inst-outreach-login-cta {
    margin-top: 12px;
}

.inst-add-to-list-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #ffffff;
    color: var(--senna-dark, #0D353E);
    border: 2px solid var(--senna-dark, #0D353E);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.inst-add-to-list-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.inst-add-to-list-btn:hover {
    background: var(--senna-dark, #0D353E);
    color: #ffffff;
}

.inst-add-to-list-btn.is-added {
    background: var(--senna-dark, #0D353E);
    color: #ffffff;
    border-color: var(--senna-dark, #0D353E);
}

.inst-add-to-list-btn.is-added svg {
    display: none;
}

.inst-add-to-list-btn.is-added span::before {
    content: '✓ ';
}

/* Small variant for compact recruiter card */
.inst-add-to-list-btn--small {
    padding: 6px 10px;
    font-size: 0;
    border-radius: 6px;
}

.inst-add-to-list-btn--small svg {
    width: 18px;
    height: 18px;
}

.inst-add-to-list-btn--small span {
    display: none;
}

.inst-add-to-list-btn--small:hover {
    background: var(--senna-dark, #0D353E);
    color: #ffffff;
}

.inst-introduce-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #0D353E 0%, #166476 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.inst-introduce-btn svg {
    width: 16px;
    height: 16px;
}

.inst-introduce-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(13, 53, 62, 0.25);
}

.inst-introduce-btn--compact {
    padding: 6px 10px;
    font-size: 11px;
    border-radius: 8px;
    gap: 4px;
}

.inst-introduce-btn--compact svg {
    width: 14px;
    height: 14px;
}

.inst-introduce-btn--compact span {
    line-height: 1;
}

/* Small LinkedIn link variant */
.inst-recruiter-link--small {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.inst-recruiter-link--small svg {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   Express Interest - Recruiter Card Section
   ========================================================================== */

.inst-express-recruiter {
    margin-bottom: 24px;
}

.inst-recruiter-card--compact {
    padding: 28px;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid rgba(13, 53, 62, 0.08);
    box-shadow: 0 30px 70px rgba(6, 38, 49, 0.07);
    width: 100%;
}

.inst-recruiter-card--compact .inst-recruiter-avatar {
    width: 52px;
    height: 52px;
    font-size: 20px;
}

.inst-recruiter-compact-layout {
    display: flex;
    align-items: stretch;
    gap: 28px;
}

.inst-recruiter-compact-main {
    flex: 1 1 60%;
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.inst-recruiter-compact-side {
    flex: 0 0 320px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.inst-recruiter-compact-id {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.inst-recruiter-compact-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.inst-recruiter-compact-text .inst-recruiter-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #5b7c85;
}

.inst-recruiter-compact-text .inst-recruiter-name {
    margin: 0;
    font-size: 20px;
    color: #0d353e;
}

.inst-recruiter-compact-text .inst-recruiter-meta {
    margin: 0;
    font-size: 13px;
    color: #5b7c85;
}

.inst-recruiter-compact-highlight {
    background: linear-gradient(135deg, #0b3c45, #0f6d81);
    color: #e8f6fb;
    padding: 18px 22px;
    border-radius: 22px;
}

.inst-recruiter-compact-highlight span {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

.inst-recruiter-compact-highlight strong {
    display: block;
    font-size: 24px;
    margin: 4px 0;
}

.inst-recruiter-compact-highlight p {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.inst-recruiter-compact-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.inst-recruiter-compact-meta li {
    border: 1px solid rgba(13, 53, 62, 0.09);
    border-radius: 16px;
    padding: 12px 16px;
    background: #f6fafb;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.inst-recruiter-compact-meta span {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #5b7c85;
}

.inst-recruiter-compact-meta strong {
    font-size: 15px;
    color: #0d353e;
    font-weight: 600;
}


.inst-recruiter-compact-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(13, 53, 62, 0.04);
    border: 1px solid rgba(13, 53, 62, 0.08);
    border-radius: 18px;
    padding: 16px;
}

.inst-recruiter-compact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.inst-recruiter-compact-footnote {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.inst-recruiter-card--compact .inst-intro-cta-note--inline {
    flex: 1 1 240px;
    margin: 0;
}

@media (max-width: 768px) {
    .inst-recruiter-compact-layout {
        flex-direction: column;
    }

    .inst-recruiter-compact-side {
        flex: 1 1 auto;
    }
}

@media (max-width: 520px) {
    .inst-recruiter-compact-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .inst-recruiter-compact-actions {
        padding: 14px;
    }
}
}

/* ==========================================================================
   Smart Recruiter Outreach Upsell Card
   ========================================================================== */

.inst-upsell-card--outreach .inst-upsell-card-inner {
    background: linear-gradient(135deg, rgba(13, 53, 62, 0.02) 0%, rgba(13, 53, 62, 0.05) 100%);
    border-color: rgba(13, 53, 62, 0.15);
}

.inst-upsell-card--outreach:hover .inst-upsell-card-inner {
    border-color: var(--senna-dark, #0D353E);
    background: linear-gradient(135deg, rgba(13, 53, 62, 0.04) 0%, rgba(13, 53, 62, 0.08) 100%);
}

.inst-upsell-card--outreach .inst-upsell-icon {
    background: rgba(13, 53, 62, 0.1);
    color: var(--senna-dark, #0D353E);
}

.inst-upsell-card--outreach.is-selected .inst-upsell-card-inner {
    background: linear-gradient(135deg, rgba(13, 53, 62, 0.08) 0%, rgba(13, 53, 62, 0.12) 100%);
    border-color: var(--senna-dark, #0D353E);
}

.inst-upsell-card--outreach.is-selected .inst-upsell-icon {
    background: var(--senna-dark, #0D353E);
    color: #ffffff;
}

.inst-upsell-card--outreach.is-selected .inst-upsell-check {
    background: var(--senna-dark, #0D353E);
}

/* Responsive adjustments for recruiter actions */
@media (max-width: 640px) {
    .inst-recruiter-card {
        flex-wrap: wrap;
        gap: 12px;
    }

    .inst-recruiter-actions {
        width: 100%;
        justify-content: flex-end;
        padding-top: 8px;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
    }

    .inst-add-to-list-btn {
        flex: 1;
        justify-content: center;
    }

    .inst-add-to-list-btn--small {
        flex: 0;
    }
}

@media (max-width: 480px) {
    .inst-recruiter-card--compact {
        padding: 12px;
    }

    .inst-recruiter-card--compact .inst-recruiter-avatar {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */

.inst-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 12px 24px;
    background: var(--senna-dark, #0D353E);
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.inst-toast.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

.inst-toast--success {
    background: var(--senna-dark, #0D353E);
}

.inst-toast--error {
    background: #dc2626;
}

@media (max-width: 480px) {
    .inst-toast {
        left: 16px;
        right: 16px;
        transform: translateX(0) translateY(100px);
        text-align: center;
    }

    .inst-toast.is-visible {
        transform: translateX(0) translateY(0);
    }
}

/* ==========================================================================
   Download Pack Modal (Membership Upsell)
   ========================================================================== */

.inst-pack-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.inst-pack-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 53, 62, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.inst-pack-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: packModalSlideIn 0.3s ease;
}

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

.inst-pack-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 53, 62, 0.06);
    border: none;
    border-radius: 8px;
    font-size: 20px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s ease;
    z-index: 1;
}

.inst-pack-modal-close:hover {
    background: rgba(13, 53, 62, 0.12);
    color: var(--senna-dark, #0D353E);
}

/* Modal Header */
.inst-pack-modal-header {
    text-align: center;
    padding: 32px 32px 24px;
    border-bottom: 1px solid rgba(13, 53, 62, 0.08);
}

.inst-pack-modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(13, 53, 62, 0.08) 0%, rgba(13, 53, 62, 0.15) 100%);
    border-radius: 16px;
    color: var(--senna-dark, #0D353E);
}

.inst-pack-modal-icon svg {
    width: 32px;
    height: 32px;
}

.inst-pack-modal-header h3 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    color: var(--senna-dark, #0D353E);
}

.inst-pack-modal-header p {
    margin: 0;
    font-size: 15px;
    color: #6b7280;
}

.inst-pack-modal-header strong {
    color: var(--senna-dark, #0D353E);
}

/* Pack Items Summary */
.inst-pack-modal-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px 32px;
    background: rgba(13, 53, 62, 0.03);
    border-bottom: 1px solid rgba(13, 53, 62, 0.08);
}

.inst-pack-modal-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #ffffff;
    border: 1px solid rgba(13, 53, 62, 0.12);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--senna-dark, #0D353E);
}

.inst-pack-modal-item svg {
    width: 18px;
    height: 18px;
    color: var(--senna-dark, #0D353E);
}

/* Benefits */
.inst-pack-modal-benefits {
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.inst-pack-benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #374151;
}

.inst-pack-benefit svg {
    width: 20px;
    height: 20px;
    color: #10b981;
    flex-shrink: 0;
}

.inst-pack-benefit span {
    flex: 1;
}

/* Social Proof */
.inst-pack-modal-social {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 32px;
    background: linear-gradient(135deg, rgba(13, 53, 62, 0.04) 0%, rgba(13, 53, 62, 0.08) 100%);
    border-top: 1px solid rgba(13, 53, 62, 0.08);
}

.inst-pack-social-avatars {
    display: flex;
    margin-left: 8px;
}

.inst-pack-avatar {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--senna-dark, #0D353E);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 50%;
    border: 2px solid #ffffff;
    margin-left: -10px;
}

.inst-pack-avatar:first-child {
    margin-left: 0;
}

.inst-pack-avatar:nth-child(1) { background: #0D353E; }
.inst-pack-avatar:nth-child(2) { background: #1a4a56; }
.inst-pack-avatar:nth-child(3) { background: #2d5f6b; }
.inst-pack-avatar:nth-child(4) { background: #6b7280; font-size: 14px; }

.inst-pack-modal-social p {
    margin: 0;
    font-size: 13px;
    color: #4b5563;
    flex: 1;
}

.inst-pack-modal-social strong {
    color: var(--senna-dark, #0D353E);
}

/* CTA Actions */
.inst-pack-modal-actions {
    padding: 24px 32px 32px;
    text-align: center;
}

.inst-pack-modal-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 32px;
    background: var(--senna-dark, #0D353E);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.inst-pack-modal-cta:hover {
    background: #1a4a56;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 53, 62, 0.3);
}

.inst-pack-modal-cta svg {
    width: 20px;
    height: 20px;
}

.inst-pack-modal-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 16px 0 0;
    font-size: 13px;
    color: #9ca3af;
}

.inst-pack-modal-note svg {
    width: 14px;
    height: 14px;
}

/* Responsive */
@media (max-width: 540px) {
    .inst-pack-modal {
        padding: 16px;
    }

    .inst-pack-modal-content {
        border-radius: 12px;
    }

    .inst-pack-modal-header {
        padding: 24px 20px 20px;
    }

    .inst-pack-modal-header h3 {
        font-size: 20px;
    }

    .inst-pack-modal-icon {
        width: 56px;
        height: 56px;
    }

    .inst-pack-modal-icon svg {
        width: 28px;
        height: 28px;
    }

    .inst-pack-modal-items {
        padding: 16px 20px;
    }

    .inst-pack-modal-benefits {
        padding: 20px;
    }

    .inst-pack-modal-social {
        padding: 16px 20px;
        flex-direction: column;
        text-align: center;
    }

    .inst-pack-social-avatars {
        margin-left: 0;
    }

    .inst-pack-modal-actions {
        padding: 20px;
    }

    .inst-pack-modal-cta {
        padding: 14px 24px;
        font-size: 15px;
    }
}

/* ==========================================================================
   CRM Explainer Modal (Add to List)
   ========================================================================== */

.inst-crm-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.inst-crm-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 53, 62, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.inst-crm-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: crmModalSlideIn 0.3s ease;
}

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

.inst-crm-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 53, 62, 0.06);
    border: none;
    border-radius: 8px;
    font-size: 20px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s ease;
    z-index: 1;
}

.inst-crm-modal-close:hover {
    background: rgba(13, 53, 62, 0.12);
    color: var(--senna-dark, #0D353E);
}

/* Modal Header */
.inst-crm-modal-header {
    text-align: center;
    padding: 32px 32px 24px;
    border-bottom: 1px solid rgba(13, 53, 62, 0.08);
}

.inst-crm-modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(13, 53, 62, 0.08) 0%, rgba(13, 53, 62, 0.15) 100%);
    border-radius: 16px;
    color: var(--senna-dark, #0D353E);
}

.inst-crm-modal-icon svg {
    width: 32px;
    height: 32px;
}

.inst-crm-modal-header h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    color: var(--senna-dark, #0D353E);
}

.inst-crm-modal-header p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

.inst-crm-modal-detail {
    margin-top: 8px;
    font-size: 13px;
    color: rgba(13, 53, 62, 0.8);
}

.inst-crm-modal-header strong {
    color: var(--senna-dark, #0D353E);
}

/* Features List */
.inst-crm-modal-features {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.inst-crm-feature {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.inst-crm-feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 53, 62, 0.06);
    border-radius: 10px;
    color: var(--senna-dark, #0D353E);
    flex-shrink: 0;
}

.inst-crm-feature-icon svg {
    width: 20px;
    height: 20px;
}

.inst-crm-feature-text {
    flex: 1;
}

.inst-crm-feature-text h4 {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--senna-dark, #0D353E);
}

.inst-crm-feature-text p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

.inst-intro-preview {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    border-bottom: 1px solid rgba(13, 53, 62, 0.08);
}

.inst-intro-preview-message h4,
.inst-intro-preview-side h4,
.inst-intro-faq h4 {
    margin: 0 0 8px;
    font-size: 15px;
    color: var(--senna-dark, #0D353E);
}

.inst-intro-preview-message pre {
    margin: 0;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.5;
    color: #374151;
    background: rgba(13, 53, 62, 0.04);
    border: 1px solid rgba(13, 53, 62, 0.08);
    border-radius: 10px;
    padding: 16px;
    white-space: pre-wrap;
}

.inst-intro-preview-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.inst-intro-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(13, 53, 62, 0.06);
    border-radius: 10px;
    padding: 12px 16px;
}

.inst-intro-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--senna-dark, #0D353E);
    line-height: 1;
}

.inst-intro-stat-label {
    font-size: 12px;
    color: var(--senna-text-muted, #5B7C85);
}

.inst-intro-reasons {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: #374151;
}

.inst-intro-reasons li::before {
    content: '•';
    color: var(--senna-dark, #0D353E);
    margin-right: 6px;
}

.inst-intro-faq {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(13, 53, 62, 0.08);
}

.inst-intro-faq ul {
    list-style: disc;
    margin: 0;
    padding-left: 20px;
    color: #374151;
    font-size: 13px;
    line-height: 1.4;
}

.inst-crm-modal-price-note {
    font-size: 12px;
    color: var(--senna-text-muted, #5B7C85);
    text-align: center;
    margin-top: 8px;
}

.inst-crm-modal-price-note a {
    color: var(--senna-dark, #0D353E);
    font-weight: 600;
}

/* Social Proof Stat */
.inst-crm-modal-social {
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(13, 53, 62, 0.04) 0%, rgba(13, 53, 62, 0.08) 100%);
    border-top: 1px solid rgba(13, 53, 62, 0.08);
    border-bottom: 1px solid rgba(13, 53, 62, 0.08);
}

.inst-crm-social-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.inst-crm-stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--senna-dark, #0D353E);
}

.inst-crm-stat-label {
    font-size: 13px;
    color: #4b5563;
    max-width: 180px;
}

/* CTA Actions */
.inst-crm-modal-actions {
    padding: 24px;
    text-align: center;
}

.inst-crm-modal-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 28px;
    background: var(--senna-dark, #0D353E);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.inst-crm-modal-cta:hover {
    background: #1a4a56;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 53, 62, 0.3);
}

.inst-crm-modal-cta svg {
    width: 18px;
    height: 18px;
}

.inst-crm-modal-note {
    margin: 14px 0 0;
    font-size: 12px;
    color: #9ca3af;
}

/* Responsive */
@media (max-width: 480px) {
    .inst-crm-modal {
        padding: 16px;
    }

    .inst-crm-modal-content {
        border-radius: 12px;
    }

    .inst-crm-modal-header {
        padding: 24px 20px 20px;
    }

    .inst-crm-modal-header h3 {
        font-size: 18px;
    }

    .inst-crm-modal-icon {
        width: 56px;
        height: 56px;
    }

    .inst-crm-modal-icon svg {
        width: 28px;
        height: 28px;
    }

    .inst-crm-modal-features {
        padding: 20px;
    }

    .inst-crm-feature-icon {
        width: 36px;
        height: 36px;
    }

    .inst-crm-feature-icon svg {
        width: 18px;
        height: 18px;
    }

    .inst-crm-modal-social {
        padding: 16px 20px;
    }

    .inst-crm-stat-number {
        font-size: 24px;
    }

    .inst-crm-modal-actions {
        padding: 20px;
    }

    .inst-crm-modal-cta {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* ==========================================================================
   SIMILAR POSTS TAB STYLES
   ========================================================================== */

#instSimilarPostsRegion {
    padding: 24px;
}

.inst-similar-posts-header {
    margin-bottom: 24px;
}

.inst-similar-posts-header h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--inst-text-primary, #0D353E);
    margin: 0 0 6px;
}

.inst-similar-posts-header p {
    font-size: 14px;
    color: var(--inst-text-secondary, #5B7C85);
    margin: 0;
}

.inst-similar-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.inst-similar-post-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid rgba(13, 53, 62, 0.1);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.inst-similar-post-card:hover {
    border-color: var(--senna-dark, #0D353E);
    box-shadow: 0 4px 12px rgba(13, 53, 62, 0.15);
    transform: translateY(-2px);
}

.inst-similar-post-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.inst-similar-post-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--inst-text-primary, #0D353E);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.inst-similar-post-company {
    font-size: 13px;
    color: var(--inst-text-secondary, #5B7C85);
}

.inst-similar-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.inst-similar-post-location,
.inst-similar-post-salary {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--inst-text-secondary, #5B7C85);
}

.inst-similar-post-location svg,
.inst-similar-post-salary svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.inst-similar-post-recruiter {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(13, 53, 62, 0.08);
    margin-top: auto;
}

.inst-similar-recruiter-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--senna-dark, #0D353E) 0%, #1A5A69 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
    overflow: hidden;
}

.inst-similar-recruiter-avatar--has-image {
    background: transparent;
}

.inst-similar-recruiter-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Similar Post Badges (Industry & Post Type) */
.inst-similar-post-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.inst-similar-post-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    white-space: nowrap;
}

.inst-similar-post-badge--type {
    background: rgba(13, 53, 62, 0.1);
    color: var(--senna-dark, #0D353E);
}

.inst-similar-post-badge--industry {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.inst-similar-recruiter-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.inst-similar-recruiter-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--inst-text-primary, #0D353E);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inst-similar-recruiter-company {
    font-size: 12px;
    color: var(--inst-text-secondary, #5B7C85);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Empty State */
.inst-similar-posts-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 48px 24px;
    text-align: center;
    background: rgba(13, 53, 62, 0.02);
    border-radius: 12px;
}

.inst-similar-posts-empty svg {
    width: 48px;
    height: 48px;
    color: var(--inst-text-secondary, #5B7C85);
    opacity: 0.5;
}

.inst-similar-posts-empty p {
    font-size: 16px;
    font-weight: 500;
    color: var(--inst-text-secondary, #5B7C85);
    margin: 0;
}

.inst-similar-posts-empty span {
    font-size: 14px;
    color: var(--inst-text-secondary, #5B7C85);
    opacity: 0.7;
}

/* ==========================================================================
   SIMILAR POSTS - RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    #instSimilarPostsRegion {
        padding: 20px 16px;
    }

    .inst-similar-posts-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .inst-similar-post-card {
        padding: 16px;
    }

    .inst-similar-posts-header h2 {
        font-size: 18px;
    }

    .inst-similar-post-title {
        font-size: 15px;
    }

    .inst-similar-post-meta {
        gap: 10px;
    }

    .inst-similar-post-location,
    .inst-similar-post-salary {
        font-size: 12px;
    }

    .inst-similar-posts-empty {
        padding: 32px 16px;
    }
}

/* ==========================================================================
   SIMILAR POSTS - SELECTION & INTERACTION STYLES
   ========================================================================== */

/* Updated card for selection */
.inst-similar-post-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    padding-left: 48px;
    background: #ffffff;
    border: 2px solid rgba(13, 53, 62, 0.1);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.inst-similar-post-card.is-selected {
    border-color: var(--senna-dark, #0D353E);
    background: rgba(13, 53, 62, 0.03);
}

.inst-similar-post-link {
    text-decoration: none;
    color: inherit;
}

/* Selection Checkbox */
.inst-similar-post-checkbox {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.inst-similar-post-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.inst-similar-checkbox-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 2px solid rgba(13, 53, 62, 0.25);
    border-radius: 6px;
    background: #ffffff;
    transition: all 0.15s ease;
}

.inst-similar-checkbox-mark svg {
    width: 14px;
    height: 14px;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.15s ease;
}

.inst-similar-post-checkbox input:checked + .inst-similar-checkbox-mark {
    background: var(--senna-dark, #0D353E);
    border-color: var(--senna-dark, #0D353E);
}

.inst-similar-post-checkbox input:checked + .inst-similar-checkbox-mark svg {
    opacity: 1;
    transform: scale(1);
    color: #ffffff;
}

.inst-similar-post-checkbox:hover .inst-similar-checkbox-mark {
    border-color: var(--senna-dark, #0D353E);
}

/* Add to List Button in Card */
.inst-similar-add-to-list {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 53, 62, 0.06);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-left: auto;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.inst-similar-add-to-list svg {
    width: 16px;
    height: 16px;
    color: var(--inst-text-secondary, #5B7C85);
}

.inst-similar-add-to-list:hover {
    background: var(--senna-dark, #0D353E);
}

.inst-similar-add-to-list:hover svg {
    color: #ffffff;
}

.inst-similar-add-to-list.is-added {
    background: #059669;
}

.inst-similar-add-to-list.is-added svg {
    color: #ffffff;
}

/* Header with Select All */
.inst-similar-posts-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.inst-similar-posts-header-left h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--inst-text-primary, #0D353E);
    margin: 0 0 6px;
}

.inst-similar-posts-header-left p {
    font-size: 14px;
    color: var(--inst-text-secondary, #5B7C85);
    margin: 0;
}

.inst-similar-select-all {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--inst-text-secondary, #5B7C85);
    padding: 8px 12px;
    background: rgba(13, 53, 62, 0.04);
    border-radius: 8px;
    transition: all 0.15s ease;
}

.inst-similar-select-all:hover {
    background: rgba(13, 53, 62, 0.08);
}

.inst-similar-select-all input {
    accent-color: var(--senna-dark, #0D353E);
}

/* Bulk Actions Bar */
.inst-similar-bulk-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: linear-gradient(135deg, rgba(13, 53, 62, 0.08) 0%, rgba(13, 53, 62, 0.04) 100%);
    border: 1px solid rgba(13, 53, 62, 0.2);
    border-radius: 12px;
    margin-bottom: 20px;
}

.inst-similar-bulk-info {
    font-size: 14px;
    color: var(--inst-text-primary, #0D353E);
}

.inst-similar-bulk-count {
    font-weight: 600;
    color: var(--senna-dark, #0D353E);
}

.inst-similar-bulk-actions {
    display: flex;
    gap: 10px;
}

.inst-similar-bulk-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.inst-similar-bulk-btn svg {
    width: 16px;
    height: 16px;
}

.inst-similar-bulk-btn--list {
    background: #ffffff;
    color: var(--inst-text-primary, #0D353E);
    border: 1px solid rgba(13, 53, 62, 0.15);
}

.inst-similar-bulk-btn--list:hover {
    background: rgba(13, 53, 62, 0.04);
}

.inst-similar-bulk-btn--outreach {
    background: var(--senna-dark, #0D353E);
    color: #ffffff;
}

.inst-similar-bulk-btn--outreach:hover {
    background: #07242B;
}

/* Load More Button */
.inst-similar-load-more-container {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.inst-similar-load-more {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: #ffffff;
    border: 2px solid rgba(13, 53, 62, 0.15);
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    color: var(--inst-text-primary, #0D353E);
    cursor: pointer;
    transition: all 0.15s ease;
}

.inst-similar-load-more:hover {
    border-color: var(--senna-dark, #0D353E);
    color: var(--senna-dark, #0D353E);
}

.inst-similar-load-count {
    font-size: 13px;
    color: var(--inst-text-secondary, #5B7C85);
}

/* ==========================================================================
   SIMILAR POSTS - PREMIUM/PREVIEW STYLES
   ========================================================================== */

/* Preview grid for non-premium users */
.inst-similar-posts-grid--preview {
    position: relative;
}

/* Blurred cards for non-premium users */
.inst-similar-post-card--blurred {
    filter: blur(4px);
    pointer-events: none;
    user-select: none;
}

.inst-similar-post-card--blurred::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 12px;
}

/* Disabled link for non-premium */
.inst-similar-post-link--disabled {
    cursor: default;
}

/* Cards without checkboxes (non-premium) - fallback for all browsers */
.inst-similar-posts-grid--preview .inst-similar-post-card {
    padding-left: 20px;
}

/* Modern browsers: cards with checkboxes get extra left padding */
@supports selector(:has(*)) {
    .inst-similar-post-card:has(.inst-similar-post-checkbox) {
        padding-left: 48px;
    }
    .inst-similar-posts-grid--preview .inst-similar-post-card {
        padding-left: 20px;
    }
}

/* Upgrade/Sign Up CTA Overlay */
.inst-similar-posts-upgrade {
    margin-top: 32px;
    padding: 40px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 16px;
    border: 2px solid rgba(13, 53, 62, 0.1);
    text-align: center;
}

.inst-similar-posts-upgrade-content {
    max-width: 480px;
    margin: 0 auto;
}

.inst-similar-posts-upgrade-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--senna-dark, #0D353E) 0%, #1a4a56 100%);
    border-radius: 16px;
}

.inst-similar-posts-upgrade-icon svg {
    width: 32px;
    height: 32px;
    color: #ffffff;
}

.inst-similar-posts-upgrade h3 {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 700;
    color: var(--senna-dark, #0D353E);
}

.inst-similar-posts-upgrade p {
    margin: 0 0 24px;
    font-size: 15px;
    color: var(--senna-text-muted, #5B7C85);
    line-height: 1.6;
}

.inst-similar-posts-upgrade-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--senna-dark, #0D353E) 0%, #1a4a56 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.inst-similar-posts-upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 53, 62, 0.25);
}

.inst-similar-posts-upgrade-btn svg {
    width: 18px;
    height: 18px;
}

.inst-similar-posts-login {
    margin: 16px 0 0;
    font-size: 14px;
    color: var(--senna-text-muted, #5B7C85);
}

.inst-similar-posts-login a {
    color: var(--senna-dark, #0D353E);
    text-decoration: none;
    font-weight: 500;
}

.inst-similar-posts-login a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   SIMILAR POSTS - REQUEST SCAN FORM
   ========================================================================== */

.inst-similar-posts-empty {
    padding: 48px 32px;
    text-align: center;
    background: #ffffff;
    border-radius: 16px;
    border: 2px solid rgba(13, 53, 62, 0.1);
}

.inst-similar-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 50%;
}

.inst-similar-empty-icon svg {
    width: 36px;
    height: 36px;
    color: var(--senna-dark, #0D353E);
}

.inst-similar-posts-empty h3 {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--senna-dark, #0D353E);
}

.inst-similar-posts-empty > p {
    margin: 0 0 32px;
    font-size: 15px;
    color: var(--senna-text-muted, #5B7C85);
    line-height: 1.6;
}

.inst-similar-empty-cta {
    margin: 0;
}

/* Request Scan Form */
.inst-scan-request-form {
    max-width: 480px;
    margin: 0 auto;
    text-align: left;
}

.inst-scan-request-field {
    margin-bottom: 20px;
}

.inst-scan-request-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--senna-dark, #0D353E);
}

.inst-scan-request-field input,
.inst-scan-request-field textarea {
    width: 100%;
    padding: 12px 16px;
    background: #ffffff;
    border: 2px solid rgba(13, 53, 62, 0.15);
    border-radius: 10px;
    font-size: 15px;
    color: var(--senna-dark, #0D353E);
    transition: border-color 0.15s ease;
    box-sizing: border-box;
}

.inst-scan-request-field input:focus,
.inst-scan-request-field textarea:focus {
    outline: none;
    border-color: var(--senna-dark, #0D353E);
}

.inst-scan-request-field input::placeholder,
.inst-scan-request-field textarea::placeholder {
    color: var(--senna-text-muted, #5B7C85);
}

.inst-scan-request-field textarea {
    resize: vertical;
    min-height: 80px;
}

.inst-scan-request-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--senna-dark, #0D353E) 0%, #1a4a56 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.inst-scan-request-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 53, 62, 0.25);
}

.inst-scan-request-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.inst-scan-request-btn svg {
    width: 18px;
    height: 18px;
}

.inst-scan-request-note {
    margin: 16px 0 0;
    font-size: 13px;
    color: var(--senna-text-muted, #5B7C85);
    text-align: center;
    line-height: 1.5;
}

/* Scan Request Success State */
.inst-scan-request-success {
    padding: 32px;
    text-align: center;
}

.inst-scan-request-success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
}

.inst-scan-request-success-icon svg {
    width: 32px;
    height: 32px;
    color: #ffffff;
}

.inst-scan-request-success h4 {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--senna-dark, #0D353E);
}

.inst-scan-request-success p {
    margin: 0;
    font-size: 14px;
    color: var(--senna-text-muted, #5B7C85);
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .inst-similar-posts-upgrade {
        padding: 32px 24px;
    }

    .inst-similar-posts-upgrade h3 {
        font-size: 18px;
    }

    .inst-similar-posts-empty {
        padding: 32px 20px;
    }

    .inst-scan-request-form {
        padding: 0;
    }
}

/* ==========================================================================
   MEMBERSHIP MODAL STYLES
   ========================================================================== */

.inst-membership-modal,
.inst-create-list-modal,
.inst-bulk-outreach-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inst-membership-overlay,
.inst-create-list-overlay,
.inst-bulk-outreach-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 53, 62, 0.6);
    backdrop-filter: blur(4px);
}

.inst-membership-content,
.inst-create-list-content {
    position: relative;
    max-width: 440px;
    width: 90%;
    background: #ffffff;
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.inst-membership-close,
.inst-create-list-close,
.inst-bulk-outreach-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 53, 62, 0.06);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    color: var(--inst-text-secondary, #5B7C85);
}

.inst-membership-icon,
.inst-create-list-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(79, 70, 229, 0.05) 100%);
    border-radius: 16px;
}

.inst-membership-icon svg,
.inst-create-list-icon svg {
    width: 32px;
    height: 32px;
    color: var(--inst-accent, #0d353e);
}

.inst-membership-content h3,
.inst-create-list-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--inst-text-primary, #0D353E);
    margin: 0 0 8px;
}

.inst-membership-content > p,
.inst-create-list-content > p {
    font-size: 15px;
    color: var(--inst-text-secondary, #5B7C85);
    margin: 0 0 24px;
}

.inst-membership-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    text-align: left;
}

.inst-membership-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(13, 53, 62, 0.08);
    font-size: 14px;
    color: var(--inst-text-primary, #0D353E);
}

.inst-membership-benefits li:last-child {
    border-bottom: none;
}

.inst-membership-benefits svg {
    width: 20px;
    height: 20px;
    color: #059669;
    flex-shrink: 0;
}

.inst-membership-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    padding: 14px 32px;
    background: linear-gradient(135deg, #0d353e 0%, #128f9d 100%);
    color: #ffffff;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
}

.inst-membership-cta:hover {
    background: linear-gradient(135deg, #08242a 0%, #0f6b78 100%);
    transform: translateY(-1px);
}

.inst-membership-cta svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.inst-membership-cta:hover svg {
    transform: translateX(4px);
}

.inst-membership-login {
    margin-top: 16px;
    font-size: 14px;
    color: var(--inst-text-secondary, #5B7C85);
}

.inst-membership-login a {
    color: var(--inst-accent, #0d353e);
    font-weight: 500;
}

/* ==========================================================================
   CREATE LIST MODAL STYLES
   ========================================================================== */

.inst-create-list-form {
    margin-bottom: 20px;
}

.inst-create-list-field {
    margin-bottom: 16px;
    text-align: left;
}

.inst-create-list-field label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--inst-text-primary, #0D353E);
    margin-bottom: 8px;
}

.inst-create-list-field input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(13, 53, 62, 0.15);
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.15s ease;
}

.inst-create-list-field input:focus {
    outline: none;
    border-color: var(--inst-accent, #0d353e);
}

.inst-create-list-field input.is-error {
    border-color: #EF4444;
}

.inst-create-list-btn {
    width: 100%;
    padding: 14px;
    background: var(--inst-accent, #0d353e);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.inst-create-list-btn:hover {
    background: #4338CA;
}

.inst-existing-lists h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--inst-text-secondary, #5B7C85);
    margin: 0 0 12px;
    text-align: left;
}

.inst-existing-lists-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.inst-existing-list-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(13, 53, 62, 0.04);
    border: 1px solid rgba(13, 53, 62, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.inst-existing-list-btn:hover {
    border-color: var(--inst-accent, #0d353e);
    background: rgba(79, 70, 229, 0.04);
}

.inst-list-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--inst-text-primary, #0D353E);
}

.inst-list-count {
    font-size: 13px;
    color: var(--inst-text-secondary, #5B7C85);
}

/* ==========================================================================
   BULK OUTREACH MODAL STYLES
   ========================================================================== */

.inst-bulk-outreach-content {
    position: relative;
    max-width: 560px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.inst-bulk-outreach-header {
    text-align: center;
    margin-bottom: 24px;
}

.inst-bulk-outreach-header h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--inst-text-primary, #0D353E);
    margin: 0 0 8px;
}

.inst-bulk-outreach-header p {
    font-size: 15px;
    color: var(--inst-text-secondary, #5B7C85);
    margin: 0;
}

.inst-bulk-outreach-progress {
    margin-bottom: 24px;
}

.inst-bulk-progress-bar {
    height: 8px;
    background: rgba(13, 53, 62, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.inst-bulk-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--inst-accent, #0d353e), #059669);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.inst-bulk-progress-text {
    text-align: center;
    font-size: 14px;
    color: var(--inst-text-secondary, #5B7C85);
    margin-top: 10px;
}

.inst-bulk-outreach-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid rgba(13, 53, 62, 0.1);
    border-radius: 12px;
    margin-bottom: 20px;
}

.inst-bulk-recruiter-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(13, 53, 62, 0.08);
}

.inst-bulk-recruiter-item:last-child {
    border-bottom: none;
}

.inst-bulk-recruiter-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.inst-bulk-recruiter-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--inst-accent, #0d353e), #059669);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

.inst-bulk-recruiter-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.inst-bulk-recruiter-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--inst-text-primary, #0D353E);
}

.inst-bulk-recruiter-company,
.inst-bulk-recruiter-role {
    font-size: 12px;
    color: var(--inst-text-secondary, #5B7C85);
}

.inst-bulk-recruiter-status span {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.inst-status-pending {
    background: rgba(13, 53, 62, 0.08);
    color: var(--inst-text-secondary, #5B7C85);
}

.inst-status-generating {
    background: rgba(79, 70, 229, 0.1);
    color: var(--inst-accent, #0d353e);
}

.inst-status-done {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.inst-status-error {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

.inst-bulk-outreach-cv {
    padding: 20px;
    background: rgba(13, 53, 62, 0.03);
    border-radius: 12px;
    margin-bottom: 20px;
}

.inst-bulk-outreach-cv h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--inst-text-primary, #0D353E);
    margin: 0 0 6px;
}

.inst-bulk-outreach-cv p {
    font-size: 13px;
    color: var(--inst-text-secondary, #5B7C85);
    margin: 0 0 12px;
}

.inst-bulk-outreach-cv textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(13, 53, 62, 0.15);
    border-radius: 10px;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
}

.inst-bulk-outreach-cv textarea:focus {
    outline: none;
    border-color: var(--inst-accent, #0d353e);
}

.inst-bulk-save-cv {
    margin-top: 12px;
    padding: 10px 20px;
    background: #ffffff;
    border: 1px solid rgba(13, 53, 62, 0.2);
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.inst-bulk-save-cv:hover {
    background: rgba(13, 53, 62, 0.04);
}

.inst-bulk-outreach-actions {
    text-align: center;
}

.inst-bulk-generate-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--inst-accent, #0d353e);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.inst-bulk-generate-btn:hover {
    background: #4338CA;
}

.inst-bulk-generate-btn svg {
    width: 20px;
    height: 20px;
}

.inst-bulk-outreach-results {
    margin-top: 24px;
    border-top: 1px solid rgba(13, 53, 62, 0.1);
    padding-top: 24px;
}

.inst-bulk-result-item {
    padding: 16px;
    background: rgba(13, 53, 62, 0.03);
    border-radius: 12px;
    margin-bottom: 12px;
}

.inst-bulk-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.inst-bulk-result-header strong {
    font-size: 14px;
    color: var(--inst-text-primary, #0D353E);
}

.inst-bulk-result-actions {
    display: flex;
    gap: 8px;
}

.inst-copy-message-btn,
.inst-email-btn {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

.inst-copy-message-btn {
    background: #ffffff;
    border: 1px solid rgba(13, 53, 62, 0.2);
    color: var(--inst-text-primary, #0D353E);
}

.inst-email-btn {
    background: var(--inst-accent, #0d353e);
    border: none;
    color: #ffffff;
}

.inst-bulk-result-message {
    font-size: 14px;
    line-height: 1.6;
    color: var(--inst-text-primary, #0D353E);
    white-space: pre-wrap;
}

/* ==========================================================================
   TOAST NOTIFICATION STYLES
   ========================================================================== */

.inst-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 14px 24px;
    background: var(--inst-text-primary, #0D353E);
    color: #ffffff;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10000;
}

.inst-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.inst-toast--success {
    background: #059669;
}

.inst-toast--error {
    background: #EF4444;
}

/* Spinner */
.inst-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: inst-spin 0.8s linear infinite;
    display: inline-block;
}

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

/* ==========================================================================
   SIMILAR POSTS - RESPONSIVE UPDATES
   ========================================================================== */

@media (max-width: 768px) {
    .inst-similar-posts-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .inst-similar-bulk-bar {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .inst-similar-bulk-actions {
        width: 100%;
    }

    .inst-similar-bulk-btn {
        flex: 1;
        justify-content: center;
    }

    .inst-bulk-outreach-content,
    .inst-membership-content,
    .inst-create-list-content {
        padding: 24px;
        max-height: 90vh;
    }

    .inst-bulk-outreach-list {
        max-height: 150px;
    }
}

/* ==========================================================================
   ENHANCED SCAN REQUEST FORM STYLES
   ========================================================================== */

/* Can't Find Section - Trigger Button */
.inst-cant-find-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(13, 53, 62, 0.08);
}

.inst-cant-find-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(13, 53, 62, 0.04) 0%, rgba(13, 53, 62, 0.08) 100%);
    border: 1px solid rgba(13, 53, 62, 0.15);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.inst-cant-find-trigger:hover {
    background: linear-gradient(135deg, rgba(13, 53, 62, 0.08) 0%, rgba(13, 53, 62, 0.12) 100%);
    border-color: rgba(13, 53, 62, 0.25);
}

.inst-cant-find-trigger-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.inst-cant-find-trigger-content svg {
    width: 20px;
    height: 20px;
    color: var(--senna-dark, #0D353E);
}

.inst-cant-find-trigger-content span {
    font-size: 15px;
    font-weight: 600;
    color: var(--senna-dark, #0D353E);
}

.inst-cant-find-chevron {
    width: 20px;
    height: 20px;
    color: var(--senna-dark, #0D353E);
    transition: transform 0.3s ease;
}

.inst-cant-find-trigger.is-open .inst-cant-find-chevron {
    transform: rotate(180deg);
}

/* Can't Find Form Wrapper */
.inst-cant-find-form-wrapper {
    margin-top: 16px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid rgba(13, 53, 62, 0.1);
    border-radius: 12px;
    animation: inst-slide-down 0.3s ease;
}

@keyframes inst-slide-down {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.inst-scan-request-intro {
    text-align: center;
    margin-bottom: 24px;
}

.inst-scan-request-intro h4 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--senna-dark, #0D353E);
}

.inst-scan-request-intro p {
    margin: 0;
    font-size: 14px;
    color: var(--senna-text-muted, #5B7C85);
    line-height: 1.6;
}

/* Scan Request Form - Row Layout */
.inst-scan-request-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

@media (max-width: 600px) {
    .inst-scan-request-row {
        grid-template-columns: 1fr;
    }
}

.inst-scan-request-field--full {
    grid-column: 1 / -1;
    margin-bottom: 16px;
}

.inst-scan-request-field label .required {
    color: #EF4444;
    margin-left: 2px;
}

.inst-field-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--senna-text-muted, #5B7C85);
}

/* Select Dropdown Styling */
.inst-scan-request-field select {
    width: 100%;
    padding: 12px 16px;
    background: #ffffff;
    border: 2px solid rgba(13, 53, 62, 0.15);
    border-radius: 10px;
    font-size: 15px;
    color: var(--senna-dark, #0D353E);
    cursor: pointer;
    transition: border-color 0.15s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235B7C85' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.inst-scan-request-field select:focus {
    outline: none;
    border-color: var(--inst-accent, #0d353e);
}

/* Scan Request Actions */
.inst-scan-request-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.inst-scan-request-actions .inst-scan-request-btn {
    flex: 1;
}

.inst-scan-request-cancel {
    padding: 14px 24px;
    background: transparent;
    color: var(--senna-text-muted, #5B7C85);
    font-size: 15px;
    font-weight: 600;
    border: 2px solid rgba(13, 53, 62, 0.15);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.inst-scan-request-cancel:hover {
    background: rgba(13, 53, 62, 0.05);
    border-color: rgba(13, 53, 62, 0.25);
}

/* Scan Request Note with Icon */
.inst-scan-request-form .inst-scan-request-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.inst-scan-request-form .inst-scan-request-note svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

/* Scan Request Card (Full Form - No Posts Found) */
.inst-scan-request-card {
    margin-top: 32px;
    padding: 32px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(13, 53, 62, 0.08);
    border: 1px solid rgba(13, 53, 62, 0.08);
}

.inst-scan-request-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(13, 53, 62, 0.08);
}

.inst-scan-request-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    border-radius: 14px;
    flex-shrink: 0;
}

.inst-scan-request-card-icon svg {
    width: 26px;
    height: 26px;
    color: #059669;
}

.inst-scan-request-card-title h4 {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 700;
    color: var(--senna-dark, #0D353E);
}

.inst-scan-request-card-title p {
    margin: 0;
    font-size: 14px;
    color: var(--senna-text-muted, #5B7C85);
}

/* Large Button Variant */
.inst-scan-request-btn--large {
    padding: 18px 32px;
    font-size: 16px;
    margin-top: 24px;
}

/* Features List */
.inst-scan-request-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(13, 53, 62, 0.08);
}

.inst-scan-request-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--senna-dark, #0D353E);
}

.inst-scan-request-feature svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: #10B981;
}

@media (max-width: 600px) {
    .inst-scan-request-card {
        padding: 24px 20px;
    }

    .inst-scan-request-card-header {
        flex-direction: column;
        text-align: center;
    }

    .inst-scan-request-features {
        grid-template-columns: 1fr;
    }

    .inst-scan-request-actions {
        flex-direction: column;
    }
}

/* Empty Header Styling (No Posts) */
.inst-similar-empty-header {
    text-align: center;
    margin-bottom: 8px;
}

.inst-similar-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(13, 53, 62, 0.1) 0%, rgba(13, 53, 62, 0.05) 100%);
    border-radius: 16px;
}

.inst-similar-empty-icon svg {
    width: 32px;
    height: 32px;
    color: var(--senna-dark, #0D353E);
}

.inst-similar-empty-header h3 {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--senna-dark, #0D353E);
}

.inst-similar-empty-header p {
    margin: 0;
    font-size: 15px;
    color: var(--senna-text-muted, #5B7C85);
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto;
}
.inst-step-output-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.inst-step-action-btn--secondary {
    background: transparent;
    color: #0d353e;
    border: 1px solid rgba(13, 53, 62, 0.3);
}

.inst-step-action-btn--ghost {
    background: transparent;
    color: #0d353e;
    border: 1px dashed rgba(13, 53, 62, 0.3);
}
.inst-materials-section {
    border: 1px solid rgba(7, 31, 36, 0.1);
    border-radius: 18px;
    padding: 20px;
    margin: 28px 0;
    background: #f9fbfb;
}

.inst-materials-header h4 {
    margin: 0 0 6px;
    font-size: 18px;
}

.inst-materials-header p {
    margin: 0 0 16px;
    color: #5a6a70;
}

.inst-materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.inst-material-option {
    border: 1px solid rgba(13, 53, 62, 0.2);
    border-radius: 16px;
    padding: 16px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
}

.inst-material-option input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    margin-bottom: 6px;
}

.inst-material-option input[type="checkbox"] + .inst-material-label {
    margin-top: 4px;
}

.inst-material-option .inst-material-label {
    font-weight: 600;
    color: #0d353e;
}

.inst-material-option .inst-material-description {
    color: #5a6a70;
}

.inst-materials-cta {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.inst-materials-cta p {
    margin: 0;
    color: #5a6a70;
}

.inst-materials-cta a {
    color: #0d353e;
    font-weight: 600;
}
.inst-details-content {
    position: relative;
    max-width: 480px;
    margin: 80px auto;
    background: #ffffff;
    border-radius: 20px;
    padding: 32px 32px 28px;
    box-shadow: 0 35px 80px rgba(7, 31, 36, 0.25);
}
@media (max-width: 640px) {
    .inst-details-content {
        margin: 40px 16px;
        padding: 28px 20px 24px;
    }
}
