/* Mercedes-Benz Professional Design System */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Mercedes Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-weight: 400;
    line-height: 1.5;
    color: #1a1a1a;
    background: #ffffff;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: #ffffff;
    min-height: 100vh;
    border-left: 1px solid #e8e8e8;
    border-right: 1px solid #e8e8e8;
}

/* Professional Header */
.header {
    background: #ffffff;
    color: #000000;
    padding: 2rem 0 1.5rem;
    border-bottom: 1px solid #e8e8e8;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.logo-placeholder {
    width: 48px;
    height: 48px;
    background: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.2rem;
}

.title-section h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.25rem;
    letter-spacing: -0.025em;
}

.title-section .subtitle {
    font-size: 0.875rem;
    color: #666666;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Professional Navigation */
.nav-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e8e8e8;
}

.tab-btn {
    flex: 1;
    padding: 1.25rem 2rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    background: #ffffff;
    color: #000000;
    border-bottom-color: #cccccc;
}

.tab-btn.active {
    background: #ffffff;
    color: #000000;
    border-bottom-color: #000000;
}

.tab-btn i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

/* Main Content */
.main-content {
    padding: 3rem 2rem;
    min-height: calc(100vh - 200px);
    background: #ffffff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.2s ease;
}

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

/* Professional Sections */
.section {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 2px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: none;
}

.section h2 {
    color: #000000;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.section h2 i {
    margin-right: 0.75rem;
    color: #000000;
    font-size: 1.25rem;
}

.section-description {
    color: #666666;
    margin-bottom: 2.5rem;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Professional Forms */
.form {
    margin-bottom: 2.5rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #000000;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group label i {
    margin-right: 0.5rem;
    color: #000000;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #cccccc;
    border-radius: 2px;
    font-size: 0.875rem;
    font-family: inherit;
    background: #ffffff;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #000000;
    box-shadow: none;
}

.help-text {
    display: block;
    margin-top: 0.5rem;
    color: #666666;
    font-size: 0.75rem;
    line-height: 1.4;
}

.field-note {
    display: block;
    margin-top: 0.5rem;
    color: #666666;
    font-size: 0.75rem;
    line-height: 1.4;
    font-style: italic;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Professional Buttons */
.btn {
    padding: 0.875rem 1.75rem;
    border: 1px solid #000000;
    border-radius: 2px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: inherit;
}

.btn i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

.btn-primary {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

.btn-primary:hover {
    background: #333333;
    border-color: #333333;
}

.btn-success {
    background: #ffffff;
    color: #000000;
    border-color: #000000;
}

.btn-success:hover {
    background: #f8f9fa;
}

.btn-secondary {
    background: #ffffff;
    color: #666666;
    border-color: #cccccc;
}

.btn-secondary:hover {
    background: #f8f9fa;
    border-color: #999999;
    color: #000000;
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f8f9fa;
    color: #cccccc;
    border-color: #e8e8e8;
}

/* Professional Results and Messages */
.results-section {
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: 2px;
    padding: 2.5rem;
    margin-top: 2.5rem;
}

.results-section h3 {
    color: #000000;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.capability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.capability-card {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 2px;
    padding: 2rem;
    transition: border-color 0.2s ease;
}

.capability-card:hover {
    border-color: #cccccc;
}

/* Professional Linear Card Stack Layout */
.capabilities-results {
    margin-top: 20px;
}

.capabilities-section {
    margin-bottom: 40px;
}

.section-title {
    margin: 0 0 20px 0;
    padding: 15px 20px;
    font-size: 1.2em;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 2px;
}

.mandatory-title {
    background: #ffffff;
    color: #000000;
    border: 2px solid #000000;
}

.optional-title {
    background: #666666;
    color: #ffffff;
}

/* Matrix card grid within each section */
.capability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

.capability-card {
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: 2px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 120px;
    width: 100%;
    box-sizing: border-box;
}

.capability-card:hover {
    border-color: #000000;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.capability-card.expanded {
    border-color: #000000;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.capability-level {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.capability-level-2 {
    font-weight: 700;
    font-size: 1.1em;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.capability-level-3 {
    font-size: 0.95em;
    color: #666666;
    margin-left: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.25px;
}

.capability-count-badge {
    display: inline-block;
    background: #000000;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 700;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.expand-arrow {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #666666;
    transition: transform 0.3s ease, color 0.3s ease;
    font-size: 0.9em;
}

.capability-card:hover .expand-arrow {
    color: #000000;
}

.card-expanded-content {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e8e8e8;
    animation: slideDown 0.3s ease;
}

.level4-capabilities {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.level4-item {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 2px;
    overflow: hidden;
}

.capability-name {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.capability-name:hover {
    background: #f8f9fa;
}

.capability-name i.fas:first-child {
    color: #000000;
    width: 16px;
    font-size: 0.875rem;
}

.capability-name span {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 600;
    color: #333333;
}

.reasoning-icon {
    color: #666666;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.reasoning-icon:hover {
    background: #000000;
    color: #ffffff;
}

.reasoning-panel {
    background: #f8f9fa;
    border-top: 1px solid #e8e8e8;
    animation: fadeIn 0.3s ease;
}

.reasoning-content {
    padding: 15px;
    font-size: 0.875rem;
    line-height: 1.5;
}

.reasoning-content strong {
    color: #000000;
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
}

.reasoning-content p {
    margin: 0;
    color: #666666;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 200px;
    }
}

/* Classification Section Styles */
.classification-section {
    margin-bottom: 3rem;
}

.classification-header {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 2px;
    border-left: 4px solid;
}

.classification-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mandatory-header {
    background: #fff5f5;
    border-left-color: #dc2626;
    color: #dc2626;
}

.optional-header {
    background: #eff6ff;
    border-left-color: #2563eb;
    color: #2563eb;
}

/* Update capability sections for better separation */
.classification-section .capability-section {
    margin-bottom: 1.5rem;
}

.classification-section .level2-header {
    border-bottom-color: #cccccc;
}

/* Legacy capability styles for other sections */
.capability-level {
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.capability-level-2 { color: #000000; }
.capability-level-3 { color: #666666; }
.capability-level-4 { color: #000000; }

.success-section {
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    color: #000000;
    padding: 1.25rem;
    border-radius: 2px;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
}

.error-section {
    background: #f8f9fa;
    border: 1px solid #cccccc;
    color: #000000;
    padding: 1.25rem;
    border-radius: 2px;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
}

.success-section i,
.error-section i {
    margin-right: 0.75rem;
    font-size: 1rem;
}

/* Professional Search Controls */
.search-controls {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    align-items: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: 2px;
}

.search-box {
    position: relative;
    flex: 1;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666666;
    font-size: 0.875rem;
}

.search-box input {
    width: 100%;
    padding: 0.875rem 0.875rem 0.875rem 2.5rem;
    border: 1px solid #cccccc;
    border-radius: 2px;
    font-size: 0.875rem;
    background: #ffffff;
}

/* Professional Stats Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 2px;
    padding: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000000;
    display: block;
    letter-spacing: -0.05em;
}

.stat-label {
    color: #666666;
    font-size: 0.75rem;
    margin-top: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Professional Capability Table */
.capability-table {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 2px;
    overflow: hidden;
}

.table-header {
    background: #f8f9fa;
    color: #000000;
    padding: 1.25rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e8e8e8;
}

.table-row {
    padding: 1.25rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
    font-size: 0.875rem;
}

.table-row:hover {
    background: #f8f9fa;
}

.table-row:last-child {
    border-bottom: none;
}

.table-cell {
    color: #000000;
}

.table-cell.empty {
    color: #999999;
    font-style: italic;
}

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

.loading-content {
    background: #ffffff;
    padding: 3rem;
    border: 1px solid #e8e8e8;
    border-radius: 2px;
    text-align: center;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 2px solid #e8e8e8;
    border-top: 2px solid #000000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer removed for professional design */

/* Professional Responsive Design */
@media (max-width: 1200px) {
    .capability-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 12px;
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .container {
        margin: 0;
        border: none;
    }
    
    .main-content {
        padding: 1.5rem;
    }
    
    .section {
        padding: 2rem;
    }
    
    .capability-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px;
    }
    
    .header-content {
        padding: 0 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .title-section h1 {
        font-size: 1.5rem;
    }
    
    .nav-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        text-align: center;
        padding: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .search-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .table-header,
    .table-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .capability-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px;
    }
    
    .stats-section {
        grid-template-columns: 1fr;
    }
    

    
    .section-title {
        padding: 15px;
        font-size: 1.1em;
    }
    
    .capability-name {
        padding: 10px;
    }
    
    .reasoning-content {
        padding: 12px;
    }
}

/* Animation for capability cards */
.capability-card {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
/* Password Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    background: #ffffff;
    border: none;
    border-radius: 8px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

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

.modal-header {
    padding: 2rem 2rem 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid #e8e8e8;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: #000000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-header h3 i {
    color: #000000;
    font-size: 1.5rem;
    opacity: 0.9;
}

.modal-body {
    padding: 2rem;
    background: #ffffff;
}

.modal-body p {
    margin-bottom: 1.5rem;
    color: #555555;
    font-size: 0.95rem;
    line-height: 1.8;
    white-space: pre-line;
    font-family: 'Mercedes Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.password-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-group input {
    width: 100%;
    padding: 1rem 3.5rem 1rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Mercedes Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.password-input-group input:focus {
    outline: none;
    border-color: #000000;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}

.password-input-group input::placeholder {
    color: #999999;
}

.toggle-password-btn {
    position: absolute;
    right: 0.75rem;
    background: #f0f0f0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    color: #666666;
    transition: all 0.2s ease;
}

.toggle-password-btn:hover {
    background: #e0e0e0;
    color: #000000;
}

.toggle-password-btn:active {
    transform: scale(0.95);
}

.toggle-password-btn i {
    font-size: 1rem;
}

.modal-footer {
    padding: 1.5rem 2rem 2rem;
    background: #ffffff;
    border-top: 1px solid #e8e8e8;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.modal-footer .btn {
    padding: 0.75rem 1.75rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary {
    background: #f5f5f5;
    color: #333333;
    border: 1px solid #d0d0d0;
}

.btn-secondary:hover {
    background: #e8e8e8;
    border-color: #b0b0b0;
    transform: translateY(-1px);
}

.btn-secondary:active {
    transform: translateY(0);
}

.btn-primary {
    background: #000000;
    color: #ffffff;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background: #2a2a2a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.btn-primary:disabled,
.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-primary:disabled:hover,
.btn-secondary:disabled:hover {
    transform: none;
}

/* Partner Search Styles */
.section-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #e0e0e0, transparent);
    margin: 30px 0;
}

.partner-search-section {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 2px dashed #d0d0d0;
}

.partner-search-header h3 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.partner-search-header p {
    color: #7f8c8d;
    margin-bottom: 20px;
}

.partner-results-section {
    margin-top: 30px;
}

.partners-header {
    text-align: center;
    margin-bottom: 30px;
}

.partners-header h3 {
    color: #2c3e50;
    font-size: 28px;
    margin-bottom: 8px;
}

.partners-subtitle {
    color: #7f8c8d;
    font-size: 16px;
}

.partners-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.partner-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 2px solid #e8e8e8;
    position: relative;
    transition: all 0.3s ease;
}

.partner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border-color: #3498db;
}

.partner-rank {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.partner-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-right: 70px;
}

.partner-name {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    flex: 1;
}

.match-badge {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
    min-width: 90px;
}

.match-percentage {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.match-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
    opacity: 0.9;
}

.partner-details {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ecf0f1;
}

.partner-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: #34495e;
    font-size: 15px;
}

.partner-detail-row {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.partner-detail i {
    color: #3498db;
    width: 20px;
    font-size: 16px;
}

.partner-detail a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.2s;
}

.partner-detail a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.partner-capabilities,
.partner-clients,
.partner-reasoning {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
}

.partner-capabilities h5,
.partner-clients h5,
.partner-reasoning h5 {
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.partner-capabilities h5 i {
    color: #27ae60;
}

.partner-clients h5 i {
    color: #e67e22;
}

.partner-reasoning h5 i {
    color: #f39c12;
}

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

.capability-tag {
    background: linear-gradient(135deg, #ecf0f1, #d5dbdb);
    color: #2c3e50;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #bdc3c7;
}

.partner-clients ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.partner-clients li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: #34495e;
    font-size: 14px;
}

.partner-clients li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #e67e22;
    font-weight: bold;
}

.partner-reasoning p {
    color: #34495e;
    line-height: 1.7;
    margin: 0;
    font-size: 15px;
}

/* Responsive Partner Cards */
@media (max-width: 768px) {
    .partner-card {
        padding: 20px;
    }
    
    .partner-header {
        flex-direction: column;
        gap: 15px;
        padding-right: 0;
    }
    
    .partner-rank {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .partner-name {
        font-size: 20px;
    }
    
    .match-badge {
        align-self: flex-start;
    }
    
    .partner-detail-row {
        flex-direction: column;
        gap: 12px;
    }
}

/* Partner Search Status */
.partner-search-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 12px;
    color: #1976d2;
    font-size: 16px;
    font-weight: 500;
    animation: pulse 2s ease-in-out infinite;
}

.partner-search-status i {
    font-size: 20px;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}
