/**
 * Individual Member Page Styles
 * Matches the design from sample-directory-individual.html
 */

/* Base styles */
.ukwa-individual-member-page *,
.ukwa-individual-member-page *::before,
.ukwa-individual-member-page *::after {
    box-sizing: border-box;
}

.ukwa-individual-member-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #F8FAFC;
    color: #1E293B;
    overflow-x: hidden;
}

.individual-member-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2.5rem;
    padding-bottom: 6rem;
}

/* Back to Directory Navigation */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #64748B;
    margin-bottom: 2rem;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748B;
    text-decoration: none;
    transition: color 0.2s;
}

.back-link:hover {
    color: #0284c7;
}

/* Supplier Hero Section */
.supplier-hero {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #E2E8F0;
    overflow: hidden;
    margin-bottom: 2.5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 7fr 5fr;
}

/* Supplier Info */
.supplier-info {
    padding: 2.5rem;
    border-right: 1px solid #F1F5F9;
}

.supplier-header {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.supplier-logo {
    width: 6rem;
    height: 6rem;
    background: #F1F5F9;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #E2E8F0;
    flex-shrink: 0;
}

.supplier-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.supplier-logo i {
    font-size: 2rem;
    color: #94A3B8;
}

.supplier-details {
    flex: 1;
}

.supplier-name {
    font-size: 1.875rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 0.5rem 0;
}

.supplier-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: #64748B;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.meta-separator {
    width: 4px;
    height: 4px;
    background: #CBD5E1;
    border-radius: 50%;
}

.category-badge {
    background: #EFF6FF;
    color: #1D4ED8;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.supplier-links {
    display: flex;
    gap: 1rem;
}

.link-website,
.link-contact {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.link-website {
    color: #0284c7;
}

.link-website:hover {
    color: #0369a1;
}

.link-contact {
    color: #64748B;
}

.link-contact:hover {
    color: #475569;
}

/* Business Details Grid */
.business-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #F1F5F9;
}

.detail-item .detail-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.detail-item .detail-value {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
}

/* Score Card - Container for Business Score and Compliance Score */
.score-card {
    background: linear-gradient(to bottom right, #F8FAFC, white);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Score Section Common Styles */
.score-section {
    background: white;
    border-radius: 0.75rem;
    padding: 1.25rem;
}

.score-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 1.5rem 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Business Score - Bar Chart */
.bar-chart-container {
    display: flex;
}

.bar-chart-bars {
    display: flex;
    gap: 1.5rem;
}

.bar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.bar-track {
    width: 100%;
    max-width: 40px;
    height: 100px;
    background: #E2E8F0;
    border-radius: 4px;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.bar-fill {
    width: 100%;
    border-radius: 4px;
    transition: height 0.5s ease;
}

.bar-fill.bar-professionalism {
    background: linear-gradient(to top, #0891B2, #06B6D4);
}

.bar-fill.bar-sustainability {
    background: linear-gradient(to top, #16A34A, #22C55E);
}

.bar-fill.bar-credibility {
    background: linear-gradient(to top, #7C3AED, #8B5CF6);
}

.bar-value {
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
}

.bar-label {
    font-size: 1em;
    color: #64748B;
    text-align: center;
    width: 100%;
}

/* Compliance Score - Doughnut Chart */
.compliance-chart-container {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.compliance-donut {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.compliance-donut .donut-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg); /* Start arc at 12 o'clock */
}

.donut-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.donut-score {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0F172A;
    line-height: 1;
}

.donut-label {
    display: block;
    font-size: 0.6875rem;
    color: #64748B;
    margin-top: 0.125rem;
}

.compliance-info {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.performance-status {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0;
}

.performance-status.status-good {
    color: #16A34A;
}

.performance-status.status-improve {
    color: #64748B;
}

.your-score-note {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: #64748B;
    margin: 0;
    margin-left: 0;
    padding-left: 0;
}

.your-score-note .score-indicator {
    display: inline-block;
    width: 12px;
    height: 2px;
    background: #22C55E;
    flex-shrink: 0;
}

.industry-average-note {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: #64748B;
    margin: 0;
}

.industry-average-note .avg-indicator {
    display: inline-block;
    width: 12px;
    height: 2px;
    background: #EF4444;
    flex-shrink: 0;
}

.comparison-category {
    font-size: 0.8125rem;
    color: #64748B;
    margin: 0;
    line-height: 1.3;
}

.comparison-category a {
    color: #0284c7;
    text-decoration: underline;
}

.comparison-category a:hover {
    color: #0369a1;
}

/* Responsive adjustments for score card */
@media (max-width: 640px) {
    .score-card {
        padding: 1rem;
        gap: 1rem;
    }

    .bar-chart-container {
        flex-direction: column;
        gap: 1rem;
    }

    .bar-chart-bars {
        width: 100%;
        justify-content: center;
    }

    .compliance-chart-container {
        flex-direction: column;
        text-align: center;
    }

    .compliance-info {
        align-items: center;
    }
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
}

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

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


/* Compliance Header */
.compliance-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.compliance-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0;
}

.expand-all-btn {
    background: none;
    border: none;
    font-size: 0.875rem;
    font-weight: 500;
    color: #0284c7;
    cursor: pointer;
    transition: color 0.2s;
}

.expand-all-btn:hover {
    color: #0369a1;
}

/* Compliance Sections */
.compliance-sections {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.compliance-section {
    background: white;
    border-radius: 0.75rem;
    border: 1px solid #E2E8F0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.section-header {
    width: 100%;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.section-header:hover {
    background: #F8FAFC;
}

.section-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.section-icon.status-strong {
    background: #DCFCE7;
    color: #16A34A;
}

.section-icon.status-adequate {
    background: #E0F2FE; /* Light blue instead of amber */
    color: #0284C7;
}

.section-icon.status-developing {
    background: #F1F5F9; /* Light slate - neutral, encouraging */
    color: #64748B;
}

.section-icon.status-none {
    background: #F1F5F9;
    color: #64748B;
}

.section-icon.status-info {
    background: #E0F2FE;
    color: #0284C7;
}

/* Pillar-specific icon colors */
.section-icon.pillar-professionalism {
    background: #E0F2FE; /* Light cyan/blue */
    color: #0891B2;
}

.section-icon.pillar-sustainability {
    background: #DCFCE7; /* Light green */
    color: #16A34A;
}

.section-icon.pillar-credibility {
    background: #F3E8FF; /* Light purple */
    color: #7C3AED;
}

.section-icon.pillar-information {
    background: #F1F5F9; /* Light grey */
    color: #64748B;
}

.section-text {
    text-align: left;
}

.section-name {
    font-size: 1rem;
    font-weight: 600;
    color: #0F172A;
    margin: 0 0 0.125rem 0;
}

.section-subtitle {
    font-size: 0.875rem;
    color: #64748B;
    margin: 0;
}

.section-status {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-badge.status-strong {
    background: #F0FDF4;
    color: #16A34A;
    border: 1px solid #BBF7D0;
}

.status-badge.status-adequate {
    background: #F0F9FF; /* Light blue instead of amber */
    color: #0284C7;
    border: 1px solid #BAE6FD;
}

.status-badge.status-developing {
    background: #F8FAFC; /* Light slate - neutral, encouraging */
    color: #64748B;
    border: 1px solid #E2E8F0;
}

.status-badge.status-info {
    background: #F0F9FF;
    color: #0284C7;
    border: 1px solid #BAE6FD;
}

.status-badge.status-none {
    background: #F8FAFC;
    color: #64748B;
    border: 1px solid #E2E8F0;
}

.accordion-icon {
    color: #94A3B8;
    transition: transform 0.3s ease;
}

.accordion-icon.active {
    transform: rotate(180deg);
}

/* Disabled Accordion State (for public profile pages) */
.login-to-expand-hint {
    font-size: 0.875rem;
    color: #64748B;
}

.login-to-expand-hint a {
    color: #0284c7;
    text-decoration: none;
    font-weight: 500;
}

.login-to-expand-hint a:hover {
    color: #0369a1;
    text-decoration: underline;
}

.section-header-disabled {
    width: 100%;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #FFFFFF;
    border: none;
    cursor: default;
}

.accordion-icon-locked {
    color: #94A3B8;
    font-size: 0.875rem;
}

.accordion-disabled .compliance-section {
    /* Slightly muted appearance for disabled state */
}

/* Section Content (Accordion) */
.section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #F8FAFC;
    border-top: 1px solid #F1F5F9;
}

.section-content.active {
    max-height: 5000px;
    transition: max-height 0.5s ease-in;
}

/* Subsection styling for grouped badge sections */
.subsection {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #E2E8F0;
    background: #FFFFFF;
}

.subsection:first-child {
    border-top: none;
}

.subsection:last-child {
    border-bottom: none;
}

.subsection-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin: 0 0 1rem 0;
}

.section-score {
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    margin-right: 0.75rem;
}

.questions-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-left: 0.5rem;
}

.question-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #F1F5F9;
}

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

.question-content {
    flex: 1;
}

.question-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: #0F172A;
    margin: 0 0 0.25rem 0;
}

.answer-text {
    font-size: 0.875rem;
    color: #475569;
    margin: 0;
}

/* Quick Insights Card */
.quick-insights-card {
    background: white;
    border-radius: 0.75rem;
    border: 1px solid #E2E8F0;
    padding: 1.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.insights-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0F172A;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 1rem 0;
}

.insights-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.insight-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
}

.insight-item.insight-positive {
    background: #F0FDF4;
}

.insight-item.insight-neutral {
    background: #F8FAFC; /* Light slate instead of amber */
}

.insight-item.insight-growing {
    background: #F0F9FF; /* Light blue - encouraging, not warning */
}

/* Section-specific insight colors */
.insight-item.insight-professionalism {
    background: #EFF6FF; /* Light blue */
}

.insight-item.insight-sustainability {
    background: #F0FDF4; /* Light green */
}

.insight-item.insight-credibility {
    background: #FAF5FF; /* Light purple */
}

.insight-icon {
    font-size: 1rem;
    margin-top: 0.125rem;
}

.insight-positive .insight-icon {
    color: #16A34A;
}

.insight-neutral .insight-icon {
    color: #64748B; /* Slate instead of amber */
}

.insight-growing .insight-icon {
    color: #0284C7; /* Blue - encouraging */
}

/* Section-specific icon colors */
.insight-professionalism .insight-icon {
    color: #2563EB; /* Blue for professionalism */
}

.insight-sustainability .insight-icon {
    color: #16A34A; /* Green for sustainability */
}

.insight-credibility .insight-icon {
    color: #9333EA; /* Purple for credibility */
}

.insight-content {
    display: flex;
    flex-direction: column;
}

.insight-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0F172A;
}

.insight-subtitle {
    font-size: 0.75rem;
    color: #64748B;
}

/* Compare Suppliers Card */
.compare-suppliers-card {
    background: white;
    border-radius: 0.75rem;
    border: 1px solid #E2E8F0;
    padding: 1.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.compare-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0F172A;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 1rem 0;
}

.compare-btn {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #0F172A;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
}

.compare-btn:hover {
    background: #F8FAFC;
    border-color: #CBD5E1;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .supplier-info {
        border-right: none;
        border-bottom: 1px solid #F1F5F9;
    }

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

    .quick-insights-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .individual-member-main {
        padding: 1rem;
    }

    .breadcrumb-nav {
        margin-bottom: 1rem;
    }

    .supplier-hero {
        margin-bottom: 1.5rem;
    }

    /* Mobile hero section */
    .hero-grid {
        gap: 0;
    }

    .supplier-info {
        padding: 1.25rem;
        padding-bottom: 1.5rem;
    }

    .supplier-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .supplier-logo {
        width: 60px;
        height: 60px;
    }

    .supplier-details {
        width: 100%;
    }

    .supplier-name {
        font-size: 1.25rem;
        text-align: center;
    }

    .supplier-meta {
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
    }

    .supplier-meta .meta-separator {
        display: none;
    }

    .supplier-links {
        justify-content: center;
        width: 100%;
    }

    .supplier-links a {
        flex: 1;
        justify-content: center;
        padding: 0.625rem 1rem;
    }

    .supplier-links .link-website {
        background: #0F172A;
        color: white;
        border-radius: 0.5rem;
    }

    .supplier-links .link-contact {
        background: white;
        border: 1px solid #E2E8F0;
        border-radius: 0.5rem;
    }

    .business-details-grid {
        grid-template-columns: 1fr 1fr;
        text-align: left;
        gap: 1rem;
    }

    /* Mobile business review */
    .business-review-card {
        padding: 1rem;
        margin-top: 1rem;
    }

    .review-content {
        font-size: 0.875rem;
        line-height: 1.6;
    }

    /* Mobile score card */
    .score-card {
        padding: 1rem;
        gap: 1rem;
    }

    .score-section {
        padding: 1rem;
    }

    .score-section-title {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }

    .overall-badge-image {
        height: 100px;
        width: 100px;
    }

    .overall-badge-name {
        font-size: 0.9375rem;
    }

    .bar-chart-bars {
        gap: 1rem;
    }

    .bar-track {
        height: 80px;
        max-width: 32px;
    }

    .bar-label {
        font-size: 0.6875rem;
    }

    .bar-level-label {
        font-size: 0.5625rem;
    }

    .compliance-donut {
        width: 100px;
        height: 100px;
    }

    .donut-score {
        font-size: 1.25rem;
    }

    .compliance-info {
        font-size: 0.75rem;
    }

    .your-score-note,
    .industry-average-note {
        font-size: 0.75rem;
    }

    /* Mobile compliance sections */
    .compliance-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .compliance-title {
        font-size: 1rem;
    }

    .expand-all-btn {
        font-size: 0.75rem;
    }

    .section-header {
        padding: 0.875rem 1rem;
        gap: 0.5rem;
    }

    .section-info {
        flex: 1;
        min-width: 0;
    }

    .section-icon {
        width: 2rem;
        height: 2rem;
        font-size: 0.875rem;
        flex-shrink: 0;
    }

    .section-text {
        min-width: 0;
    }

    .section-name {
        font-size: 0.875rem;
    }

    .section-subtitle {
        font-size: 0.6875rem;
        display: none;
    }

    .section-status {
        flex-shrink: 0;
        gap: 0.75rem;
    }

    .section-score {
        font-size: 0.8125rem;
        margin-right: 0;
    }

    .status-badge {
        font-size: 0.6875rem;
        padding: 0.1875rem 0.5rem;
    }

    .subsection {
        padding: 1rem;
    }

    .questions-list {
        padding-left: 0;
    }

    .question-text {
        font-size: 0.8125rem;
    }

    .answer-text {
        font-size: 0.8125rem;
    }

    /* Mobile sidebar cards */
    .quick-insights-card,
    .compare-suppliers-card {
        padding: 1.25rem;
    }

    .insights-title,
    .compare-title {
        font-size: 0.75rem;
    }

    .insight-title {
        font-size: 0.8125rem;
    }

    .insight-subtitle {
        font-size: 0.6875rem;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .individual-member-main {
        padding: 0.75rem;
    }

    .supplier-info {
        padding: 1rem;
    }

    .supplier-name {
        font-size: 1.125rem;
    }

    .supplier-links {
        flex-direction: column;
    }

    .supplier-links a {
        width: 100%;
    }

    .business-details-grid {
        grid-template-columns: 1fr;
    }

    /* Stack section header vertically on very small screens */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.75rem;
    }

    .section-status {
        width: 100%;
        justify-content: space-between;
    }

    /* Smaller score card elements */
    .bar-chart-bars {
        gap: 0.75rem;
    }

    .bar-track {
        height: 64px;
        max-width: 28px;
    }

    .bar-value {
        font-size: 0.6875rem;
    }

    .bar-label {
        font-size: 0.625rem;
    }

    .bar-level-label {
        font-size: 0.5rem;
    }

    .compliance-donut {
        width: 80px;
        height: 80px;
    }

    .donut-score {
        font-size: 1.125rem;
    }

    .donut-label {
        font-size: 0.5625rem;
    }

    .overall-badge-image {
        height: 80px;
        width: 80px;
    }

    .overall-badge-name {
        font-size: 0.875rem;
    }

    /* Tighter review card */
    .review-title {
        font-size: 0.8125rem;
    }

    .review-content {
        font-size: 0.8125rem;
    }

    .review-strengths li {
        font-size: 0.8125rem;
    }
}

/* Directory table link styles */
.business-name-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #0F172A;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.business-name-link:hover {
    color: #0284c7;
}

.business-name-link .view-icon {
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    color: #0284c7;
}

.business-name-link:hover .view-icon {
    opacity: 1;
    transform: translateX(2px);
}

/* Business Review Card */
.business-review-card {
    background: white;
    border-radius: 0.75rem;
    border: 1px solid #E2E8F0;
    padding: 1.5rem;
    margin-top: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Business Review in Hero Section */
.supplier-info .business-review-card {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    margin-top: 1.25rem;
}

.review-title {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #1E293B;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.review-title i {
    color: #D4AF37;
}

.review-content {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 1rem;
}

.review-highlights {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #E2E8F0;
}

.review-strengths h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.review-strengths h4 i {
    color: #D4AF37;
}

.review-strengths ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.review-strengths li {
    font-size: 0.875rem;
    color: #64748B;
    padding: 0.25rem 0;
    padding-left: 1rem;
    position: relative;
}

.review-strengths li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #10B981;
}

.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #E2E8F0;
}

.review-date {
    font-size: 0.8125rem;
    color: #94A3B8;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.challenge-review-btn {
    background: none;
    border: 1px solid #E2E8F0;
    color: #64748B;
    font-size: 0.8125rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    transition: all 0.2s;
}

.challenge-review-btn:hover {
    border-color: #CBD5E1;
    color: #475569;
    background: #F8FAFC;
}

/* Review Modal */
.review-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
}

.review-modal-content {
    background: white;
    border-radius: 0.75rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.review-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #E2E8F0;
}

.review-modal-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1E293B;
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #94A3B8;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.close-modal:hover {
    color: #64748B;
}

.review-modal-body {
    padding: 1.5rem;
}

.review-modal-body p {
    font-size: 0.9375rem;
    color: #64748B;
    margin-bottom: 1rem;
}

.review-modal-body label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1E293B;
    margin-bottom: 0.5rem;
}

.review-modal-body textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #E2E8F0;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
}

.review-modal-body textarea:focus {
    outline: none;
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.btn-cancel {
    background: white;
    border: 1px solid #E2E8F0;
    color: #64748B;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel:hover {
    background: #F8FAFC;
    border-color: #CBD5E1;
}

.btn-submit {
    background: #0284c7;
    border: none;
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-submit:hover {
    background: #0369a1;
}

.btn-submit:disabled {
    background: #94A3B8;
    cursor: not-allowed;
}

/* Overall Badge Display - shared styles */

/* Bar Level Labels */
.bar-level-label {
    font-size: 0.625rem;
    color: #94A3B8;
    text-align: center;
    white-space: nowrap;
    font-weight: 500;
}

/* Overall Badge Display */
.overall-badge-display {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.overall-badge-image {
    height: 150px;
    width: 150px;
    flex-shrink: 0;
}

.overall-badge-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1E3A8A;
}

/* Desktop: badge in score card, hidden in supplier-info */
.overall-badge-desktop {
    background: white;
    border-radius: 0.75rem;
    padding: 1.25rem;
    justify-content: center;
}

.overall-badge-mobile {
    display: none;
}

/* Mobile: badge in supplier-info, hidden in score card */
@media (max-width: 1024px) {
    .overall-badge-desktop {
        display: none;
    }

    .overall-badge-mobile {
        display: flex;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        border-top: 1px solid #E2E8F0;
        justify-content: center;
    }
}

/* Directory Grid Badge */
.member-name-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.member-card-badge {
    flex-shrink: 0;
}

/* Modal Badge */
.profile-name-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.profile-badge-tier {
    display: inline-block;
    background: #F0F9FF;
    color: #1E3A8A;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

