.mcp-integrations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
    gap: 2.4rem;
    margin-top: 2rem;
    align-items: start;
}

.mcp-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

.mcp-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.mcp-card.disabled {
    opacity: 0.75;
}

.mcp-card.disabled:hover {
    transform: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.mcp-card-header {
    padding: 2rem 2.4rem;
    display: flex;
    align-items: center;
    gap: 1.4rem;
}

.mcp-card-header.manus {
    background: #f8f8f7;
}

.mcp-card-header.openai {
    background: linear-gradient(135deg, #10a37f 0%, #1a7f64 100%);
}

.mcp-card-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.mcp-card-logo.manus-logo {
    background: white;
    padding: 10px;
    color: #1a1a19;
}

.mcp-card-logo.manus-logo img {
    width: 100%;
    height: 100%;
}

.mcp-card-logo svg {
    width: 100%;
    height: 100%;
}

.mcp-card-header.openai .mcp-card-logo {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: none;
}

.mcp-card-logo.openai-logo {
    padding: 10px;
    color: white;
}

.mcp-card-logo.openai-logo img {
    width: 100%;
    height: 100%;
}

.mcp-card-header-info {
    flex: 1;
    min-width: 0;
}

.mcp-card-header.manus .mcp-card-title {
    color: #1a1a19;
}

.mcp-card-header.manus .mcp-card-subtitle {
    color: rgba(26, 26, 25, 0.6);
}

.mcp-card-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.2rem 0;
    color: white;
}

.mcp-card-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.mcp-status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

.mcp-status-badge.available {
    background: rgba(40, 167, 69, 0.9);
    color: white;
}

.mcp-status-badge.coming-soon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.mcp-card-body {
    padding: 2rem 2.4rem 2.4rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mcp-card-body-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 200px;
}

.mcp-card-description {
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--color-secondary-text);
    margin: 0 0 1.6rem 0;
    flex: 1;
}

.mcp-toggle-config {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 1.2rem 1.6rem;
    margin-top: auto;
    background: var(--color-lighter-gray);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-primary-text);
    transition: all 0.2s ease;
}

.mcp-toggle-config:hover {
    background: var(--color-border);
}

.mcp-toggle-config.active {
    background: var(--ghost-accent-color);
    border-color: var(--ghost-accent-color);
    color: white;
}

.mcp-toggle-icon {
    transition: transform 0.3s ease;
}

.mcp-toggle-config.active .mcp-toggle-icon {
    transform: rotate(180deg);
}

.mcp-config-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
}

.mcp-config-content.visible {
    max-height: 800px;
    opacity: 1;
    margin-top: 2rem;
}

.mcp-steps {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.mcp-step {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
}

.mcp-step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--ghost-accent-color);
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mcp-step-text {
    font-size: 1.5rem;
    line-height: 1.8;
    color: var(--color-primary-text);
    margin: 0;
    padding-top: 2px;
}

.mcp-step-with-fields {
    flex: 1;
}

.mcp-step-with-fields .mcp-step-text {
    margin-bottom: 1rem;
}

.mcp-config-fields {
    background: var(--color-lighter-gray);
    border-radius: 12px;
    padding: 0.4rem 1.4rem;
    border: 1px solid var(--color-border);
}

.mcp-config-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
    gap: 1rem;
}

.mcp-config-field:last-child {
    border-bottom: none;
}

.mcp-config-label {
    font-size: 1.3rem;
    color: var(--color-secondary-text);
    font-weight: 500;
    flex-shrink: 0;
}

.mcp-config-value-wrapper {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex: 1;
    justify-content: flex-end;
    min-width: 0;
}

.mcp-config-value {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    color: var(--color-primary-text);
    background: white;
    padding: 0.5rem 0.9rem;
    border-radius: 6px;
    border: 1px solid var(--color-border);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mcp-config-value.static {
    background: transparent;
    border: none;
    padding: 0;
    font-family: inherit;
    font-weight: 600;
}

.mcp-copy-btn {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: white;
    border: 1px solid var(--color-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary-text);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.mcp-copy-btn:hover {
    border-color: var(--ghost-accent-color);
    color: var(--ghost-accent-color);
}

.mcp-copy-btn.active {
    background: var(--ghost-accent-color);
    border-color: var(--ghost-accent-color);
    color: white;
}

.mcp-copy-btn svg {
    width: 15px;
    height: 15px;
}

.mcp-token-alert {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.4rem;
    background: linear-gradient(135deg, rgba(255, 87, 0, 0.08), rgba(255, 140, 0, 0.08));
    border: 1px solid rgba(255, 87, 0, 0.2);
    border-radius: 10px;
    margin-top: 1.6rem;
}

.mcp-token-alert svg {
    flex-shrink: 0;
    color: var(--ghost-accent-color);
}

.mcp-token-alert-text {
    font-size: 1.4rem;
    line-height: 1.4;
    color: var(--color-primary-text);
}

.mcp-token-alert-text a {
    color: var(--ghost-accent-color);
    font-weight: 600;
    text-decoration: none;
}

.mcp-token-alert-text a:hover {
    text-decoration: underline;
}

.mcp-coming-soon-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 193, 7, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    color: #d9a443;
}

.mcp-coming-soon-icon svg {
    width: 28px;
    height: 28px;
}

.mcp-coming-soon-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary-text);
    margin: 0 0 0.8rem 0;
}

.mcp-info-section {
    margin-top: 4rem;
    padding: 2.4rem;
    background: var(--color-lighter-gray);
    border-radius: 16px;
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.mcp-info-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.4rem;
}

.mcp-info-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--ghost-accent-color), #ff8c00);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.mcp-info-icon svg {
    width: 22px;
    height: 22px;
}

.mcp-info-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    color: var(--color-primary-text);
}

.mcp-info-content {
    width: 100%;
}

.mcp-info-content p {
    font-size: 1.5rem;
    line-height: 1.7;
    color: var(--color-secondary-text);
    margin: 0 0 1rem 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.mcp-info-content p:last-child {
    margin-bottom: 0;
}

.mcp-info-content strong {
    color: var(--color-primary-text);
}

@media (max-width: 767px) {
    .mcp-integrations-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .mcp-card {
        min-height: auto;
        max-width: 100%;
    }
    
    .mcp-card-header {
        padding: 1.6rem;
        gap: 1rem;
    }
    
    .mcp-card-body {
        padding: 1.6rem;
        overflow: hidden;
    }
    
    .mcp-card-logo {
        width: 42px;
        height: 42px;
    }
    
    .mcp-card-title {
        font-size: 1.8rem;
    }
    
    .mcp-card-subtitle {
        font-size: 1.2rem;
    }
    
    .mcp-status-badge {
        padding: 0.4rem 0.8rem;
        font-size: 1rem;
    }
    
    .mcp-steps {
        gap: 1.2rem;
    }
    
    .mcp-step {
        gap: 0.8rem;
    }
    
    .mcp-step-number {
        width: 24px;
        height: 24px;
        font-size: 1.2rem;
        flex-shrink: 0;
    }
    
    .mcp-step-text {
        font-size: 1.4rem;
    }
    
    .mcp-step-with-fields {
        width: 100%;
        min-width: 0;
    }
    
    .mcp-config-fields {
        border-radius: 10px;
        padding: 0.4rem 1rem;
        margin-top: 0.8rem;
    }
    
    .mcp-config-field {
        gap: 0.6rem;
        padding: 0.8rem 0;
    }
    
    .mcp-config-label {
        font-size: 1.1rem;
        min-width: 55px;
    }
    
    .mcp-config-value {
        font-size: 1.1rem;
        padding: 0.4rem 0.6rem;
    }
    
    .mcp-copy-btn {
        width: 28px;
        height: 28px;
    }
    
    .mcp-copy-btn svg {
        width: 13px;
        height: 13px;
    }
    
    .mcp-info-section {
        padding: 1.6rem;
        margin-top: 3rem;
        max-width: 100%;
    }
    
    .mcp-info-header {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .mcp-info-icon {
        width: 36px;
        height: 36px;
    }
    
    .mcp-info-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .mcp-info-title {
        font-size: 1.6rem;
    }
    
    .mcp-info-content p {
        font-size: 1.4rem;
    }
    
    .mcp-token-alert {
        margin-top: 1.4rem;
    }
}

@media (max-width: 480px) {
    .mcp-card-header {
        padding: 1.4rem;
    }
    
    .mcp-card-body {
        padding: 1.4rem;
    }
    
    .mcp-config-fields {
        padding: 0.2rem 0.8rem;
    }
    
    .mcp-config-label {
        font-size: 1rem;
        min-width: 50px;
    }
    
    .mcp-config-value {
        font-size: 1rem;
        padding: 0.35rem 0.5rem;
    }
    
    .mcp-copy-btn {
        width: 26px;
        height: 26px;
    }
    
    .mcp-copy-btn svg {
        width: 12px;
        height: 12px;
    }
    
    .mcp-step-number {
        width: 22px;
        height: 22px;
        font-size: 1.1rem;
    }
    
    .mcp-step-text {
        font-size: 1.3rem;
    }
    
    .mcp-info-section {
        padding: 1.4rem;
    }
    
    .mcp-info-icon {
        width: 32px;
        height: 32px;
    }
    
    .mcp-info-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .mcp-info-title {
        font-size: 1.5rem;
    }
    
    .mcp-info-content p {
        font-size: 1.3rem;
    }
}
