/* ==========================================================================
   Risel – AI Mock Interview Coach CSS
   Design System: Sora + Inter, Modern SaaS, #0066FF Primary
   ========================================================================== */

/* --- MAIN & HERO SECTION --- */
.iv-main {
    display: block;
    flex: none;
    min-height: 0;
    padding-bottom: 40px;
}

.iv-hero {
    padding: 10px 0 4px;
    text-align: center;
}

.iv-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 102, 255, 0.08);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 8px;
    border: 1px solid rgba(0, 102, 255, 0.15);
}

.iv-hero-title,
.iv-hero-heading {
    font-family: 'Sora', sans-serif;
    font-size: clamp(28px, 3.2vw, 38px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    color: var(--text-main);
    margin-bottom: 4px;
}

.iv-hero-accent {
    background: linear-gradient(135deg, var(--primary) 0%, #00b4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.iv-hero-desc {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
}

/* --- SETUP CARD --- */
.iv-setup-state {
    /* wrapper for setup phase */
}

.iv-setup-card {
    background: #ffffff;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 20px;
    padding: 28px 32px;
    max-width: 720px;
    margin: 24px auto 32px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
}

.iv-setup-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.iv-setup-card-title,
.iv-setup-title {
    font-family: 'Sora', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main, #0f172a);
    margin-bottom: 4px;
}

.iv-setup-card-sub,
.iv-setup-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    color: var(--text-secondary, #475569);
}

.iv-btn-sample {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary, #0066FF);
    background: rgba(0, 102, 255, 0.06);
    border: 1px solid rgba(0, 102, 255, 0.15);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    white-space: nowrap;
}

.iv-btn-sample:hover {
    background: rgba(0, 102, 255, 0.12);
    border-color: var(--primary, #0066FF);
}

/* --- FORM CONTROLS --- */
.iv-form-group {
    margin-bottom: 20px;
}

.iv-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main, #0f172a);
    margin-bottom: 7px;
}

.iv-input,
.iv-select,
.iv-textarea {
    width: 100%;
    padding: 11px 16px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-main, #0f172a);
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.iv-input:focus,
.iv-select:focus,
.iv-textarea:focus {
    border-color: var(--primary, #0066FF);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.12);
}

.iv-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 7px;
}

.iv-label-row .iv-label {
    margin-bottom: 0;
}

.iv-label-optional {
    font-size: 11.5px;
    color: var(--text-secondary);
    font-style: italic;
}

/* --- CHIP GROUPS --- */
.iv-chips-group,
.iv-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.iv-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 16px;
    border-radius: 100px;
    font-size: 12.5px;
    font-weight: 600;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    color: var(--text-secondary, #475569);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.iv-chip:hover {
    border-color: rgba(0, 102, 255, 0.3);
    color: var(--primary, #0066FF);
    background: #ffffff;
}

.iv-chip.active {
    background: rgba(0, 102, 255, 0.08);
    color: var(--primary, #0066FF);
    border-color: var(--primary, #0066FF);
}

.iv-chip:hover:not(.active) {
    border-color: var(--primary);
    color: var(--primary);
}

.iv-chip.active {
    background: var(--primary);
    color: white;
    border-color: transparent;
}

/* --- TEXT INPUT & TEXTAREA --- */
.iv-input,
.iv-text-input, 
.iv-textarea {
    width: 100%;
    padding: 8px 12px;
    font-family: inherit;
    font-size: 13px;
    color: var(--text-main);
    background: white;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.iv-text-input:focus, 
.iv-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 102, 255, 0.1);
}

/* --- PRIMARY BUTTON --- */
.iv-btn-primary {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 102, 255, 0.25);
    margin-top: 6px;
}

.iv-btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 102, 255, 0.35);
}

/* --- INTERVIEW STATE --- */
.iv-interview-state {
    padding-bottom: 40px;
}

/* --- INTERVIEW HEADER --- */
.iv-interview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.iv-interview-header-left, 
.iv-interview-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.iv-interview-title {
    font-family: 'Sora', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.iv-interview-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.iv-meta-dot {
    width: 4px;
    height: 4px;
    background: #cbd5e1;
    border-radius: 50%;
    display: inline-block;
}

.iv-progress-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.iv-btn-end {
    font-size: 11px;
    font-weight: 600;
    color: #ef4444;
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 6px;
    padding: 4px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.iv-btn-end:hover {
    background: rgba(239, 68, 68, 0.06);
}

/* --- PROGRESS BAR --- */
.iv-progress-bar-track {
    width: 100%;
    height: 3px;
    background: #e2e8f0;
    border-radius: 2px;
    margin-bottom: 20px;
    overflow: hidden;
}

.iv-progress-bar-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.4s ease;
    width: 0%;
}

/* --- WORKSPACE --- */
.iv-workspace {
    max-width: 780px;
    margin: 0 auto;
}

.iv-question-view {
    /* wrapper for active question phase */
}

/* --- QUESTION CARD --- */
.iv-question-card {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 24px 28px;
    margin-bottom: 16px;
}

.iv-question-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.iv-question-text {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.5;
    color: var(--text-main);
    margin: 0;
}

/* --- COMPOSER --- */
.iv-composer {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.iv-composer:focus-within {
    border-color: var(--primary);
}

.iv-composer-input {
    width: 100%;
    padding: 14px 16px;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text-main);
    resize: vertical;
    min-height: 100px;
    display: block;
    background: transparent;
}

.iv-composer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-top: 1px solid #f1f5f9;
    background: white;
}

.iv-word-count {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
}

.iv-composer-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* --- COMPOSER BUTTONS --- */
.iv-btn-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: transparent;
    border: 1px solid #e2e8f0;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.iv-btn-icon:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.iv-btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.iv-btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.iv-btn-submit:not(:disabled):hover {
    background: var(--primary-hover);
}

/* --- SKIP BUTTON --- */
.iv-btn-skip {
    display: block;
    margin: 10px auto 0;
    background: transparent;
    border: none;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 500;
    font-family: inherit;
    transition: all 0.2s ease;
}

.iv-btn-skip:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* --- LOADING VIEW --- */
.iv-loading-view {
    padding: 40px 0;
    text-align: center;
}

.iv-loading-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
}

.iv-spin-icon {
    animation: iv-spin 2s linear infinite;
}

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

.iv-skeleton-line {
    height: 12px;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    border-radius: 5px;
    margin: 0 auto 10px;
    animation: iv-shimmer 1.5s infinite;
}

.iv-sk-w60 { width: 60%; }
.iv-sk-w90 { width: 90%; }
.iv-sk-w75 { width: 75%; }

@keyframes iv-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* --- FEEDBACK VIEW --- */
.iv-feedback-view {
    animation: iv-fade 0.35s ease;
}

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

/* --- RECAP CARDS --- */
.iv-recap-card {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 10px;
}

.iv-recap-answer {
    border-left: 3px solid var(--primary);
}

.iv-recap-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.iv-recap-question, 
.iv-recap-text {
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-main);
    margin: 0;
}

/* --- AI FEEDBACK CARD --- */
.iv-feedback-card,
.iv-fb-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.iv-fb-card-header {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
}

.iv-fb-card-title {
    font-family: 'Sora', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main, #0f172a);
    margin: 0;
}

.iv-fb-card-header h3 {
    font-family: 'Sora', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

/* --- FEEDBACK SCORE --- */
.iv-fb-score-section {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 14px;
    margin-bottom: 18px;
    padding: 14px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.iv-fb-score-ring {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 4px solid var(--primary);
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.12);
    flex-shrink: 0;
}

.iv-fb-score-num {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.iv-fb-score-slash {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);
}

.iv-fb-score-pill,
.iv-fb-score-label {
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
}

/* Score Dynamic Colors (Used in both JS and CSS classes) */
.score-excellent { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.score-good { background: rgba(0, 102, 255, 0.12); color: var(--primary); }
.score-average { background: rgba(245, 158, 11, 0.12); color: #d97706; }
.score-poor { background: rgba(239, 68, 68, 0.12); color: #ef4444; }

/* --- METRICS GRID --- */
.iv-ratings-grid,
.iv-fb-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.iv-rating-item,
.iv-fb-metric {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 10px;
}

.iv-rating-row,
.iv-fb-metric-head {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.iv-fb-metric-val {
    font-weight: 700;
    color: var(--text-main);
}

.iv-rating-track,
.iv-fb-metric-track {
    width: 100%;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}

.iv-rating-fill,
.iv-fb-metric-fill {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.6s ease-out;
}

/* --- FEEDBACK BLOCKS --- */
.iv-fb-block {
    margin-bottom: 14px;
}

.iv-fb-sub-title,
.iv-fb-block-title {
    font-size: 12px;
    font-weight: 700;
    display: flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 6px;
}

.iv-text-green,
.iv-title-green { color: #10b981; }
.iv-text-amber,
.iv-title-amber { color: #d97706; }
.iv-title-blue { color: var(--primary); }

.iv-fb-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.iv-fb-list li {
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--text-main);
    padding-left: 14px;
    position: relative;
}

.iv-fb-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
}

.iv-list-green li::before { background: #10b981; }
.iv-list-amber li::before { background: #d97706; }
.iv-list-blue li::before { background: var(--primary); }

/* --- BETTER ANSWER BOX --- */
.iv-refined-box,
.iv-fb-better-box {
    background: rgba(0, 102, 255, 0.04);
    border: 1px solid rgba(0, 102, 255, 0.12);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--text-main);
    font-style: italic;
}

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

.iv-btn-copy-sm {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    color: var(--primary, #0066FF);
    background: rgba(0, 102, 255, 0.06);
    border: 1px solid rgba(0, 102, 255, 0.15);
    border-radius: 6px;
    cursor: pointer;
}

.iv-refined-text {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text-main, #0f172a);
}

/* --- FEEDBACK ACTIONS --- */
.iv-fb-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.iv-fb-actions .iv-btn-primary {
    width: auto;
    padding: 10px 24px;
    margin-top: 0;
}

.iv-btn-secondary,
.iv-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.iv-btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* --- VOICE OVERLAY --- */
.iv-voice-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.iv-voice-modal {
    background: white;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.iv-voice-status {
    font-family: 'Sora', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
}

.iv-voice-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.iv-voice-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    animation: iv-dot-pulse 1.4s ease-in-out infinite;
}

.iv-voice-dots span:nth-child(2) { animation-delay: 0.2s; }
.iv-voice-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes iv-dot-pulse {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

.iv-voice-hint {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.iv-voice-coming-soon {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 16px;
    font-style: italic;
}

/* --- RESULTS STATE --- */
.iv-results-state {
    padding: 20px 0 40px;
}

.iv-results-wrapper {
    max-width: 780px;
    margin: 0 auto;
}

/* --- RESULTS HEADER --- */
.iv-results-header {
    text-align: center;
    margin-bottom: 20px;
}

.iv-summary-title,
.iv-results-heading {
    font-family: 'Sora', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 4px;
}

.iv-summary-sub,
.iv-results-meta {
    font-size: 13px;
    color: var(--text-secondary);
}

/* --- RESULTS SCORE CARD --- */
.iv-sum-score-row,
.iv-results-score-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.iv-sum-score-circle,
.iv-results-score-ring {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: 4px solid var(--primary);
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.12);
    flex-shrink: 0;
}

.iv-sum-score-num,
.iv-results-score-num {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.iv-sum-score-denom {
    font-size: 14px;
    color: var(--text-secondary, #64748b);
}

.iv-sum-verdict-box,
.iv-results-score-info {
    flex: 1;
}

.iv-sum-verdict-title,
.iv-results-score-tag {
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 6px;
    display: inline-block;
}

.iv-sum-verdict-desc,
.iv-results-score-desc {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0;
}

/* --- RESULTS BREAKDOWN --- */
.iv-results-breakdown {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 16px;
}

.iv-results-section-title {
    font-family: 'Sora', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
    margin-top: 0;
}

.iv-results-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.iv-results-metric-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 10px;
}

.iv-rmc-head {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.iv-rmc-val {
    font-weight: 700;
    color: var(--text-main);
}

.iv-rmc-track {
    width: 100%;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}

.iv-rmc-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
    width: 0%;
}

/* --- RESULTS SUMMARY CARD --- */
.iv-summary-card,
.iv-results-summary-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 16px;
}

.iv-summary-header,
.iv-results-summary-header {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
}

.iv-results-summary-header h3 {
    font-family: 'Sora', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.iv-results-summary-text {
    font-size: 13px;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0;
}

/* --- RESULTS TWO-COL --- */
.iv-feedback-columns,
.iv-results-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.iv-fb-col,
.iv-results-col-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 16px 18px;
}

.iv-results-col-title {
    font-size: 12px;
    font-weight: 700;
    display: flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 8px;
    margin-top: 0;
}

.iv-results-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.iv-results-list li {
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--text-main);
    padding-left: 14px;
    position: relative;
}

.iv-results-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
}

.iv-results-recs {
    width: 100%;
    margin-bottom: 16px;
}

/* --- RESULTS ACTIONS --- */
.iv-sum-actions,
.iv-results-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.iv-results-actions button {
    width: auto;
}

.iv-results-actions .iv-btn-primary {
    margin-top: 0;
}

.iv-next-steps {
    margin-top: 24px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

/* --- FEATURES SECTION --- */
.iv-features-section {
    padding: 32px 0;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.iv-section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 24px;
}

.iv-section-header h2 {
    font-family: 'Sora', sans-serif;
    font-size: clamp(22px, 2.5vw, 30px);
    font-weight: 800;
    color: var(--text-main);
    margin-top: 0;
    margin-bottom: 8px;
}

.iv-section-header p {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0;
}

.iv-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.iv-feature-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 18px 16px;
    transition: transform 0.2s ease;
}

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

.iv-feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.iv-feature-icon.icon-blue { background: rgba(0, 102, 255, 0.1); color: var(--primary); }
.iv-feature-icon.icon-green { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.iv-feature-icon.icon-purple { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.iv-feature-icon.icon-red { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.iv-feature-icon.icon-yellow { background: rgba(245, 158, 11, 0.1); color: #d97706; }

.iv-feature-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 0;
    margin-bottom: 6px;
}

.iv-feature-card p {
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-secondary);
    margin: 0;
}

/* --- SEO SECTION --- */
.iv-seo-section {
    padding: 40px 0;
}

.iv-seo-card,
.iv-seo-box {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px 32px;
}

.iv-seo-box h2 {
    font-family: 'Sora', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 0;
    margin-bottom: 12px;
}

.iv-seo-box p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

/* --- FAQ SECTION --- */
.iv-faq-section {
    padding: 40px 0 60px;
}

.iv-faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.iv-faq-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.iv-faq-item.active {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.08);
}

.iv-faq-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

.iv-faq-icon {
    font-size: 18px;
    transition: transform 0.2s ease;
}

.iv-faq-item.active .iv-faq-icon {
    transform: rotate(45deg);
    color: var(--primary);
}

.iv-faq-ans {
    display: none;
    padding: 0 20px 16px;
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0;
}

.iv-faq-item.active .iv-faq-ans {
    display: block;
}

/* --- TOAST --- */
.iv-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1e293b;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 2000;
}

.iv-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 768px) {
    .iv-workspace {
        padding: 0;
    }
    .iv-fb-metrics-grid, 
    .iv-results-metrics, 
    .iv-results-two-col {
        grid-template-columns: 1fr;
    }
    .iv-setup-card {
        padding: 16px;
    }
    .iv-question-card {
        padding: 18px 20px;
    }
    .iv-interview-header {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
        text-align: center;
    }
    .iv-interview-header-left, 
    .iv-interview-header-right {
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }
    .iv-chip-group {
        gap: 4px;
    }
    .iv-chip {
        padding: 5px 10px;
        font-size: 11px;
    }
    .iv-results-actions, 
    .iv-fb-actions {
        flex-direction: column;
        width: 100%;
    }
    .iv-results-actions button, 
    .iv-fb-actions button, 
    .iv-fb-actions .iv-btn-primary {
        width: 100%;
    }
}
